|
@@ -56,6 +56,8 @@ public class WMSServiceImpl implements WMSService {
|
|
|
// private static final String HN = "http://10.0.30.225:8109";
|
|
|
// 河南
|
|
|
private static final String HEN = "http://10.0.30.225:8110";
|
|
|
+ // 云南
|
|
|
+ private static final String YN = "http://10.0.30.220:8999";
|
|
|
|
|
|
// 物流中心编码与WebService服务映射
|
|
|
private static final ConcurrentMap<String, String> WMS_MAPPING = new ConcurrentHashMap<String, String>() {{
|
|
@@ -71,7 +73,7 @@ public class WMSServiceImpl implements WMSService {
|
|
|
put("D109", ""); // 海南鸿翔一心堂药业有限公司
|
|
|
put("D301", ""); // 海南一心堂医药有限公司
|
|
|
put("D100", ""); // 一心堂药业集团股份有限公司
|
|
|
- put("D300", ""); // 云南鸿云药业有限公司
|
|
|
+ put("D300", YN); // 云南鸿云药业有限公司
|
|
|
put("D108", ""); // 天津鸿翔一心堂药业有限公司
|
|
|
put("D900", ""); // 一心到家科技公司(电商仓)
|
|
|
put("D504", ""); // 医云医疗产业发展(云南)有限公司
|
|
@@ -81,7 +83,8 @@ public class WMSServiceImpl implements WMSService {
|
|
|
|
|
|
@SneakyThrows
|
|
|
public WMSServiceImpl() {
|
|
|
- final String wsdl = IOUtils.toString(new ClassPathResource("WMSService.xml").getInputStream(), StandardCharsets.UTF_8);
|
|
|
+ // final String wsdl = IOUtils.toString(new ClassPathResource("WMSService.xml").getInputStream(), StandardCharsets.UTF_8);
|
|
|
+ final String wsdl = IOUtils.toString(new ClassPathResource("YN_WMSService.xml.xml").getInputStream(), StandardCharsets.UTF_8);
|
|
|
final String usrHome = System.getProperty("user.home");
|
|
|
for (Map.Entry<String, String> entry : WMS_MAPPING.entrySet()) {
|
|
|
String bwkey = entry.getKey();
|
|
@@ -232,4 +235,24 @@ public class WMSServiceImpl implements WMSService {
|
|
|
WMSService::MT_KUNNR_IN_WMS10_2
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<DT_KUNNR_IN_RT_16> MT_KUNNR_IN_WMS16(List<DT_KUNNR_IN_16> params) {
|
|
|
+ return distribute(
|
|
|
+ "MT_KUNNR_IN_WMS16",
|
|
|
+ params,
|
|
|
+ DT_KUNNR_IN_16::getBWKEY,
|
|
|
+ WMSService::MT_KUNNR_IN_WMS16
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<DT_KUNNR_IN_RT_17> MT_KUNNR_IN_WMS17(List<DT_KUNNR_IN_17> params) {
|
|
|
+ return distribute(
|
|
|
+ "MT_KUNNR_IN_WMS17",
|
|
|
+ params,
|
|
|
+ DT_KUNNR_IN_17::getBWKEY,
|
|
|
+ WMSService::MT_KUNNR_IN_WMS17
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|