package com.jcdm.main.da.tileMatchRules.service.impl;
|
|
import java.util.List;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.da.tileMatchRules.mapper.DaTileMatchRulesMapper;
|
import com.jcdm.main.da.tileMatchRules.domain.DaTileMatchRules;
|
import com.jcdm.main.da.tileMatchRules.service.IDaTileMatchRulesService;
|
|
/**
|
* 配瓦规则Service业务层处理
|
*
|
* @author jiang
|
* @date 2024-01-24
|
*/
|
@Service
|
public class DaTileMatchRulesServiceImpl implements IDaTileMatchRulesService
|
{
|
@Autowired
|
private DaTileMatchRulesMapper daTileMatchRulesMapper;
|
|
/**
|
* 查询配瓦规则
|
*
|
* @param id 配瓦规则主键
|
* @return 配瓦规则
|
*/
|
@Override
|
public DaTileMatchRules selectDaTileMatchRulesById(Long id)
|
{
|
return daTileMatchRulesMapper.selectDaTileMatchRulesById(id);
|
}
|
|
/**
|
* 查询配瓦规则列表
|
*
|
* @param daTileMatchRules 配瓦规则
|
* @return 配瓦规则
|
*/
|
@Override
|
public List<DaTileMatchRules> selectDaTileMatchRulesList(DaTileMatchRules daTileMatchRules)
|
{
|
return daTileMatchRulesMapper.selectDaTileMatchRulesList(daTileMatchRules);
|
}
|
|
/**
|
* 新增配瓦规则
|
*
|
* @param daTileMatchRules 配瓦规则
|
* @return 结果
|
*/
|
@Override
|
public int insertDaTileMatchRules(DaTileMatchRules daTileMatchRules)
|
{
|
daTileMatchRules.setCreateTime(DateUtils.getNowDate());
|
return daTileMatchRulesMapper.insertDaTileMatchRules(daTileMatchRules);
|
}
|
|
/**
|
* 修改配瓦规则
|
*
|
* @param daTileMatchRules 配瓦规则
|
* @return 结果
|
*/
|
@Override
|
public int updateDaTileMatchRules(DaTileMatchRules daTileMatchRules)
|
{
|
daTileMatchRules.setUpdateTime(DateUtils.getNowDate());
|
return daTileMatchRulesMapper.updateDaTileMatchRules(daTileMatchRules);
|
}
|
|
/**
|
* 批量删除配瓦规则
|
*
|
* @param ids 需要删除的配瓦规则主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaTileMatchRulesByIds(Long[] ids)
|
{
|
return daTileMatchRulesMapper.deleteDaTileMatchRulesByIds(ids);
|
}
|
|
/**
|
* 删除配瓦规则信息
|
*
|
* @param id 配瓦规则主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaTileMatchRulesById(Long id)
|
{
|
return daTileMatchRulesMapper.deleteDaTileMatchRulesById(id);
|
}
|
}
|