소스 검색

【华信科】【富勒WMS对接】【其它出库单-其它出库 直发等】

wuyx 7 달 전
부모
커밋
6192c9f67f
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      src/main/java/com/uas/eis/service/Impl/ERPSWMServiceImpl.java

+ 7 - 2
src/main/java/com/uas/eis/service/Impl/ERPSWMServiceImpl.java

@@ -151,8 +151,13 @@ public class ERPSWMServiceImpl implements ERPWMSService {
         //内部交易对接:
         //出货单 -> 采购验收单 国内->国内
         if ("openapi.adjustmentorder.confirm".equals(method) && StringUtil.hasText(piMsg.getGeneralString("pi_postmastercode"))) {
-            if ("NBZK".equals(piMsg.getGeneralString("pi_wmsordertype"))||"QTCK".equals(piMsg.getGeneralString("pi_wmsordertype"))) {
-                String toSob = piMsg.getGeneralString("pi_postmastercode");
+            String toSob = piMsg.getGeneralString("pi_postmastercode");
+            if (masterCode.indexOf("HK")<0 && StringUtil.hasText(toSob) && toSob.indexOf("HK")<0
+//                    "NBZK".equals(piMsg.getGeneralString("pi_wmsordertype"))
+//                    ||"QTCK".equals(piMsg.getGeneralString("pi_wmsordertype"))
+//                    ||"QTCKZF".equals(piMsg.getGeneralString("pi_wmsordertype"))
+            ) {
+
                 SqlRowList pito = baseDao.queryForRowSet("select pi_id,pi_inoutno,pi_class,ds_table,pi_wmsordertype,pi_sendwmsflag,pi_wmsstatus from " + toSob + ".prodinout left join documentsetup on ds_name = pi_class  " +
                         "where pi_sourcecode='" + piMsg.getGeneralString("pi_inoutno") + "' and pi_sourcetype = '" + piMsg.getGeneralString("pi_class") + "'");
                 if (pito.next()) {