From aae2a9ba3a33136e4106e36e47fbd5b5c31c4fd9 Mon Sep 17 00:00:00 2001
From: 18516761980 <4761516tqsxp>
Date: 星期四, 16 十二月 2021 15:16:24 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/service/erp/ErpService.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/common/service/erp/ErpService.java b/src/main/java/com/zy/common/service/erp/ErpService.java
index ee4d384..9d73ea9 100644
--- a/src/main/java/com/zy/common/service/erp/ErpService.java
+++ b/src/main/java/com/zy/common/service/erp/ErpService.java
@@ -86,7 +86,8 @@
      * @param fInterID 鍗曟嵁鍐呯爜
      */
     private List<InStockBillEntry> getInStockBillEntry(Integer fInterID) {
-        String sql = "select * from InStockBillEntry where 1=1 and FSourceBillNo!='' and FAuxCommitQty=0 and FInterID = " + fInterID;
+//        String sql = "select * from InStockBillEntry where 1=1 and FSourceBillNo!='' and FAuxCommitQty=0 and FInterID = " + fInterID;
+        String sql = "select * from InStockBillEntry where 1=1 and FAuxCommitQty=0 and FInterID = " + fInterID;
         return erpSqlServer.select(sql, InStockBillEntry.class);
     }
 
@@ -103,7 +104,8 @@
      * 鎻愬彇涓棿琛ㄦ垚鍝佸叆搴撳崟鎹�
      */
     public List<CPICMO> getReadyCPICMO() {
-        String sql = "select * from CPICMO where 1=1 and FSourceBillNo!='' and FAuxCommitQty=0 and Fflag_rw = 0";
+//        String sql = "select * from CPICMO where 1=1 and FSourceBillNo!='' and FAuxCommitQty=0 and Fflag_rw = 0";
+        String sql = "select * from CPICMO where 1=1 and FAuxCommitQty=0 and Fflag_rw = 0";
         return erpSqlServer.select(sql, CPICMO.class);
     }
 
@@ -155,13 +157,16 @@
         return erpSqlServer.executeQueryCount(sql,"qty");
     }
 
+
     /**
      * 鏌ヨerp涓棿琛ㄨ〃浣揙utStockbillEntry鏁版嵁
      * @param FInterID
      * @return
      */
     public List<OutStockBillEntry> syncOutStockDetail(Integer FInterID) {
-        return erpSqlServer.select("SELECT * FROM  xtyasrs_dual.dbo.OutStockBillEntry where FSourceBillNo!='' and FAuxCommitQty=0 and FInterID=" + FInterID, OutStockBillEntry.class);
+//        String sql = "SELECT * FROM  xtyasrs_dual.dbo.OutStockBillEntry where FSourceBillNo!='' and FAuxCommitQty=0 and FInterID=" + FInterID;
+        String sql = "SELECT * FROM  xtyasrs_dual.dbo.OutStockBillEntry where FAuxCommitQty=0 and FInterID=" + FInterID;
+        return erpSqlServer.select(sql, OutStockBillEntry.class);
     }
 
     /**
@@ -459,7 +464,10 @@
                 return false;
             }
         }catch (Exception e){
-            e.printStackTrace();
+            String msg = "incrementCPakOut鎴愬搧澧為噺鍑哄簱澶辫触[FInterID={0},Fnumber={1},FBillNo={2}]\n";
+            msg = MessageFormat.format(msg,FInterID,Fnumber,FBillNo);
+            log.error(msg, e);
+//            e.printStackTrace();
             log.error("incrementCPakOut----" + sql);
             return false;
         }

--
Gitblit v1.9.1