package com.ycl.platform.service.impl; import com.ycl.platform.domain.entity.CheckScore; import com.ycl.platform.mapper.CheckScoreMapper; import com.ycl.platform.service.ICheckScoreService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import utils.DateUtils; import java.util.List; /** * 考核积分明细Service业务层处理 * * @author ruoyi * @date 2024-04-01 */ @Service public class CheckScoreServiceImpl implements ICheckScoreService { @Autowired private CheckScoreMapper checkScoreMapper; /** * 查询考核积分明细 * * @param id 考核积分明细主键 * @return 考核积分明细 */ @Override public CheckScore selectCheckScoreById(Long id) { return checkScoreMapper.selectCheckScoreById(id); } /** * 查询考核积分明细列表 * * @param checkScore 考核积分明细 * @return 考核积分明细 */ @Override public List selectCheckScoreList(CheckScore checkScore) { return checkScoreMapper.selectCheckScoreList(checkScore); } /** * 新增考核积分明细 * * @param checkScore 考核积分明细 * @return 结果 */ @Override public int insertCheckScore(CheckScore checkScore) { checkScore.setCreateTime(DateUtils.getNowDate()); return checkScoreMapper.insertCheckScore(checkScore); } /** * 修改考核积分明细 * * @param checkScore 考核积分明细 * @return 结果 */ @Override public int updateCheckScore(CheckScore checkScore) { return checkScoreMapper.updateCheckScore(checkScore); } /** * 批量删除考核积分明细 * * @param ids 需要删除的考核积分明细主键 * @return 结果 */ @Override public int deleteCheckScoreByIds(Long[] ids) { return checkScoreMapper.deleteCheckScoreByIds(ids); } /** * 删除考核积分明细信息 * * @param id 考核积分明细主键 * @return 结果 */ @Override public int deleteCheckScoreById(Long id) { return checkScoreMapper.deleteCheckScoreById(id); } }