|
@@ -1,5 +1,6 @@
|
|
|
package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
+import com.steerinfo.dil.feign.AmsFeign;
|
|
|
import com.steerinfo.dil.feign.BmsShipFeign;
|
|
|
import com.steerinfo.dil.feign.BmsTruckFeign;
|
|
|
import com.steerinfo.dil.feign.OmsFeign;
|
|
@@ -10,6 +11,7 @@ import com.steerinfo.dil.model.TmstruckLeaveFactoryResult;
|
|
|
import com.steerinfo.dil.service.ITmstruckLeaveFactoryResultService;
|
|
|
import com.steerinfo.dil.service.IUtilsService;
|
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
+import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -55,6 +57,9 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
@Autowired
|
|
|
OmsFeign omsFeign;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ AmsFeign amsFeign;
|
|
|
+
|
|
|
/**
|
|
|
* 查看运输线路是否为出厂
|
|
|
* @param orderNumber
|
|
@@ -179,6 +184,11 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
throw new Exception("请提醒司机确认订单!");
|
|
|
}
|
|
|
i += utilsService.closeOrderNormally(map);
|
|
|
+ Map<String,Object> mapValue = omsFeign.getSaleAllMessages(orderId.intValue());
|
|
|
+ BigDecimal closeStatus = (BigDecimal) mapValue.get("closeStatus");
|
|
|
+ if (closeStatus.intValue() == 0) {
|
|
|
+ amsFeign.dispatchTruckOrderByCarrier(mapValue);
|
|
|
+ }
|
|
|
break;
|
|
|
case 4:
|
|
|
break;
|