Преглед изворни кода

Merge branch 'master' of https://gitee.com/antai-wuliu/ANTAI-API

liyg пре 1 година
родитељ
комит
3d86b4f887
1 измењених фајлова са 11 додато и 1 уклоњено
  1. 11 1
      src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

+ 11 - 1
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -829,7 +829,17 @@
         rc.LINE_ID  "lineId",
         'operationRangeName' "prop"
         from RMS_TRANS_RANGE RC
-        where DELETED = 0
+        left join rms_operation_point rop_s
+        on rop_s.operation_point_id = RC.start_point_id
+        left join rms_operation_point rop_e
+        on rop_e.operation_point_id = RC.end_point_id
+        <where>
+            and RC.DELETED = 0
+            <if test="isNc!=null and isNc!=''">
+                and rop_s.alternate_fields1 = 'NC'
+                and rop_e.alternate_fields1 = 'NC'
+            </if>
+        </where>
         )
         <where>
             <if test="index!=null and index!=''">