Explorar el Código

增加disused判断

欧阳劲驰 hace 2 meses
padre
commit
9fa873f7d5
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/main/resources/mapper/GisSurveyLayerApplyMapper.xml

+ 4 - 2
src/main/resources/mapper/GisSurveyLayerApplyMapper.xml

@@ -34,6 +34,7 @@
         join k3_gis_survey_job_info jo on la.job_id = jo.uid
         join k3_gis_survey_project_info pit on jo.proj_id = pit.uid
         where pit.uid = #{projId,jdbcType=VARCHAR}
+        and jo.disused = 0
         and la.apply = 'add' and kind = 'point'
     </select>
 
@@ -49,7 +50,8 @@
         left join k3_gis_survey_layer_apply as dn
         on la.down_node = dn.code and dn.kind = 'point' and la.job_id = dn.job_id
         where pit.uid = #{projId,jdbcType=VARCHAR}
-        and la.kind = 'line';
+        and jo.disused = 0
+        and la.apply = 'add' and la.kind = 'line';
     </select>
 
     <select id="findAddPointByJobId" fetchSize="3000" resultMap="Point">
@@ -73,7 +75,7 @@
         left join k3_gis_survey_layer_apply as dn
         on la.down_node = dn.code and dn.kind = 'point' and la.job_id = dn.job_id
         where jo.uid = #{jobId,jdbcType=VARCHAR}
-        and la.kind = 'line';
+        and la.apply = 'add' and la.kind = 'line';
     </select>
 
     <insert id="mergeCopyByJobId">