欧阳劲驰 преди 2 месеца
родител
ревизия
9fa873f7d5
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  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">