Browse Source

销售订单 同步优化逻辑

liuchaohui 2 years ago
parent
commit
794316be05

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/orderData/service/impl/SyOrderDataServiceImpl.java

@@ -228,9 +228,9 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd
                             sy2.setGuangpeiGateWidth(ordervo.getGuangpeiGateWidth());
                         }
                         sy2.setSupplier(ordervo.getSupplier());
-                        if(sy2.getInventoryCcode().substring(0,2).equals("09")){
+                        if(sy2.getInventoryCcode().substring(0,2).equals("19")){
                             sy2.setGarmentFactory(ordervo.getSupplier());
-                        }else if(sy.getCustomerAbbreviation().equals("森语集团") || sy.getCustomerAbbreviation().equals("宁波森语") ) {
+                        }else if(sy.getCustomerAbbreviation().equals("International Apparel Group") || sy.getCustomerAbbreviation().equals("宁波森语") ) {
                             sy2.setGarmentFactory(queryGSupplier(sy.getOrderNumber(),sy.getAccount(),sy.getCustomerCode()));
                         }else {
                             sy2.setGarmentFactory(sy.getGarmentFactory());

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/quartz/job/AddOrderJob.java

@@ -219,9 +219,9 @@ public class AddOrderJob implements Job,ApplicationContextAware {
                             sy2.setGuangpeiGateWidth(ordervo.getGuangpeiGateWidth());
                         }
                         sy2.setSupplier(ordervo.getSupplier());
-                        if(sy2.getInventoryCcode().substring(0,2).equals("09")){
+                        if(sy2.getInventoryCcode().substring(0,2).equals("19")){
                             sy2.setGarmentFactory(ordervo.getSupplier());
-                        }else if(sy.getCustomerAbbreviation().equals("森语集团") || sy.getCustomerAbbreviation().equals("宁波森语") ) {
+                        }else if(sy.getCustomerAbbreviation().equals("International Apparel Group") || sy.getCustomerAbbreviation().equals("宁波森语") ) {
                             sy2.setGarmentFactory(queryGSupplier(sy.getOrderNumber(),sy.getAccount(),sy.getCustomerCode()));
                         }else {
                             sy2.setGarmentFactory(sy.getGarmentFactory());