|
@@ -155,8 +155,9 @@ public class OmstrainOrderServiceImpl implements IOmstrainOrderService {
|
|
|
//根据汽运订单查找分属于哪个异地库。
|
|
|
String inwardWarehouse = omstrainOrderMapper.getInwardWarehouse(orderId);
|
|
|
String outOfWarehouse = omstrainOrderMapper.getOutOfWarehouse(orderId);
|
|
|
- if (inwardWarehouse!=null) {
|
|
|
- if (inwardWarehouse.contains("重庆金田") || "钢材重庆组".equals(outOfWarehouse)) {
|
|
|
+ System.out.println(data + "发送异地库火运报文数据");
|
|
|
+ if (inwardWarehouse!=null || outOfWarehouse != null) {
|
|
|
+ if (inwardWarehouse != null && inwardWarehouse.contains("重庆金田") || outOfWarehouse != null && "钢材重庆组".equals(outOfWarehouse)) {
|
|
|
for (Map<String,Object> jitianMap:data) {
|
|
|
Map<String, Object> orchardStorehouse = new HashMap<>();
|
|
|
List<Map<String, Object>> orchardStorehouseList = new ArrayList<>();
|
|
@@ -179,7 +180,7 @@ public class OmstrainOrderServiceImpl implements IOmstrainOrderService {
|
|
|
//调用果园库接口
|
|
|
sendMesToGuoyuan(orchardStorehouse);
|
|
|
}
|
|
|
- } else if (inwardWarehouse.contains("成都城嘉") || "钢材成都组".equals(outOfWarehouse)) {
|
|
|
+ } else if (inwardWarehouse != null && inwardWarehouse.contains("成都城嘉") || outOfWarehouse != null && "钢材成都组".equals(outOfWarehouse)) {
|
|
|
//调用城嘉库登录接口获取token
|
|
|
//调用城嘉库推送接口
|
|
|
String token = DagonloginChenJiaku();
|