liusuyi
2026-05-30 f4f4fc53260eb67483dce406a963628273786a61
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
99
100
101
102
103
package com.ard.work.device.radar.service.impl;
 
import java.util.List;
 
import com.alibaba.nacos.common.utils.UuidUtils;
import com.ard.common.core.utils.DateUtils;
import com.ard.common.core.utils.uuid.IdUtils;
import com.ard.common.datascope.annotation.DataScope;
import com.ard.work.api.domian.ArdRadar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ard.work.device.radar.mapper.ArdRadarMapper;
//import com.ard.work.device.radar.domain.ArdRadar;
import com.ard.work.device.radar.service.IArdRadarService;
 
/**
 * 雷达管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-07
 */
@Service
public class ArdRadarServiceImpl implements IArdRadarService 
{
    @Autowired
    private ArdRadarMapper ardRadarMapper;
 
    /**
     * 查询雷达管理
     * 
     * @param id 雷达管理主键
     * @return 雷达管理
     */
    @Override
    public ArdRadar selectArdRadarById(String id)
    {
        return ardRadarMapper.selectArdRadarById(id);
    }
 
    /**
     * 查询雷达管理列表
     * 
     * @param ardRadar 雷达管理
     * @return 雷达管理
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<ArdRadar> selectArdRadarList(ArdRadar ardRadar)
    {
        return ardRadarMapper.selectArdRadarList(ardRadar);
    }
 
    /**
     * 新增雷达管理
     * 
     * @param ardRadar 雷达管理
     * @return 结果
     */
    @Override
    public int insertArdRadar(ArdRadar ardRadar)
    {
        ardRadar.setId(IdUtils.simpleUUID());
        ardRadar.setCreateTime(DateUtils.getNowDate());
        return ardRadarMapper.insertArdRadar(ardRadar);
    }
 
    /**
     * 修改雷达管理
     * 
     * @param ardRadar 雷达管理
     * @return 结果
     */
    @Override
    public int updateArdRadar(ArdRadar ardRadar)
    {
        ardRadar.setUpdateTime(DateUtils.getNowDate());
        return ardRadarMapper.updateArdRadar(ardRadar);
    }
 
    /**
     * 批量删除雷达管理
     * 
     * @param ids 需要删除的雷达管理主键
     * @return 结果
     */
    @Override
    public int deleteArdRadarByIds(String[] ids)
    {
        return ardRadarMapper.deleteArdRadarByIds(ids);
    }
 
    /**
     * 删除雷达管理信息
     * 
     * @param id 雷达管理主键
     * @return 结果
     */
    @Override
    public int deleteArdRadarById(String id)
    {
        return ardRadarMapper.deleteArdRadarById(id);
    }
}