龚焕茏
2024-04-16 c139302858be79aa5ca1f823c3ae3d8b1b16d6f5
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.CheckPublish;
import com.ycl.platform.mapper.CheckPublishMapper;
import com.ycl.platform.service.ICheckPublishService;
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 CheckPublishServiceImpl extends ServiceImpl<CheckPublishMapper, CheckPublish> implements ICheckPublishService
{
    @Autowired
    private CheckPublishMapper checkPublishMapper;
 
    /**
     * 查询考核发布
     * 
     * @param id 考核发布主键
     * @return 考核发布
     */
    @Override
    public CheckPublish selectCheckPublishById(Long id)
    {
        return checkPublishMapper.selectCheckPublishById(id);
    }
 
    /**
     * 查询考核发布列表
     * 
     * @param checkPublish 考核发布
     * @return 考核发布
     */
    @Override
    public List<CheckPublish> selectCheckPublishList(CheckPublish checkPublish)
    {
        return checkPublishMapper.selectCheckPublishList(checkPublish);
    }
 
    /**
     * 新增考核发布
     * 
     * @param checkPublish 考核发布
     * @return 结果
     */
    @Override
    public int insertCheckPublish(CheckPublish checkPublish)
    {
        checkPublish.setCreateTime(DateUtils.getNowDate());
        return checkPublishMapper.insertCheckPublish(checkPublish);
    }
 
    /**
     * 修改考核发布
     * 
     * @param checkPublish 考核发布
     * @return 结果
     */
    @Override
    public int updateCheckPublish(CheckPublish checkPublish)
    {
        checkPublish.setUpdateTime(DateUtils.getNowDate());
        return checkPublishMapper.updateCheckPublish(checkPublish);
    }
 
    /**
     * 批量删除考核发布
     * 
     * @param ids 需要删除的考核发布主键
     * @return 结果
     */
    @Override
    public int deleteCheckPublishByIds(Long[] ids)
    {
        return checkPublishMapper.deleteCheckPublishByIds(ids);
    }
 
    /**
     * 删除考核发布信息
     * 
     * @param id 考核发布主键
     * @return 结果
     */
    @Override
    public int deleteCheckPublishById(Long id)
    {
        return checkPublishMapper.deleteCheckPublishById(id);
    }
}