|
@@ -184,8 +184,9 @@ 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");
|
|
|
+ BigDecimal closeStatus = DataChange.dataToBigDecimal(mapValue.get("closeStatus"));
|
|
|
if (closeStatus.intValue() == 0) {
|
|
|
amsFeign.dispatchTruckOrderByCarrier(mapValue);
|
|
|
}
|