Browse Source

erp表同步接口bug修改

HuKang 1 year ago
parent
commit
df413cd956

+ 1 - 1
src/main/java/com/warewms/service/impl/ErpSyncServiceImpl.java

@@ -135,7 +135,7 @@ public class ErpSyncServiceImpl implements ErpSyncService {
         param.put("orderState", erpOrderList.getOrderState());
         param.put("orderNo", erpOrderList.getOrderNo());
         param.put("orderName", erpOrderList.getOrderName());
-        SqlPara update = Db.getSqlPara("erp.updaErpStatus", param);
+        SqlPara update = Db.getSqlPara("erp.updateErpStatus", param);
 
         if(Db.update(update) == 0){
             return "500";

+ 14 - 13
src/main/resources/sql/erp.sql

@@ -30,7 +30,7 @@
     update ERP_ORDER_LIST set wms_mark = 'Y' where order_no = #para(orderNo) and order_name = #para(orderName)
 #end
 
-#sql("updaErpStatus")
+#sql("updateErpStatus")
     update ERP_ORDER_LIST set ORDER_STATE = #para(orderState)
     where order_no = #para(orderNo) and order_name = #para(orderName)
 #end
@@ -50,18 +50,19 @@
         ,[CREATE_DATE]
         ,[DB])
     VALUES
-        (   #para(barcode)
-            ,#para(orderName)
-            ,#para(orderNo)
-            ,#para(qty)
-            ,#para(orderType)
-            ,#para(inout)
-            ,#para(stockID)
-            ,#para(boxid)
-            ,#para(erpResult)
-            ,#para(createUser)
-            ,#para(createDate)
-            ,'YH'
+        ( #para(barcode)
+            , #para(orderName)
+            , #para(orderNo)
+            , #para(qty)
+            , #para(orderType)
+            , #para(inout)
+            , #para(stockID)
+            , #para(boxid)
+            , #para(erpResult)
+            , #para(createUser)
+            , #para(createDate)
+            , 'YH'
+        )
 #end