双重预防项目-国泰新华二开定制版
SZH
2022-08-20 f9f0687195e0fe349185437d22c495d74c8d4a20
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.ruoyi.project.tr.troubleshootList.service.impl;
 
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.tr.troubleshootList.mapper.TroubleshootListMapper;
import com.ruoyi.project.tr.troubleshootList.domain.TroubleshootList;
import com.ruoyi.project.tr.troubleshootList.service.ITroubleshootListService;
import com.ruoyi.common.utils.text.Convert;
 
/**
 * 隐患排查Service业务层处理
 * 
 * @author wm
 * @date 2020-05-05
 */
@Service
public class TroubleshootListServiceImpl implements ITroubleshootListService 
{
    @Autowired
    private TroubleshootListMapper troubleshootListMapper;
 
    /**
     * 查询隐患排查
     * 
     * @param troubleshootId 隐患排查ID
     * @return 隐患排查
     */
    @Override
    public TroubleshootList selectTroubleshootListById(Long troubleshootId)
    {
        return troubleshootListMapper.selectTroubleshootListById(troubleshootId);
    }
 
    /**
     * 查询隐患排查列表
     * 
     * @param troubleshootList 隐患排查
     * @return 隐患排查
     */
    @Override
    public List<TroubleshootList> selectTroubleshootListList(TroubleshootList troubleshootList)
    {
        return troubleshootListMapper.selectTroubleshootListList(troubleshootList);
    }
 
    /**
     * 新增隐患排查
     * 
     * @param troubleshootList 隐患排查
     * @return 结果
     */
    @Override
    public int insertTroubleshootList(TroubleshootList troubleshootList)
    {
        troubleshootList.setCreateTime(DateUtils.getNowDate());
        return troubleshootListMapper.insertTroubleshootList(troubleshootList);
    }
 
    /**
     * 修改隐患排查
     * 
     * @param troubleshootList 隐患排查
     * @return 结果
     */
    @Override
    public int updateTroubleshootList(TroubleshootList troubleshootList)
    {
        troubleshootList.setUpdateTime(DateUtils.getNowDate());
        return troubleshootListMapper.updateTroubleshootList(troubleshootList);
    }
 
    /**
     * 删除隐患排查对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTroubleshootListByIds(String ids)
    {
        return troubleshootListMapper.deleteTroubleshootListByIds(Convert.toStrArray(ids));
    }
 
    /**
     * 删除隐患排查信息
     * 
     * @param troubleshootId 隐患排查ID
     * @return 结果
     */
    @Override
    public int deleteTroubleshootListById(Long troubleshootId)
    {
        return troubleshootListMapper.deleteTroubleshootListById(troubleshootId);
    }
}