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
package com.ruoyi.alarm.wall.service.impl;
 
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.stereotype.Service;
import com.ruoyi.alarm.wall.mapper.ArdAlarmWallMapper;
import com.ruoyi.alarm.wall.domain.ArdAlarmWall;
import com.ruoyi.alarm.wall.service.IArdAlarmWallService;
import javax.annotation.Resource;
 
/**
 * 电子围栏报警Service业务层处理
 *
 * @author ard
 * @date 2023-08-31
 */
@Service
public class ArdAlarmWallServiceImpl implements IArdAlarmWallService {
    @Resource
    private ArdAlarmWallMapper ardAlarmWallMapper;
 
    /**
     * 查询电子围栏报警
     *
     * @param id 电子围栏报警主键
     * @return 电子围栏报警
     */
    @Override
    public ArdAlarmWall selectArdAlarmWallById(String id) {
        return ardAlarmWallMapper.selectArdAlarmWallById(id);
    }
 
    /**
     * 查询电子围栏报警列表
     *
     * @param ardAlarmWall 电子围栏报警
     * @return 电子围栏报警
     */
    @Override
    public List<ArdAlarmWall> selectArdAlarmWallList(ArdAlarmWall ardAlarmWall) {
        return ardAlarmWallMapper.selectArdAlarmWallList(ardAlarmWall);
    }
 
    /**
     * 新增电子围栏报警
     *
     * @param ardAlarmWall 电子围栏报警
     * @return 结果
     */
    @Override
    public int insertArdAlarmWall(ArdAlarmWall ardAlarmWall) {
                ardAlarmWall.setCreateBy(SecurityUtils.getUsername());
                ardAlarmWall.setCreateTime(DateUtils.getNowDate());
            return ardAlarmWallMapper.insertArdAlarmWall(ardAlarmWall);
    }
 
    /**
     * 修改电子围栏报警
     *
     * @param ardAlarmWall 电子围栏报警
     * @return 结果
     */
    @Override
    public int updateArdAlarmWall(ArdAlarmWall ardAlarmWall) {
                ardAlarmWall.setUpdateBy(SecurityUtils.getUsername());
                ardAlarmWall.setUpdateTime(DateUtils.getNowDate());
        return ardAlarmWallMapper.updateArdAlarmWall(ardAlarmWall);
    }
 
    /**
     * 批量删除电子围栏报警
     *
     * @param ids 需要删除的电子围栏报警主键
     * @return 结果
     */
    @Override
    public int deleteArdAlarmWallByIds(String[] ids) {
        return ardAlarmWallMapper.deleteArdAlarmWallByIds(ids);
    }
 
    /**
     * 删除电子围栏报警信息
     *
     * @param id 电子围栏报警主键
     * @return 结果
     */
    @Override
    public int deleteArdAlarmWallById(String id) {
        return ardAlarmWallMapper.deleteArdAlarmWallById(id);
    }
}