package com.ycl.platform.service.impl; import com.ycl.platform.domain.entity.CalculateRule; import com.ycl.platform.mapper.CalculateRuleMapper; import com.ycl.platform.service.ICalculateRuleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 核算规则Service业务层处理 * * @author ruoyi * @date 2024-04-03 */ @Service public class CalculateRuleServiceImpl implements ICalculateRuleService { @Autowired private CalculateRuleMapper calculateRuleMapper; /** * 查询核算规则 * * @param id 核算规则主键 * @return 核算规则 */ @Override public CalculateRule selectCalculateRuleById(Long id) { return calculateRuleMapper.selectCalculateRuleById(id); } /** * 查询核算规则列表 * * @param calculateRule 核算规则 * @return 核算规则 */ @Override public List selectCalculateRuleList(CalculateRule calculateRule) { return calculateRuleMapper.selectCalculateRuleList(calculateRule); } /** * 新增核算规则 * * @param calculateRule 核算规则 * @return 结果 */ @Override public int insertCalculateRule(CalculateRule calculateRule) { return calculateRuleMapper.insertCalculateRule(calculateRule); } /** * 修改核算规则 * * @param calculateRule 核算规则 * @return 结果 */ @Override public int updateCalculateRule(CalculateRule calculateRule) { return calculateRuleMapper.updateCalculateRule(calculateRule); } /** * 批量删除核算规则 * * @param ids 需要删除的核算规则主键 * @return 结果 */ @Override public int deleteCalculateRuleByIds(Long[] ids) { return calculateRuleMapper.deleteCalculateRuleByIds(ids); } /** * 删除核算规则信息 * * @param id 核算规则主键 * @return 结果 */ @Override public int deleteCalculateRuleById(Long id) { return calculateRuleMapper.deleteCalculateRuleById(id); } }