|
@@ -235,6 +235,13 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if(orderType == 23 || orderType == 24) {
|
|
|
+ //查询卸货
|
|
|
+ Map<String,Object> unloadMap = tmstruckLeaveFactoryResultMapper.getUnloadResult(DataChange.dataToBigDecimal(mesMap.get("orderId")));
|
|
|
+ if (unloadMap != null && unloadMap.get("resultEndTime") == null) {
|
|
|
+ throw new Exception("该车未扫卸货,请提醒司机去补扫卸货");
|
|
|
+ }
|
|
|
+ }
|
|
|
map.putAll(mesMap);
|
|
|
map.putAll(selectMap);
|
|
|
map.remove("Sqe");
|
|
@@ -249,6 +256,17 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
if(driverConfirmationSteel == null){
|
|
|
throw new Exception("请提醒司机确认订单!");
|
|
|
}
|
|
|
+ //判断该订单是不是自提
|
|
|
+ String isSelfMention = tmstruckLeaveFactoryResultMapper.getIsSelfMention(orderId);
|
|
|
+ try {
|
|
|
+ if(isSelfMention != null && isSelfMention.equals("是")) {
|
|
|
+ //如果是自提,则关闭运单
|
|
|
+ i += utilsService.closeOrderSteel(map);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
try {
|
|
|
//发送短信
|
|
|
Map<String,Object> messageMap = tmstruckLeaveFactoryResultMapper.getMessageMap(orderId);
|