Browse Source

回传ERP扫描记录修改

k 1 year ago
parent
commit
1a774fb470

+ 4 - 4
warewms-ams/src/main/java/com/ruoyi/ams/erp/service/impl/SyncServiceImpl.java

@@ -308,8 +308,8 @@ public class SyncServiceImpl implements ISyncService {
                 erpBarCodeList.setAlterUser("");
                 erpBarCodeList.setAlterDate("");
                 erpBarCodeListList.add(erpBarCodeList);
-//                boolean b = this.writeBack(erpBarCodeListList);
-                if (false) {
+                boolean b = this.writeBack(erpBarCodeListList);
+                if (!b) {
                     log.error("条码记录表回传失败,单据号:" + erpBarcode.getErpNo());
                     continue;
                 }
@@ -326,8 +326,8 @@ public class SyncServiceImpl implements ISyncService {
                 erpBarCodeList.setOrderName(erpBarcode.getErpNo());
                 erpBarCodeList.setOrderNo(Integer.valueOf(erpBarcode.getErpName()));
                 erpBarCodeList.setVaild(erpBarcode.getUserdefine1());
-//                boolean b = this.writeBackU(erpBarCodeList);
-                if (false) {
+                boolean b = this.writeBackU(erpBarCodeList);
+                if (!b) {
                     log.error("条码记录表修改失败,单据号:" + erpBarcode.getErpNo());
                 }
                 // 修改记录已经回传