Administrator
2023-08-03 babddaa73918a054346b9af3f3926831c4667c1b
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
package com.ruoyi.app.patrolplan.service.impl;
 
import java.util.ArrayList;
import java.util.List;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWell;
import com.ruoyi.alarmpoints.well.mapper.ArdAlarmpointsWellMapper;
import com.ruoyi.utils.result.Results;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.patrolplan.mapper.ArdAppPatrolpointMapper;
import com.ruoyi.app.patrolplan.domain.ArdAppPatrolpoint;
import com.ruoyi.app.patrolplan.service.IArdAppPatrolpointService;
 
import javax.annotation.Resource;
 
/**
 * app巡检计划点位Service业务层处理
 *
 * @author ard
 * @date 2023-08-02
 */
@Service
public class ArdAppPatrolpointServiceImpl implements IArdAppPatrolpointService {
    @Resource
    private ArdAppPatrolpointMapper ardAppPatrolpointMapper;
 
    @Resource
    private ArdAlarmpointsWellMapper ardAlarmpointsWellMapper;
 
    /**
     * 查询app巡检计划点位
     *
     * @param id app巡检计划点位主键
     * @return app巡检计划点位
     */
    @Override
    public ArdAppPatrolpoint selectArdAppPatrolpointById(String id) {
        return ardAppPatrolpointMapper.selectArdAppPatrolpointById(id);
    }
 
    /**
     * 查询app巡检计划点位列表
     *
     * @param ardAppPatrolpoint app巡检计划点位
     * @return app巡检计划点位
     */
    @Override
    public List<ArdAppPatrolpoint> selectArdAppPatrolpointList(ArdAppPatrolpoint ardAppPatrolpoint) {
        return ardAppPatrolpointMapper.selectArdAppPatrolpointList(ardAppPatrolpoint);
    }
 
    /**
     * 新增app巡检计划点位
     *
     * @param ardAppPatrolpoint app巡检计划点位
     * @return 结果
     */
    @Override
    public int insertArdAppPatrolpoint(ArdAppPatrolpoint ardAppPatrolpoint) {
            return ardAppPatrolpointMapper.insertArdAppPatrolpoint(ardAppPatrolpoint);
    }
 
    /**
     * 修改app巡检计划点位
     *
     * @param ardAppPatrolpoint app巡检计划点位
     * @return 结果
     */
    @Override
    public int updateArdAppPatrolpoint(ArdAppPatrolpoint ardAppPatrolpoint) {
        return ardAppPatrolpointMapper.updateArdAppPatrolpoint(ardAppPatrolpoint);
    }
 
    @Override
    public Results wellByPlanId(String id) {
        return Results.succeed(ardAlarmpointsWellMapper.wellByPlanId(id));
    }
}