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)); 
 | 
    } 
 | 
} 
 |