فهرست منبع

Merge remote-tracking branch 'origin/freeze231204' into uat

njs 1 سال پیش
والد
کامیت
53fe5b3d0f

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

@@ -400,8 +400,8 @@ public class HanaOrderComponent {
     /**HANA已冻结经销商**/
     /**HANA已冻结经销商**/
     public void hanaFreezeCustomer()throws Exception{
     public void hanaFreezeCustomer()throws Exception{
         Connection con = this.getHanaConnection();
         Connection con = this.getHanaConnection();
-        PreparedStatement pstmt = con.prepareStatement("SELECT DISTINCT KUNNR,VTWEG FROM ERP.KNVV  WHERE KVGR3 = 'D03'  and (LIFSD IS NULL or LIFSD = '') AND VTWEG = 'D9' union all \n" +
-                "\t SELECT DISTINCT KUNNR,\n" +
+        PreparedStatement pstmt = con.prepareStatement("SELECT  KUNNR,VTWEG FROM ERP.KNVV  WHERE KVGR3 = 'D03'  and (LIFSD IS NULL or LIFSD = '') AND VTWEG = 'D9' union all \n" +
+                "\t SELECT  KUNNR,\n" +
                 "\t VTWEG \n" +
                 "\t VTWEG \n" +
                 "FROM ERP.KNVV \n" +
                 "FROM ERP.KNVV \n" +
                 "WHERE\n" +
                 "WHERE\n" +
@@ -411,7 +411,7 @@ public class HanaOrderComponent {
         Long startTime = System.currentTimeMillis();
         Long startTime = System.currentTimeMillis();
         ResultSet rs = pstmt.executeQuery();
         ResultSet rs = pstmt.executeQuery();
         Long endTime = System.currentTimeMillis();
         Long endTime = System.currentTimeMillis();
-        log.info("FreezeCustomer查询用时:" + (endTime - startTime)+"毫秒");
+        log.info("NotFreezeCustomer查询用时:" + (endTime - startTime)+"毫秒");
         this.createFreezeCustomerTxt(rs);
         this.createFreezeCustomerTxt(rs);
         this.runLoadFreezeCustomer();
         this.runLoadFreezeCustomer();
         this.closeConnection(con, pstmt);
         this.closeConnection(con, pstmt);