fuliqi
2024-04-02 ea3e40330575519d9a4c7dbe4f6d63e4a22ea861
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
package com.ycl.platform.service.impl;
 
import com.ycl.platform.domain.entity.DefaultPublish;
import com.ycl.platform.mapper.DefaultPublishMapper;
import com.ycl.platform.service.IDefaultPublishService;
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 DefaultPublishServiceImpl implements IDefaultPublishService 
{
    @Autowired
    private DefaultPublishMapper defaultPublishMapper;
 
    /**
     * 查询合同考核发布
     * 
     * @param id 合同考核发布主键
     * @return 合同考核发布
     */
    @Override
    public DefaultPublish selectDefaultPublishById(Long id)
    {
        return defaultPublishMapper.selectDefaultPublishById(id);
    }
 
    /**
     * 查询合同考核发布列表
     * 
     * @param defaultPublish 合同考核发布
     * @return 合同考核发布
     */
    @Override
    public List<DefaultPublish> selectDefaultPublishList(DefaultPublish defaultPublish)
    {
        return defaultPublishMapper.selectDefaultPublishList(defaultPublish);
    }
 
    /**
     * 新增合同考核发布
     * 
     * @param defaultPublish 合同考核发布
     * @return 结果
     */
    @Override
    public int insertDefaultPublish(DefaultPublish defaultPublish)
    {
        defaultPublish.setCreateTime(DateUtils.getNowDate());
        return defaultPublishMapper.insertDefaultPublish(defaultPublish);
    }
 
    /**
     * 修改合同考核发布
     * 
     * @param defaultPublish 合同考核发布
     * @return 结果
     */
    @Override
    public int updateDefaultPublish(DefaultPublish defaultPublish)
    {
        defaultPublish.setUpdateTime(DateUtils.getNowDate());
        return defaultPublishMapper.updateDefaultPublish(defaultPublish);
    }
 
    /**
     * 批量删除合同考核发布
     * 
     * @param ids 需要删除的合同考核发布主键
     * @return 结果
     */
    @Override
    public int deleteDefaultPublishByIds(Long[] ids)
    {
        return defaultPublishMapper.deleteDefaultPublishByIds(ids);
    }
 
    /**
     * 删除合同考核发布信息
     * 
     * @param id 合同考核发布主键
     * @return 结果
     */
    @Override
    public int deleteDefaultPublishById(Long id)
    {
        return defaultPublishMapper.deleteDefaultPublishById(id);
    }
}