龚焕茏
2024-04-18 b43ede1ee201c0d6aaede56e0fa3c4894c892e3c
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
91
92
93
94
95
96
97
98
package com.ycl.platform.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ycl.platform.domain.entity.DefaultScore;
import com.ycl.platform.mapper.DefaultScoreMapper;
import com.ycl.platform.service.IDefaultScoreService;
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 DefaultScoreServiceImpl extends ServiceImpl<DefaultScoreMapper, DefaultScore> implements IDefaultScoreService
{
    @Autowired
    private DefaultScoreMapper defaultScoreMapper;
 
    /**
     * 查询合同打分
     * 
     * @param id 合同打分主键
     * @return 合同打分
     */
    @Override
    public DefaultScore selectDefaultScoreById(Long id)
    {
        return defaultScoreMapper.selectDefaultScoreById(id);
    }
 
    /**
     * 查询合同打分列表
     * 
     * @param defaultScore 合同打分
     * @return 合同打分
     */
    @Override
    public List<DefaultScore> selectDefaultScoreList(DefaultScore defaultScore)
    {
        return defaultScoreMapper.selectDefaultScoreList(defaultScore);
    }
 
    /**
     * 新增合同打分
     * 
     * @param defaultScore 合同打分
     * @return 结果
     */
    @Override
    public int insertDefaultScore(DefaultScore defaultScore)
    {
        defaultScore.setCreateTime(DateUtils.getNowDate());
        return defaultScoreMapper.insertDefaultScore(defaultScore);
    }
 
    /**
     * 修改合同打分
     * 
     * @param defaultScore 合同打分
     * @return 结果
     */
    @Override
    public int updateDefaultScore(DefaultScore defaultScore)
    {
        defaultScore.setUpdateTime(DateUtils.getNowDate());
        return defaultScoreMapper.updateDefaultScore(defaultScore);
    }
 
    /**
     * 批量删除合同打分
     * 
     * @param ids 需要删除的合同打分主键
     * @return 结果
     */
    @Override
    public int deleteDefaultScoreByIds(Long[] ids)
    {
        return defaultScoreMapper.deleteDefaultScoreByIds(ids);
    }
 
    /**
     * 删除合同打分信息
     * 
     * @param id 合同打分主键
     * @return 结果
     */
    @Override
    public int deleteDefaultScoreById(Long id)
    {
        return defaultScoreMapper.deleteDefaultScoreById(id);
    }
}