liusuyi
2024-07-12 49bedcce2ac42fa34da012ee3fc8e9230886064a
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.ruoyi.device.noguidezone.service.impl;
 
import java.util.List;
        import com.ruoyi.common.utils.DateUtils;
 
import com.ruoyi.common.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.device.noguidezone.mapper.ArdCameraNoGuideZoneMapper;
import com.ruoyi.device.noguidezone.domain.ArdCameraNoGuideZone;
import com.ruoyi.device.noguidezone.service.IArdCameraNoGuideZoneService;
 
/**
 * 禁引可视域Service业务层处理
 *
 * @author ard
 * @date 2023-10-28
 */
@Service
public class ArdCameraNoGuideZoneServiceImpl implements IArdCameraNoGuideZoneService {
    @Autowired
    private ArdCameraNoGuideZoneMapper ardCameraNoGuideZoneMapper;
 
    /**
     * 查询禁引可视域
     *
     * @param id 禁引可视域主键
     * @return 禁引可视域
     */
    @Override
    public ArdCameraNoGuideZone selectArdCameraNoGuideZoneById(String id) {
        return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneById(id);
    }
 
    /**
     * 查询禁引可视域列表
     *
     * @param ardCameraNoGuideZone 禁引可视域
     * @return 禁引可视域
     */
    @Override
    public List<ArdCameraNoGuideZone> selectArdCameraNoGuideZoneList(ArdCameraNoGuideZone ardCameraNoGuideZone) {
        return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneList(ardCameraNoGuideZone);
    }
 
    /**
     * 新增禁引可视域
     *
     * @param ardCameraNoGuideZone 禁引可视域
     * @return 结果
     */
    @Override
    public int insertArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) {
                ardCameraNoGuideZone.setId(IdUtils.simpleUUID());
                ardCameraNoGuideZone.setUserId(SecurityUtils.getUserId());
                ardCameraNoGuideZone.setCreateBy(SecurityUtils.getUsername());
                ardCameraNoGuideZone.setCreateTime(DateUtils.getNowDate());
            return ardCameraNoGuideZoneMapper.insertArdCameraNoGuideZone(ardCameraNoGuideZone);
    }
 
    /**
     * 修改禁引可视域
     *
     * @param ardCameraNoGuideZone 禁引可视域
     * @return 结果
     */
    @Override
    public int updateArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) {
                ardCameraNoGuideZone.setUpdateBy(SecurityUtils.getUsername());
                ardCameraNoGuideZone.setUpdateTime(DateUtils.getNowDate());
        return ardCameraNoGuideZoneMapper.updateArdCameraNoGuideZone(ardCameraNoGuideZone);
    }
 
    /**
     * 批量删除禁引可视域
     *
     * @param ids 需要删除的禁引可视域主键
     * @return 结果
     */
    @Override
    public int deleteArdCameraNoGuideZoneByIds(String[] ids) {
        return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByIds(ids);
    }
 
    /**
     * 删除禁引可视域信息
     *
     * @param id 禁引可视域主键
     * @return 结果
     */
    @Override
    public int deleteArdCameraNoGuideZoneById(String id) {
        return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneById(id);
    }
}