|
@@ -1,5 +1,7 @@
|
|
|
package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
+import com.steerinfo.dil.feign.BmsShipFeign;
|
|
|
+import com.steerinfo.dil.feign.BmsTruckFeign;
|
|
|
import com.steerinfo.dil.feign.IMFeign;
|
|
|
import com.steerinfo.dil.mapper.UtilsMapper;
|
|
|
import com.steerinfo.dil.service.IUtilsService;
|
|
@@ -22,6 +24,9 @@ public class UtilsServiceImpl implements IUtilsService {
|
|
|
|
|
|
@Autowired
|
|
|
private IMFeign imFeign;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BmsTruckFeign bmsTruckFeign;
|
|
|
/**
|
|
|
* 查询运输订单ID主键
|
|
|
* @return
|
|
@@ -64,7 +69,11 @@ public class UtilsServiceImpl implements IUtilsService {
|
|
|
BigDecimal maxSeq = DataChange.dataToBigDecimal(mesMap.get("maxSeq"));
|
|
|
if(orderSeq.intValue() == maxSeq.intValue()){
|
|
|
map.put("orderStatus", 2);
|
|
|
- return utilsMapper.updateOrderStatusByOrderIdOrNum(map);
|
|
|
+ utilsMapper.updateOrderStatusByOrderIdOrNum(map);
|
|
|
+ }
|
|
|
+ if(map.get("priceId")!=null){
|
|
|
+ //如果有价格ID 则说明需要结算 调用新增详单接口
|
|
|
+// bmsTruckFeign.addDetailsOrder(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
|
}
|
|
|
return 0;
|
|
|
}
|