Przeglądaj źródła

后勤地市和单位数据接口代码优化

yangbq 2 miesięcy temu
rodzic
commit
ea5d100fc7

+ 3 - 5
project-zcustom/src/main/resources/mapper/zcustom/logistics/PlatLogisticsMapper.xml

@@ -278,7 +278,7 @@
                 LEFT JOIN large_plat_app_org b ON a.app_code = b.app_code
         WHERE
             b.app_parent_org = '10001'
-          AND b.app_org NOT LIKE '1A%'
+          AND b.app_org NOT IN ('1','1A001','1A002','1A004','1A005')
     </select>
 
     <select id="getSceneRateY" resultMap="LargePlatLogisticsResult">
@@ -290,7 +290,6 @@
                 LEFT JOIN large_plat_app_org b ON a.app_code = b.app_code
         WHERE
             b.app_parent_org = '10001'
-          AND b.app_org LIKE '1A%'
     </select>
 
     <select id="getOperation" resultMap="LargePlatLogisticsResult">
@@ -313,8 +312,8 @@
             large_plat_logistics a
                 LEFT JOIN large_plat_app_org b ON a.app_code = b.app_code
         WHERE
-            ( b.app_parent_org = '10001'
-          AND b.app_org NOT LIKE '1A%' ) OR b.app_org = '1A003'
+             b.app_parent_org = '10001'
+            AND b.app_org NOT IN ('1','1A001','1A002','1A004','1A005')
     </select>
 
     <select id="getInspectionSchemeNumY" resultMap="LargePlatLogisticsResult">
@@ -326,6 +325,5 @@
                 LEFT JOIN large_plat_app_org b ON a.app_code = b.app_code
         WHERE
             b.app_parent_org = '10001'
-          AND b.app_org LIKE '1A%' AND b.app_org != '1A003'
     </select>
 </mapper>