Selaa lähdekoodia

计划管理修改

459242451@qq.com 3 vuotta sitten
vanhempi
commit
7ccf143112
18 muutettua tiedostoa jossa 894 lisäystä ja 65 poistoa
  1. 39 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/domain/TlInspectionPlan.java
  2. 142 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/domain/TlPlanTemp.java
  3. 12 10
      ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionLineLocationMapper.java
  4. 3 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionLocationMapper.java
  5. 2 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionPlanMapper.java
  6. 61 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlPlanTempMapper.java
  7. 13 10
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlInspectionLineLocationService.java
  8. 3 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlInspectionLocationService.java
  9. 61 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlPlanTempService.java
  10. 24 25
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionLineLocationServiceImpl.java
  11. 6 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionLocationServiceImpl.java
  12. 93 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionPlanServiceImpl.java
  13. 95 0
      ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlPlanTempServiceImpl.java
  14. 30 19
      ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionLineLocationMapper.xml
  15. 7 0
      ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionLocationMapper.xml
  16. 23 0
      ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionPlanMapper.xml
  17. 101 0
      ruoyi-system/src/main/resources/mapper/qdtl/TlPlanTempMapper.xml
  18. 179 1
      sql/ry_20210908.sql

+ 39 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/domain/TlInspectionPlan.java

