njs 1 tahun lalu
induk
melakukan
c2013a33d6

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

@@ -400,7 +400,7 @@ 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 FROM ERP.KNVV x WHERE LIFSD IS NOT NULL AND LIFSD != ''");
+        PreparedStatement pstmt = con.prepareStatement("SELECT DISTINCT KUNNR,LIFSD FROM ERP.KNVV x WHERE LIFSD IS NOT NULL AND LIFSD != ''");
         Long startTime = System.currentTimeMillis();
         Long startTime = System.currentTimeMillis();
         ResultSet rs = pstmt.executeQuery();
         ResultSet rs = pstmt.executeQuery();
         Long endTime = System.currentTimeMillis();
         Long endTime = System.currentTimeMillis();
@@ -609,7 +609,8 @@ public class HanaOrderComponent {
 
 
                 fw.write(
                 fw.write(
                         result.getString("KUNNR")
                         result.getString("KUNNR")
-                            + "\r\n");
+                           +"$$"+result.getString("LIFSD")
+                            +"\r\n");
                 fw.flush();
                 fw.flush();
                 i++;
                 i++;
                 if (i%50000==0){
                 if (i%50000==0){