New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.domain.entity.TExamineScore; |
| | | import com.ycl.platform.domain.vo.TExamineScoreVO; |
| | | import com.ycl.platform.mapper.TExamineScoreMapper; |
| | | import com.ycl.platform.service.ITExamineScoreService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 考核计分Service业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | @Service |
| | | public class TExamineScoreServiceImpl implements ITExamineScoreService |
| | | { |
| | | @Autowired |
| | | private TExamineScoreMapper tExamineScoreMapper; |
| | | |
| | | /** |
| | | * 查询考核计分 |
| | | * |
| | | * @param id 考核计分主键 |
| | | * @return 考核计分 |
| | | */ |
| | | @Override |
| | | public TExamineScore selectTExamineScoreById(Long id) |
| | | { |
| | | return tExamineScoreMapper.selectTExamineScoreById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询考核计分列表 |
| | | * |
| | | * @param tExamineScore 考核计分 |
| | | * @return 考核计分 |
| | | */ |
| | | @Override |
| | | public List<TExamineScoreVO> selectTExamineScoreList(TExamineScore tExamineScore) |
| | | { |
| | | |
| | | |
| | | return tExamineScoreMapper.selectTExamineScoreList(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * 新增考核计分 |
| | | * |
| | | * @param tExamineScore 考核计分 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertTExamineScore(TExamineScore tExamineScore) |
| | | { |
| | | tExamineScore.setCreateTime(DateUtils.getNowDate()); |
| | | return tExamineScoreMapper.insertTExamineScore(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * 修改考核计分 |
| | | * |
| | | * @param tExamineScore 考核计分 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateTExamineScore(TExamineScore tExamineScore) |
| | | { |
| | | return tExamineScoreMapper.updateTExamineScore(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除考核计分 |
| | | * |
| | | * @param ids 需要删除的考核计分主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteTExamineScoreByIds(Long[] ids) |
| | | { |
| | | return tExamineScoreMapper.deleteTExamineScoreByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除考核计分信息 |
| | | * |
| | | * @param id 考核计分主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteTExamineScoreById(Long id) |
| | | { |
| | | return tExamineScoreMapper.deleteTExamineScoreById(id); |
| | | } |
| | | } |