|
|
@@ -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()) {
|