@@ -52,6 +52,21 @@ public class TlInspectionPlan extends BaseEntity {
     private String endDate;
 
     /**
+     * 星期
+     */
+    private String weeks;
+
+    /**
+     * 时间段
+     */
+    private String timeUnit;
+
+    /**
+     * 巡检次数
+     */
+    private int xunNum;
+
+    /**
      * 线路id
      */
     @Excel(name = "线路id")
@@ -175,4 +190,28 @@ public class TlInspectionPlan extends BaseEntity {
     public void setStatus(String status) {
         this.status = status;
     }
+
+    public String getWeeks() {
+        return weeks;
+    }
+
+    public void setWeeks(String weeks) {
+        this.weeks = weeks;
+    }
+
+    public String getTimeUnit() {
+        return timeUnit;
+    }
+
+    public void setTimeUnit(String timeUnit) {
+        this.timeUnit = timeUnit;
+    }
+
+    public int getXunNum() {
+        return xunNum;
+    }
+
+    public void setXunNum(int xunNum) {
+        this.xunNum = xunNum;
+    }
 }

+ 142 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/domain/TlPlanTemp.java

@@ -0,0 +1,142 @@
+package com.ruoyi.qdtl.domain;
+
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 巡检计划管理对象 tl_plan_temp
+ *
+ * @author ruoyi
+ * @date 2022-04-21
+ */
+public class TlPlanTemp extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    private Long id;
+
+    /**
+     * 编号
+     */
+    @Excel(name = "编号")
+    private Long planId;
+
+    /**
+     * 开始时间
+     */
+    @Excel(name = "开始时间")
+    private String startDate;
+
+    /**
+     * 结束时间
+     */
+    @Excel(name = "结束时间")
+    private String endDate;
+
+    /**
+     * 人员id
+     */
+    @Excel(name = "人员id")
+    private Long userId;
+
+    /**
+     * 监测点ids
+     */
+    @Excel(name = "监测点ids")
+    private String locationIds;
+
+    /**
+     * 星期
+     */
+    @Excel(name = "星期")
+    private String weeks;
+
+    /**
+     * 时间段
+     */
+    @Excel(name = "时间段")
+    private String timeUnit;
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setPlanId(Long planId) {
+        this.planId = planId;
+    }
+
+    public Long getPlanId() {
+        return planId;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setLocationIds(String locationIds) {
+        this.locationIds = locationIds;
+    }
+
+    public String getLocationIds() {
+        return locationIds;
+    }
+
+    public void setWeeks(String weeks) {
+        this.weeks = weeks;
+    }
+
+    public String getWeeks() {
+        return weeks;
+    }
+
+    public void setTimeUnit(String timeUnit) {
+        this.timeUnit = timeUnit;
+    }
+
+    public String getTimeUnit() {
+        return timeUnit;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("planId", getPlanId())
+                .append("startDate", getStartDate())
+                .append("endDate", getEndDate())
+                .append("userId", getUserId())
+                .append("locationIds", getLocationIds())
+                .append("createTime", getCreateTime())
+                .append("weeks", getWeeks())
+                .append("timeUnit", getTimeUnit())
+                .toString();
+    }
+}

+ 12 - 10
ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionLineLocationMapper.java

@@ -1,20 +1,20 @@
 package com.ruoyi.qdtl.mapper;
 
-import java.util.List;
 import com.ruoyi.qdtl.domain.TlInspectionLineLocation;
 import org.apache.ibatis.annotations.Param;
 
+import java.util.List;
+
 /**
  * 巡检线路点位Mapper接口
- * 
+ *
  * @author ruoyi
  * @date 2022-03-03
  */
-public interface TlInspectionLineLocationMapper 
-{
+public interface TlInspectionLineLocationMapper {
     /**
      * 查询巡检线路点位
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 巡检线路点位
      */
@@ -22,7 +22,7 @@ public interface TlInspectionLineLocationMapper
 
     /**
      * 查询巡检线路点位列表
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 巡检线路点位集合
      */
@@ -30,7 +30,7 @@ public interface TlInspectionLineLocationMapper
 
     /**
      * 新增巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
@@ -38,7 +38,7 @@ public interface TlInspectionLineLocationMapper
 
     /**
      * 修改巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
@@ -46,7 +46,7 @@ public interface TlInspectionLineLocationMapper
 
     /**
      * 删除巡检线路点位
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 结果
      */
@@ -54,7 +54,7 @@ public interface TlInspectionLineLocationMapper
 
     /**
      * 批量删除巡检线路点位
-     * 
+     *
      * @param ids 需要删除的数据主键集合
      * @return 结果
      */
@@ -63,4 +63,6 @@ public interface TlInspectionLineLocationMapper
     void batchInsert(List<TlInspectionLineLocation> lineLocations);
 
     void deleteLineLocation(@Param("lineId") Long lineId);
+
+    List<Long> queryLocationId(@Param("lineId") Long lineId);
 }

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionLocationMapper.java

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
 import com.ruoyi.qdtl.domain.TlInspectionLocation;
 import org.apache.ibatis.annotations.Param;
 
+import java.util.Collection;
 import java.util.List;
 
 /**
@@ -76,4 +77,6 @@ public interface TlInspectionLocationMapper {
     void deleteLocationByVersion(@Param("version") int version);
 
     List<TlInspectionLocation> queryLocationByLineId(@Param("lineId") Long lineId);
+
+    List<String> queryLocationByLocationIds(@Param("locations") Collection<Long> locations);
 }

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlInspectionPlanMapper.java

@@ -64,4 +64,6 @@ public interface TlInspectionPlanMapper {
     List<TlInspectionPlan> queryPlanByDate(@Param("queryDate") String queryDate);
 
     List<PlanUser> queryPlanUser(@Param("id") Long id);
+
+    List<TlInspectionPlan> queryPlanUserExcludeId(@Param("userId") Long userId, @Param("excludePlanId") Long excludePlanId);
 }

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/mapper/TlPlanTempMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.qdtl.mapper;
+
+import java.util.List;
+import com.ruoyi.qdtl.domain.TlPlanTemp;
+
+/**
+ * 巡检计划管理Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-04-21
+ */
+public interface TlPlanTempMapper 
+{
+    /**
+     * 查询巡检计划管理
+     * 
+     * @param id 巡检计划管理主键
+     * @return 巡检计划管理
+     */
+    public TlPlanTemp selectTlPlanTempById(Long id);
+
+    /**
+     * 查询巡检计划管理列表
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 巡检计划管理集合
+     */
+    public List<TlPlanTemp> selectTlPlanTempList(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 新增巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    public int insertTlPlanTemp(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 修改巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    public int updateTlPlanTemp(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 删除巡检计划管理
+     * 
+     * @param id 巡检计划管理主键
+     * @return 结果
+     */
+    public int deleteTlPlanTempById(Long id);
+
+    /**
+     * 批量删除巡检计划管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTlPlanTempByIds(Long[] ids);
+}

+ 13 - 10
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlInspectionLineLocationService.java

@@ -1,19 +1,19 @@
 package com.ruoyi.qdtl.service;
 
-import java.util.List;
 import com.ruoyi.qdtl.domain.TlInspectionLineLocation;
 
+import java.util.List;
+
 /**
  * 巡检线路点位Service接口
- * 
+ *
  * @author ruoyi
  * @date 2022-03-03
  */
-public interface ITlInspectionLineLocationService 
-{
+public interface ITlInspectionLineLocationService {
     /**
      * 查询巡检线路点位
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 巡检线路点位
      */
@@ -21,7 +21,7 @@ public interface ITlInspectionLineLocationService
 
     /**
      * 查询巡检线路点位列表
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 巡检线路点位集合
      */
@@ -29,7 +29,7 @@ public interface ITlInspectionLineLocationService
 
     /**
      * 新增巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
@@ -37,7 +37,7 @@ public interface ITlInspectionLineLocationService
 
     /**
      * 修改巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
@@ -45,7 +45,7 @@ public interface ITlInspectionLineLocationService
 
     /**
      * 批量删除巡检线路点位
-     * 
+     *
      * @param ids 需要删除的巡检线路点位主键集合
      * @return 结果
      */
@@ -53,7 +53,7 @@ public interface ITlInspectionLineLocationService
 
     /**
      * 删除巡检线路点位信息
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 结果
      */
@@ -62,4 +62,7 @@ public interface ITlInspectionLineLocationService
     void batchInsert(List<TlInspectionLineLocation> lineLocations);
 
     void deleteLineLocation(Long lineId);
+
+    List<Long> queryLocationId(Long lineId);
+    
 }

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlInspectionLocationService.java

@@ -2,6 +2,7 @@ package com.ruoyi.qdtl.service;
 
 import com.ruoyi.qdtl.domain.TlInspectionLocation;
 
+import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 
@@ -73,4 +74,6 @@ public interface ITlInspectionLocationService {
     void deleteLocationByVersion(int version);
 
     List<TlInspectionLocation> queryLocationByLineId(Long lineId);
+
+    List<String> queryLocationByLocationIds(Collection<Long> locations);
 }

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/ITlPlanTempService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.qdtl.service;
+
+import java.util.List;
+import com.ruoyi.qdtl.domain.TlPlanTemp;
+
+/**
+ * 巡检计划管理Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-04-21
+ */
+public interface ITlPlanTempService 
+{
+    /**
+     * 查询巡检计划管理
+     * 
+     * @param id 巡检计划管理主键
+     * @return 巡检计划管理
+     */
+    public TlPlanTemp selectTlPlanTempById(Long id);
+
+    /**
+     * 查询巡检计划管理列表
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 巡检计划管理集合
+     */
+    public List<TlPlanTemp> selectTlPlanTempList(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 新增巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    public int insertTlPlanTemp(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 修改巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    public int updateTlPlanTemp(TlPlanTemp tlPlanTemp);
+
+    /**
+     * 批量删除巡检计划管理
+     * 
+     * @param ids 需要删除的巡检计划管理主键集合
+     * @return 结果
+     */
+    public int deleteTlPlanTempByIds(Long[] ids);
+
+    /**
+     * 删除巡检计划管理信息
+     * 
+     * @param id 巡检计划管理主键
+     * @return 结果
+     */
+    public int deleteTlPlanTempById(Long id);
+}

+ 24 - 25
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionLineLocationServiceImpl.java

@@ -1,93 +1,87 @@
 package com.ruoyi.qdtl.service.impl;
 
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.ruoyi.qdtl.mapper.TlInspectionLineLocationMapper;
 import com.ruoyi.qdtl.domain.TlInspectionLineLocation;
+import com.ruoyi.qdtl.mapper.TlInspectionLineLocationMapper;
 import com.ruoyi.qdtl.service.ITlInspectionLineLocationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
 
 /**
  * 巡检线路点位Service业务层处理
- * 
+ *
  * @author ruoyi
  * @date 2022-03-03
  */
 @Service
-public class TlInspectionLineLocationServiceImpl implements ITlInspectionLineLocationService 
-{
+public class TlInspectionLineLocationServiceImpl implements ITlInspectionLineLocationService {
     @Autowired
     private TlInspectionLineLocationMapper tlInspectionLineLocationMapper;
 
     /**
      * 查询巡检线路点位
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 巡检线路点位
      */
     @Override
-    public TlInspectionLineLocation selectTlInspectionLineLocationById(Long id)
-    {
+    public TlInspectionLineLocation selectTlInspectionLineLocationById(Long id) {
         return tlInspectionLineLocationMapper.selectTlInspectionLineLocationById(id);
     }
 
     /**
      * 查询巡检线路点位列表
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 巡检线路点位
      */
     @Override
-    public List<TlInspectionLineLocation> selectTlInspectionLineLocationList(TlInspectionLineLocation tlInspectionLineLocation)
-    {
+    public List<TlInspectionLineLocation> selectTlInspectionLineLocationList(TlInspectionLineLocation tlInspectionLineLocation) {
         return tlInspectionLineLocationMapper.selectTlInspectionLineLocationList(tlInspectionLineLocation);
     }
 
     /**
      * 新增巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
     @Override
-    public int insertTlInspectionLineLocation(TlInspectionLineLocation tlInspectionLineLocation)
-    {
+    public int insertTlInspectionLineLocation(TlInspectionLineLocation tlInspectionLineLocation) {
         return tlInspectionLineLocationMapper.insertTlInspectionLineLocation(tlInspectionLineLocation);
     }
 
     /**
      * 修改巡检线路点位
-     * 
+     *
      * @param tlInspectionLineLocation 巡检线路点位
      * @return 结果
      */
     @Override
-    public int updateTlInspectionLineLocation(TlInspectionLineLocation tlInspectionLineLocation)
-    {
+    public int updateTlInspectionLineLocation(TlInspectionLineLocation tlInspectionLineLocation) {
         return tlInspectionLineLocationMapper.updateTlInspectionLineLocation(tlInspectionLineLocation);
     }
 
     /**
      * 批量删除巡检线路点位
-     * 
+     *
      * @param ids 需要删除的巡检线路点位主键
      * @return 结果
      */
     @Override
-    public int deleteTlInspectionLineLocationByIds(Long[] ids)
-    {
+    public int deleteTlInspectionLineLocationByIds(Long[] ids) {
         return tlInspectionLineLocationMapper.deleteTlInspectionLineLocationByIds(ids);
     }
 
     /**
      * 删除巡检线路点位信息
-     * 
+     *
      * @param id 巡检线路点位主键
      * @return 结果
      */
     @Override
-    public int deleteTlInspectionLineLocationById(Long id)
-    {
+    public int deleteTlInspectionLineLocationById(Long id) {
         return tlInspectionLineLocationMapper.deleteTlInspectionLineLocationById(id);
     }
 
@@ -100,4 +94,9 @@ public class TlInspectionLineLocationServiceImpl implements ITlInspectionLineLoc
     public void deleteLineLocation(Long lineId) {
         tlInspectionLineLocationMapper.deleteLineLocation(lineId);
     }
+
+    @Override
+    public List<Long> queryLocationId(Long lineId) {
+        return tlInspectionLineLocationMapper.queryLocationId(lineId);
+    }
 }

+ 6 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionLocationServiceImpl.java

@@ -8,6 +8,7 @@ import com.ruoyi.qdtl.service.ITlInspectionLocationService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.stream.Collectors;
@@ -159,4 +160,9 @@ public class TlInspectionLocationServiceImpl implements ITlInspectionLocationSer
     public List<TlInspectionLocation> queryLocationByLineId(Long lineId) {
         return tlInspectionLocationMapper.queryLocationByLineId(lineId);
     }
+
+    @Override
+    public List<String> queryLocationByLocationIds(Collection<Long> locations) {
+        return tlInspectionLocationMapper.queryLocationByLocationIds(locations);
+    }
 }

+ 93 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlInspectionPlanServiceImpl.java

@@ -1,15 +1,27 @@
 package com.ruoyi.qdtl.service.impl;
 
+import cn.hutool.core.collection.CollUtil;
+import cn.hutool.core.date.DateField;
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.util.StrUtil;
+import com.ruoyi.common.core.text.Convert;
+import com.ruoyi.common.exception.ServiceException;
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.qdtl.domain.PlanUser;
 import com.ruoyi.qdtl.domain.TlInspectionPlan;
 import com.ruoyi.qdtl.domain.TlInspectionPlanUser;
 import com.ruoyi.qdtl.mapper.TlInspectionPlanMapper;
+import com.ruoyi.qdtl.service.ITlInspectionLineLocationService;
+import com.ruoyi.qdtl.service.ITlInspectionLocationService;
 import com.ruoyi.qdtl.service.ITlInspectionPlanService;
 import com.ruoyi.qdtl.service.ITlInspectionPlanUserService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
+import java.util.ArrayList;
+import java.util.Collection;
 import java.util.List;
 
 /**
@@ -24,6 +36,10 @@ public class TlInspectionPlanServiceImpl implements ITlInspectionPlanService {
     private TlInspectionPlanMapper tlInspectionPlanMapper;
     @Autowired
     private ITlInspectionPlanUserService tlInspectionPlanUserService;
+    @Autowired
+    private ITlInspectionLineLocationService tlInspectionLineLocationService;
+    @Autowired
+    private ITlInspectionLocationService tlInspectionLocationService;
 
     /**
      * 查询巡检计划管理
@@ -54,9 +70,12 @@ public class TlInspectionPlanServiceImpl implements ITlInspectionPlanService {
      * @return 结果
      */
     @Override
+    @Transactional
     public int insertTlInspectionPlan(TlInspectionPlan tlInspectionPlan) {
         tlInspectionPlan.setCreateTime(DateUtils.getNowDate());
         int row = tlInspectionPlanMapper.insertTlInspectionPlan(tlInspectionPlan);
+        // 校验人员是否存在重复的计划范围
+        checkPlanUser(tlInspectionPlan, tlInspectionPlan.getId());
         for (TlInspectionPlanUser planUser : tlInspectionPlan.getPlanUsers()) {
             planUser.setPlanId(tlInspectionPlan.getId());
         }
@@ -76,6 +95,8 @@ public class TlInspectionPlanServiceImpl implements ITlInspectionPlanService {
     public int updateTlInspectionPlan(TlInspectionPlan tlInspectionPlan) {
         tlInspectionPlan.setUpdateTime(DateUtils.getNowDate());
         int row = tlInspectionPlanMapper.updateTlInspectionPlan(tlInspectionPlan);
+        // 校验人员是否存在重复的计划范围
+        checkPlanUser(tlInspectionPlan, tlInspectionPlan.getId());
         // 删除关系后再新增
         tlInspectionPlanUserService.deletePlanUser(tlInspectionPlan.getId());
         for (TlInspectionPlanUser planUser : tlInspectionPlan.getPlanUsers()) {
@@ -118,4 +139,76 @@ public class TlInspectionPlanServiceImpl implements ITlInspectionPlanService {
     public List<PlanUser> queryPlanUser(Long id) {
         return tlInspectionPlanMapper.queryPlanUser(id);
     }
+
+    /**
+     * 校验计划中用户是否存在重复的
+     *
+     * @param tlInspectionPlan 待校验的计划数据
+     * @param excludePlanId    排除的计划id
+     */
+    private void checkPlanUser(TlInspectionPlan tlInspectionPlan, Long excludePlanId) {
+        // 此次的所有日期可能性
+        List<String> currentDateTime = new ArrayList<>();
+        List<DateTime> currentTimes = DateUtil.rangeToList(DateUtil.parseDate(tlInspectionPlan.getStartDate()), DateUtil.parseDate(tlInspectionPlan.getEndDate()), DateField.DAY_OF_YEAR);
+        boolean currentFlag = !"1,2,3,4,5,6,7".equals(tlInspectionPlan.getWeeks());
+        for (DateTime currentTime : currentTimes) {
+            if (currentFlag) {
+                int week = DateUtil.dayOfWeek(currentTime);
+                if (!CollUtil.contains(StrUtil.split(tlInspectionPlan.getWeeks(), ","), Convert.toStr(week))) {
+                    continue;
+                }
+            }
+            List<String> split = StrUtil.split(tlInspectionPlan.getTimeUnit(), ",");
+            for (String s : split) {
+                for (String s1 : StrUtil.split(s, "~")) {
+                    currentDateTime.add(DateUtil.formatDate(currentTime) + " " + s1);
+                }
+            }
+        }
+        // 当前计划所有的点位
+        List<Long> currentLocation = tlInspectionLineLocationService.queryLocationId(tlInspectionPlan.getLineId());
+        for (TlInspectionPlanUser planUser : tlInspectionPlan.getPlanUsers()) {
+            Long userId = planUser.getUserId();
+            String userName = planUser.getNickName();
+            // 查询该用户的计划
+            List<TlInspectionPlan> list = tlInspectionPlanMapper.queryPlanUserExcludeId(userId, excludePlanId);
+            if (list != null && list.size() > 0) {
+                for (TlInspectionPlan inspectionPlan : list) {
+                    // 组装日期范围
+                    // 已存在的
+                    List<String> existDateTime = new ArrayList<>();
+                    List<DateTime> existTimes = DateUtil.rangeToList(DateUtil.parseDate(inspectionPlan.getStartDate()), DateUtil.parseDate(inspectionPlan.getEndDate()), DateField.DAY_OF_YEAR);
+                    boolean existFlag = !"1,2,3,4,5,6,7".equals(inspectionPlan.getWeeks());
+                    for (DateTime existTime : existTimes) {
+                        if (existFlag) {
+                            int week = DateUtil.dayOfWeek(existTime);
+                            if (!CollUtil.contains(StrUtil.split(inspectionPlan.getWeeks(), ","), Convert.toStr(week))) {
+                                continue;
+                            }
+                        }
+                        List<String> split = StrUtil.split(inspectionPlan.getTimeUnit(), ",");
+                        for (String s : split) {
+                            for (String s1 : StrUtil.split(s, "~")) {
+                                existDateTime.add(DateUtil.formatDate(existTime) + " " + s1);
+                            }
+                        }
+                    }
+                    // 判断是否有重复的时间段
+                    Collection<String> intersection = CollUtil.intersection(currentDateTime, existDateTime);
+                    if (intersection.size() > 0) {
+                        // 检查是否有相同的巡检点
+                        List<Long> existLocation = tlInspectionLineLocationService.queryLocationId(inspectionPlan.getLineId());
+                        Collection<Long> locations = CollUtil.intersection(currentLocation, existLocation);
+                        if (locations.size() > 0) {
+                            // 组装错误信息
+                            List<String> locationNames = tlInspectionLocationService.queryLocationByLocationIds(locations);
+                            String message = StrUtil.concat(true, userName, "在", inspectionPlan.getPlanName(), "中", String.join(",", intersection), "时间段内的点位:", String.join(",", locationNames), "存在相冲突的计划巡检点");
+                            throw new ServiceException(message);
+                        }
+                    }
+                }
+            }
+        }
+    }
+
 }

+ 95 - 0
ruoyi-system/src/main/java/com/ruoyi/qdtl/service/impl/TlPlanTempServiceImpl.java

@@ -0,0 +1,95 @@
+package com.ruoyi.qdtl.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.qdtl.mapper.TlPlanTempMapper;
+import com.ruoyi.qdtl.domain.TlPlanTemp;
+import com.ruoyi.qdtl.service.ITlPlanTempService;
+
+/**
+ * 巡检计划管理Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2022-04-21
+ */
+@Service
+public class TlPlanTempServiceImpl implements ITlPlanTempService 
+{
+    @Autowired
+    private TlPlanTempMapper tlPlanTempMapper;
+
+    /**
+     * 查询巡检计划管理
+     * 
+     * @param id 巡检计划管理主键
+     * @return 巡检计划管理
+     */
+    @Override
+    public TlPlanTemp selectTlPlanTempById(Long id)
+    {
+        return tlPlanTempMapper.selectTlPlanTempById(id);
+    }
+
+    /**
+     * 查询巡检计划管理列表
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 巡检计划管理
+     */
+    @Override
+    public List<TlPlanTemp> selectTlPlanTempList(TlPlanTemp tlPlanTemp)
+    {
+        return tlPlanTempMapper.selectTlPlanTempList(tlPlanTemp);
+    }
+
+    /**
+     * 新增巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    @Override
+    public int insertTlPlanTemp(TlPlanTemp tlPlanTemp)
+    {
+        tlPlanTemp.setCreateTime(DateUtils.getNowDate());
+        return tlPlanTempMapper.insertTlPlanTemp(tlPlanTemp);
+    }
+
+    /**
+     * 修改巡检计划管理
+     * 
+     * @param tlPlanTemp 巡检计划管理
+     * @return 结果
+     */
+    @Override
+    public int updateTlPlanTemp(TlPlanTemp tlPlanTemp)
+    {
+        return tlPlanTempMapper.updateTlPlanTemp(tlPlanTemp);
+    }
+
+    /**
+     * 批量删除巡检计划管理
+     * 
+     * @param ids 需要删除的巡检计划管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTlPlanTempByIds(Long[] ids)
+    {
+        return tlPlanTempMapper.deleteTlPlanTempByIds(ids);
+    }
+
+    /**
+     * 删除巡检计划管理信息
+     * 
+     * @param id 巡检计划管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTlPlanTempById(Long id)
+    {
+        return tlPlanTempMapper.deleteTlPlanTempById(id);
+    }
+}

+ 30 - 19
ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionLineLocationMapper.xml

@@ -1,46 +1,53 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.qdtl.mapper.TlInspectionLineLocationMapper">
-    
+
     <resultMap type="TlInspectionLineLocation" id="TlInspectionLineLocationResult">
-        <result property="id"    column="id"    />
-        <result property="lineId"    column="line_id"    />
-        <result property="locationId"    column="location_id"    />
-        <result property="sortNo"    column="sort_no"    />
+        <result property="id" column="id"/>
+        <result property="lineId" column="line_id"/>
+        <result property="locationId" column="location_id"/>
+        <result property="sortNo" column="sort_no"/>
     </resultMap>
 
     <sql id="selectTlInspectionLineLocationVo">
-        select id, line_id, location_id, sort_no from tl_inspection_line_location
+        select id, line_id, location_id, sort_no
+        from tl_inspection_line_location
     </sql>
 
     <select id="selectTlInspectionLineLocationList" parameterType="TlInspectionLineLocation" resultMap="TlInspectionLineLocationResult">
         <include refid="selectTlInspectionLineLocationVo"/>
-        <where>  
-            <if test="lineId != null "> and line_id = #{lineId}</if>
-            <if test="locationId != null "> and location_id = #{locationId}</if>
-            <if test="sortNo != null "> and sort_no = #{sortNo}</if>
+        <where>
+            <if test="lineId != null ">and line_id = #{lineId}</if>
+            <if test="locationId != null ">and location_id = #{locationId}</if>
+            <if test="sortNo != null ">and sort_no = #{sortNo}</if>
         </where>
     </select>
-    
+
     <select id="selectTlInspectionLineLocationById" parameterType="Long" resultMap="TlInspectionLineLocationResult">
         <include refid="selectTlInspectionLineLocationVo"/>
         where id = #{id}
     </select>
-        
+
+    <select id="queryLocationId" resultType="java.lang.Long">
+        select location_id
+        from tl_inspection_line_location
+        where line_id = #{lineId}
+    </select>
+
     <insert id="insertTlInspectionLineLocation" parameterType="TlInspectionLineLocation" useGeneratedKeys="true" keyProperty="id">
         insert into tl_inspection_line_location
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="lineId != null">line_id,</if>
             <if test="locationId != null">location_id,</if>
             <if test="sortNo != null">sort_no,</if>
-         </trim>
+        </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="lineId != null">#{lineId},</if>
             <if test="locationId != null">#{locationId},</if>
             <if test="sortNo != null">#{sortNo},</if>
-         </trim>
+        </trim>
     </insert>
 
     <insert id="batchInsert">
@@ -61,17 +68,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </update>
 
     <delete id="deleteTlInspectionLineLocationById" parameterType="Long">
-        delete from tl_inspection_line_location where id = #{id}
+        delete
+        from tl_inspection_line_location
+        where id = #{id}
     </delete>
 
     <delete id="deleteTlInspectionLineLocationByIds" parameterType="String">
-        delete from tl_inspection_line_location where id in 
+        delete from tl_inspection_line_location where id in
         <foreach item="id" collection="array" open="(" separator="," close=")">
             #{id}
         </foreach>
     </delete>
 
     <delete id="deleteLineLocation">
-        delete from tl_inspection_line_location where line_id = #{lineId}
+        delete
+        from tl_inspection_line_location
+        where line_id = #{lineId}
     </delete>
 </mapper>

+ 7 - 0
ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionLocationMapper.xml

@@ -118,6 +118,13 @@
         order by t1.sort_no
     </select>
 
+    <select id="queryLocationByLocationIds" resultType="java.lang.String">
+        select location_name from tl_inspection_location where id in
+        <foreach collection="locations" item="item" open="(" separator="," close=")">
+            #{item}
+        </foreach>
+    </select>
+
     <insert id="insertTlInspectionLocation" parameterType="TlInspectionLocation" useGeneratedKeys="true" keyProperty="id">
         insert into tl_inspection_location
         <trim prefix="(" suffix=")" suffixOverrides=",">

+ 23 - 0
ruoyi-system/src/main/resources/mapper/qdtl/TlInspectionPlanMapper.xml

@@ -12,6 +12,9 @@
         <result property="startDate" column="start_date"/>
         <result property="endDate" column="end_date"/>
         <result property="lineId" column="line_id"/>
+        <result property="weeks" column="weeks"/>
+        <result property="timeUnit" column="time_unit"/>
+        <result property="xunNum" column="xun_num"/>
         <result property="status" column="status"/>
         <result property="score" column="score"/>
         <result property="createBy" column="create_by"/>
@@ -29,6 +32,9 @@
                end_date,
                line_id,
                score,
+               weeks,
+               time_unit,
+               xun_num,
                status,
                create_by,
                create_time,
@@ -67,6 +73,14 @@
           and t2.patrolman != '';
     </select>
 
+    <select id="queryPlanUserExcludeId" resultMap="TlInspectionPlanResult">
+        select t2.*
+        from tl_inspection_plan_user t1
+                 left join tl_inspection_plan t2 on t1.plan_id = t2.id
+        where t1.user_id = #{userId}
+          and t1.plan_id != #{excludePlanId}
+    </select>
+
     <insert id="insertTlInspectionPlan" parameterType="TlInspectionPlan" useGeneratedKeys="true" keyProperty="id">
         insert into tl_inspection_plan
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -77,6 +91,9 @@
             <if test="endDate != null">end_date,</if>
             <if test="lineId != null">line_id,</if>
             <if test="score != null">score,</if>
+            <if test="weeks != null">weeks,</if>
+            <if test="timeUnit != null">time_unit,</if>
+            <if test="xunNum != null">xun_num,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
@@ -90,6 +107,9 @@
             <if test="endDate != null">#{endDate},</if>
             <if test="lineId != null">#{lineId},</if>
             <if test="score != null">#{score},</if>
+            <if test="weeks != null">#{weeks},</if>
+            <if test="timeUnit != null">#{timeUnit},</if>
+            <if test="xunNum != null">#{xunNum},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
@@ -107,6 +127,9 @@
             <if test="endDate != null">end_date = #{endDate},</if>
             <if test="lineId != null">line_id = #{lineId},</if>
             <if test="score != null">score = #{score},</if>
+            <if test="weeks != null">weeks = #{weeks},</if>
+            <if test="timeUnit != null">time_unit = #{timeUnit},</if>
+            <if test="xunNum != null">xun_num = #{xunNum},</if>
             <if test="status != null">status = #{status},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>

+ 101 - 0
ruoyi-system/src/main/resources/mapper/qdtl/TlPlanTempMapper.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.qdtl.mapper.TlPlanTempMapper">
+
+    <resultMap type="TlPlanTemp" id="TlPlanTempResult">
+        <result property="id" column="id"/>
+        <result property="planId" column="plan_id"/>
+        <result property="startDate" column="start_date"/>
+        <result property="endDate" column="end_date"/>
+        <result property="userId" column="user_id"/>
+        <result property="locationIds" column="location_ids"/>
+        <result property="createTime" column="create_time"/>
+        <result property="weeks" column="weeks"/>
+        <result property="timeUnit" column="time_unit"/>
+    </resultMap>
+
+    <sql id="selectTlPlanTempVo">
+        select id,
+               plan_id,
+               start_date,
+               end_date,
+               user_id,
+               location_ids,
+               create_time,
+               weeks,
+               time_unit
+        from tl_plan_temp
+    </sql>
+
+    <select id="selectTlPlanTempList" parameterType="TlPlanTemp" resultMap="TlPlanTempResult">
+        <include refid="selectTlPlanTempVo"/>
+        <where>
+            <if test="planId != null">and plan_id = #{planId}</if>
+            <if test="startDate != null  and startDate != ''">and start_date = #{startDate}</if>
+            <if test="endDate != null  and endDate != ''">and end_date = #{endDate}</if>
+            <if test="userId != null ">and user_id = #{userId}</if>
+            <if test="locationIds != null  and locationIds != ''">and location_ids = #{locationIds}</if>
+            <if test="weeks != null  and weeks != ''">and weeks = #{weeks}</if>
+            <if test="timeUnit != null  and timeUnit != ''">and time_unit = #{timeUnit}</if>
+        </where>
+    </select>
+
+    <select id="selectTlPlanTempById" parameterType="Long" resultMap="TlPlanTempResult">
+        <include refid="selectTlPlanTempVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTlPlanTemp" parameterType="TlPlanTemp" useGeneratedKeys="true" keyProperty="id">
+        insert into tl_plan_temp
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="planId != null">plan_id,</if>
+            <if test="startDate != null">start_date,</if>
+            <if test="endDate != null">end_date,</if>
+            <if test="userId != null">user_id,</if>
+            <if test="locationIds != null">location_ids,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="weeks != null">weeks,</if>
+            <if test="timeUnit != null">time_unit,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="planId != null">#{planId},</if>
+            <if test="startDate != null">#{startDate},</if>
+            <if test="endDate != null">#{endDate},</if>
+            <if test="userId != null">#{userId},</if>
+            <if test="locationIds != null">#{locationIds},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="weeks != null">#{weeks},</if>
+            <if test="timeUnit != null">#{timeUnit},</if>
+        </trim>
+    </insert>
+
+    <update id="updateTlPlanTemp" parameterType="TlPlanTemp">
+        update tl_plan_temp
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="planId != null">plan_id = #{planId},</if>
+            <if test="startDate != null">start_date = #{startDate},</if>
+            <if test="endDate != null">end_date = #{endDate},</if>
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="locationIds != null">location_ids = #{locationIds},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="weeks != null">weeks = #{weeks},</if>
+            <if test="timeUnit != null">time_unit = #{timeUnit},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTlPlanTempById" parameterType="Long">
+        delete
+        from tl_plan_temp
+        where id = #{id}
+    </delete>
+
+    <delete id="deleteTlPlanTempByIds" parameterType="String">
+        delete from tl_plan_temp where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 179 - 1
sql/ry_20210908.sql

@@ -1023,9 +1023,187 @@ alter table tl_plan_record
 alter table tl_plan_record
     add area_id bigint null comment '区域id';
 
--- 已同步
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100026, '19005FEF71', 'test', '', '100006,100007', 100000, '121.599111,31.930917', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:17', 45, '1002090');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100054, '1900600A56', '临江镇普发北路在杨牛郎店附近', '', '100005', 100004, '121.4764533,31.8883216', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003686');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100055, '1700625124', '二厂南路在窑湾三组附近', '', '100005', 100003, '121.5227783,31.8858066', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003685');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100060, '17006142E3', '北新镇中富康路在施裕高店附近', '', '100005', 100004, '121.49567,31.887986', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003680');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100051, '19005FF0DE', '北新镇天星路在窑湾三组附近', '', '100005', 100004, '121.518305,31.8871383', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:14', 45, '1003689');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100053, '19005F85B5', '北新镇庙南三路在新桥村附近', '', '100005', 100004, '121.50552,31.8879216', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003687');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100059, '19005FCB14', '北新镇庙南三路在永济村附近', '', '100005', 100004, '121.4954226,31.8880433', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003681');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100056, '170060DF38', '北新镇庙南三路在长柳六组附近', '', '100005', 100004, '121.4998166,31.8879416', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003684');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100058, '170061BED8', '北新镇建超路在永济村附近', '', '100005', 100004, '121.4867750,31.8881566', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003682');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100052, '17006063B8', '北新镇新怡路在新桥村附近', '', '100005', 100004, '121.51163,31.88787', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:14', 45, '1003688');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100057, '19005FF205', '北新镇西富康路在杨牛郎店附近', '', '100005', 100004, '121.4790483,31.8881283', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003683');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100037, '1700623120', '巡检点10', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '930934');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100036, '1700613542', '巡检点11', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933338');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100035, '19005F4485', '巡检点12', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933341');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100034, '170060D5C3', '巡检点13', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933348');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100033, '17006122E3', '巡检点14', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933353');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100032, '17006252D2', '巡检点15', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933565');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100031, '19005F70DA', '巡检点16', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:18', 45, '933571');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100030, '19005F4152', '巡检点17', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:17', 45, '933572');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100029, '19006051FE', '巡检点18', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:17', 45, '933573');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100028, '1900602621', '巡检点19', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:17', 45, '933595');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100045, '170061220A', '巡检点2', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:19', 45, '921369');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100027, '170061C732', '巡检点20', '', null, null, '', '', '0', '', '2022-03-10 13:33:23', '', '2022-04-20 12:42:17', 45, '975109');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100066, '170060A671', '巡检点21', '', null, null, '', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003537');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100044, '170062DC03', '巡检点3', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:19', 45, '921913');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100043, '170060FE44', '巡检点4', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '922035');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100068, '170061BBD5', '巡检点47', '', null, null, '', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003568');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100067, '17006181C1', '巡检点48', '', null, null, '', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003569');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100042, '1700617554', '巡检点5', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '922489');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100050, '170062F983', '巡检点59', '', null, null, '', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:14', 45, '1003690');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100041, '19005F6724', '巡检点6', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '923742');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100049, '1700618CA0', '巡检点60', '', null, null, '', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:14', 45, '1003691');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100048, '17006088F0', '巡检点61', '', null, null, '', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:14', 45, '1003692');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100047, '170061E310', '巡检点62', '', null, null, '', '', '0', '', '2022-03-12 10:10:00', '', '2022-04-20 12:42:13', 45, '1003790');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100046, '170060EC22', '巡检点63', '', null, null, '', '', '0', '', '2022-03-12 10:10:00', '', '2022-04-20 12:42:12', 45, '1003804');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100040, '170060FA9C', '巡检点7', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '924361');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100089, '17006138A6', '巡检点77', '', null, null, '', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037865');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100110, '19005F8BEC', '巡检点78', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037866');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100109, '17006173B9', '巡检点79', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037867');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100039, '19005F7D29', '巡检点8', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '925082');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100108, '19005F5486', '巡检点80', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037868');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100107, '19005FD894', '巡检点81', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037869');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100106, '19005F7FB1', '巡检点82', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037870');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100105, '170062D402', '巡检点83', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037871');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100104, '17006134FC', '巡检点84', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037872');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100103, '170061549F', '巡检点85', '', null, null, '', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037873');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100038, '19005F104D', '巡检点9', '', null, null, '', '', '0', '', '2022-03-10 13:33:24', '', '2022-04-20 12:42:18', 45, '927010');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100062, '19005FC1E8', '汇龙镇万英中心路在万英村附近', '', '100006', 100002, '121.62791,31.8625699', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:15', 45, '1003541');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100075, '170060F9B8', '汇龙镇万英北路在三阳村附近', '', '100006', 100002, '121.6367766,31.8604700', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:16', 45, '1003560');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100070, '19005F5A22', '汇龙镇东汇线在启东市永日小学附近', '', '100006', 100002, '121.6784450,31.8570783', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003565');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100085, '19005F728C', '汇龙镇光圩路在汇龙镇北魏村附近', '', '100006', 100002, '121.602361,31.870479', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003550');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100065, '17006174BF', '汇龙镇光荣中心路在圩角中学附近', '', '100006', 100002, '121.6134216,31.8663383', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:15', 45, '1003538');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100086, '19005F65B4', '汇龙镇光荣南二路在共和四组附近', '', '100006', 100002, '121.605495,31.8692433', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003549');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100084, '19005F8C64', '汇龙镇光荣南二路在圩角中学附近', '', '100006', 100002, '121.6104866,31.8674850', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003551');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100063, '19005F74F7', '汇龙镇共北村附近', '', '100006', 100002, '121.6245866,31.8634016', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:15', 45, '1003540');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100074, '19005F6D04', '汇龙镇冬藏一路在中群北路桥附近', '', '100006', 100002, '121.6567149,31.85496', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003561');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100071, '1900604F88', '汇龙镇冬藏东中心路在冬藏五组附近', '', '100006', 100002, '121.6574733,31.856175', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003564');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100081, '19005F12B8', '汇龙镇北魏南二路在北魏六组附近', '', '100006', 100002, '121.590231,31.873303', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003554');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100082, '19005FCA97', '汇龙镇北魏南二路在北魏六组附近', '', '100006', 100002, '121.587814,31.873796', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003553');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100083, '19005F37BF', '汇龙镇北魏南二路在北魏六组附近', '', '100006', 100002, '121.585051,31.874196', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003552');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100069, '170061B092', '汇龙镇北魏南二路在圩角十一大队附近', '', '100006', 100002, '121.597397,31.871919', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003566');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100087, '19005F9336', '汇龙镇北魏南二路在汇龙镇北魏村附近', '', '100006', 100002, '121.6000966,31.871185', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003548');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100088, '19005F4882', '汇龙镇卫兵二路在永阳十三大队附近', '', '100006', 100002, '121.6798116,31.8592783', '', '0', '', '2022-03-12 10:10:04', '', '2022-04-20 12:42:17', 45, '1003543');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100061, '1700609DA1', '汇龙镇启秀北路在冬藏五组附近', '', '100006', 100002, '121.6520600,31.8564533', '', '0', '', '2022-03-12 10:10:01', '', '2022-04-20 12:42:15', 45, '1003542');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100076, '170060E05B', '汇龙镇在启东市永日小学附近', '', '100006', 100002, '121.669041,31.852705', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:16', 45, '1003559');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100079, '17006171AC', '汇龙镇头兴港东路在启东市永日小学附近', '', '100006', 100002, '121.6654716,31.8534799', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:16', 45, '1003556');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100064, '19005F718F', '汇龙镇志圩线在启东市圩角塑料', '', '100006', 100002, '121.6203000,31.8642483', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:15', 45, '1003539');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100073, '19005F84A9', '汇龙镇永南北路在启东市永日小学附近', '', '100006', 100002, '121.663879,31.852896', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003562');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100078, '19005FCF53', '汇龙镇永南北路在启东市永日小学附近', '', '100006', 100002, '121.67491,31.8549933', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:16', 45, '1003557');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100077, '17006112F4', '汇龙镇永阳北路在永阳十三大队附近', '', '100006', 100002, '121.6811633,31.86313', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:16', 45, '1003558');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100080, '1900604603', '汇龙镇汇联路在圩角十一大队附近', '', '100006', 100002, '121.5936816,31.8718333', '', '0', '', '2022-03-12 10:10:03', '', '2022-04-20 12:42:17', 45, '1003555');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100072, '190060372F', '汇龙镇红阳西路在汇龙镇北魏村附近', '', '100006', 100002, '121.6021783,31.8699933', '', '0', '', '2022-03-12 10:10:02', '', '2022-04-20 12:42:16', 45, '1003563');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100102, '19005F84A6', '海复镇北固一路在海复二十大队附近', '', '100009', 100005, '121.6745666,31.0045099', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:14', 45, '1037852');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100096, '17006176A8', '海复镇在复南村附近', '', '100009', 100005, '121.6806683,31.9765499', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037858');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100093, '19005FA5EE', '海复镇在复西村附近', '', '100009', 100005, '121.6748733,31.9997683', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037861');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100095, '19005F58DE', '海复镇复南五桥在复南村附近', '', '100009', 100005, '121.6791700,31.9787499', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037859');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100091, '19005F55B3', '海复镇复西中路在复西四组附近', '', '100009', 100005, '121.6748133,31.993135', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037863');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100092, '19005FD999', '海复镇复西中路在复西四组附近', '', '100009', 100005, '121.6746966,31.9936966', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037862');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100094, '19005F4B56', '海复镇夏南中心路在海复村附近', '', '100009', 100005, '121.6778100,31.9814316', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037860');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100097, '1700618155', '海复镇海少路在复南村附近', '', '100009', 100005, '121.683815,31.9712833', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037857');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100100, '19005F8982', '海复镇糖坊中路在复南村附近', '', '100009', 100005, '121.686595,31.9667933', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037854');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100099, '190060489A', '海复镇糖坊中路在复南村附近', '', '100009', 100005, '121.68563,31.967715', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037855');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100098, '19005F6737', '海复镇糖坊中路在糖坊一组附近', '', '100009', 100005, '121.6870466,31.9658233', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037856');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100101, '19005EEE24', '海复镇糖坊路在糖坊一组附近', '', '100009', 100005, '121.6875383,31.9633216', '', '0', '', '2022-04-19 10:10:02', '', '2022-04-20 12:42:13', 45, '1037853');
+INSERT INTO qdtl.tl_inspection_location (id, location_code, location_name, detail, device_ids, area_id, lnglat, remark, del_flag, create_by, create_time, update_by, update_time, version, third_id)
+VALUES (100090, '1700612C64', '海复镇胜利西路在海复镇附近', '', '100009', 100005, '121.6750933,31.9873533', '', '0', '', '2022-04-19 10:10:01', '', '2022-04-20 12:42:13', 45, '1037864');
+
+alter table tl_inspection_plan
+    add weeks varchar(50) null comment '星期';
 
+alter table tl_inspection_plan
+    add time_unit varchar(300) null comment '时间段';
 
+alter table tl_inspection_plan
+    add xun_num int default 1 null comment '巡检次数';
+
+-- 已同步