heheng
2024-11-20 44819a81b566a504554780afd4dd64fee0be7bb5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.gkhy.system.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
        import com.rchuing.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gkhy.system.mapper.EvaluationMapper;
import com.gkhy.system.domain.Evaluation;
import com.gkhy.system.service.IEvaluationService;
 
/**
 * 考评管理Service业务层处理
 *
 * @author expert
 * @date 2024-11-13
 */
@Service
public class EvaluationServiceImpl extends ServiceImpl<EvaluationMapper, Evaluation> implements IEvaluationService {
    @Autowired
    private EvaluationMapper evaluationMapper;
 
    /**
     * 查询考评管理
     *
     * @param id 考评管理主键
     * @return 考评管理
     */
    @Override
    public Evaluation selectEvaluationById(Long id) {
        return evaluationMapper.selectEvaluationById(id);
    }
 
    /**
     * 查询考评管理列表
     *
     * @param evaluation 考评管理
     * @return 考评管理
     */
    @Override
    public List<Evaluation> selectEvaluationList(Evaluation evaluation) {
        return evaluationMapper.selectEvaluationList(evaluation);
    }
 
    /**
     * 新增考评管理
     *
     * @param evaluation 考评管理
     * @return 结果
     */
    @Override
    public int insertEvaluation(Evaluation evaluation) {
                evaluation.setCreateTime(DateUtils.getNowDate());
            return evaluationMapper.insertEvaluation(evaluation);
    }
 
    /**
     * 修改考评管理
     *
     * @param evaluation 考评管理
     * @return 结果
     */
    @Override
    public int updateEvaluation(Evaluation evaluation) {
                evaluation.setUpdateTime(DateUtils.getNowDate());
        return evaluationMapper.updateEvaluation(evaluation);
    }
 
    /**
     * 批量删除考评管理
     *
     * @param ids 需要删除的考评管理主键
     * @return 结果
     */
    @Override
    public int deleteEvaluationByIds(Long[] ids) {
        return evaluationMapper.deleteEvaluationByIds(ids);
    }
 
    /**
     * 删除考评管理信息
     *
     * @param id 考评管理主键
     * @return 结果
     */
    @Override
    public int deleteEvaluationById(Long id) {
        return evaluationMapper.deleteEvaluationById(id);
    }
}