ソースを参照

冻结经销商

njs 1 年間 前
コミット
5a7acfd175

+ 5 - 3
suishenbang-sync/suishenbang-sync-common/src/main/java/com/dgtly/sync/service/HanaOrderComponent.java

@@ -404,9 +404,11 @@ public class HanaOrderComponent {
         PreparedStatement pstmt = con.prepareStatement(" select a.KUNNR from (SELECT   s.KUNNR \n" +
                 "                FROM ERP.KNVV s \n" +
                 "                WHERE \n" +
-                "                 (s.SPART = (case   when  s.SPART='14' then '14' \n" +
-                "                 when s.SPART='15' then '15' \n" +
-                "                 else  '16' end )   and (s.LIFSD IS NULL or s.LIFSD = '')  AND s.VTWEG = 'D9'and s.VKORG = 'S200' and s.KVGR3 not in ('D03')) or (s.KVGR3 = 'D03'  and (s.LIFSD IS NULL or s.LIFSD = '') AND s.VTWEG = 'D9' )order by s.SPART asc)a \n" +
+                "                 (s.SPART = (case   when  SPART='14' then '14' \n" +
+                "                                 when SPART='15' then '15'    when SPART='16' then '16'  \n" +
+                "               when SPART='19' then '19' \n" +
+                "               when SPART='29' then '29' \n" +
+                "                                 else  '39' end )   and (s.LIFSD IS NULL or s.LIFSD = '')  AND s.VTWEG = 'D9'and s.VKORG = 'S200' and s.KVGR3 not in ('D03')) or (s.KVGR3 = 'D03'  and (s.LIFSD IS NULL or s.LIFSD = '') AND s.VTWEG = 'D9' )order by s.SPART asc)a \n" +
                 "                 group by a.KUNNR  ");
         Long startTime = System.currentTimeMillis();
         ResultSet rs = pstmt.executeQuery();