|
@@ -385,13 +385,24 @@ public class TmstruckTimeTaskResultServiceImpl implements ITmstruckTimeTaskResul
|
|
tmstruckTimeTaskResult.setUpdateUsername(personnelSsoId);
|
|
tmstruckTimeTaskResult.setUpdateUsername(personnelSsoId);
|
|
}
|
|
}
|
|
i += tmstruckTimeTaskResultMapper.updateByPrimaryKeySelective(tmstruckTimeTaskResult);
|
|
i += tmstruckTimeTaskResultMapper.updateByPrimaryKeySelective(tmstruckTimeTaskResult);
|
|
- map.put("Time1",Time1);
|
|
|
|
- genernateInwardTime(map);
|
|
|
|
|
|
+ if(tmstruckTimeTaskResult.getResultBalanceTime()!=null && tmstruckTimeTaskResult.getResultBalanceTime().intValue()!=0){
|
|
|
|
+ map.put("Time1",tmstruckTimeTaskResult.getResultBalanceTime());
|
|
|
|
+ }else{
|
|
|
|
+ map.put("Time1",Time1);
|
|
|
|
+ }
|
|
//计算完成
|
|
//计算完成
|
|
Map<String, Object> orderMes = utilsMapper.getOrderTypeByOrderNumber(orderNumber);
|
|
Map<String, Object> orderMes = utilsMapper.getOrderTypeByOrderNumber(orderNumber);
|
|
BigDecimal orderType =DataChange.dataToBigDecimal(orderMes.get("orderType"));
|
|
BigDecimal orderType =DataChange.dataToBigDecimal(orderMes.get("orderType"));
|
|
if (orderType.intValue()==21) {
|
|
if (orderType.intValue()==21) {
|
|
- pushOrderForPause(map);
|
|
|
|
|
|
+ //生成计时计费详单
|
|
|
|
+ genernateInwardTime(map);
|
|
|
|
+ pushOrderForPause(map);//包含关闭订单并推单
|
|
|
|
+ }else if(orderType.intValue()==26){
|
|
|
|
+ //关闭运输订单
|
|
|
|
+ map.put("orderStatus", 2);
|
|
|
|
+ i = utilsMapper.updateOrderStatusByOrderIdOrNum(map);
|
|
|
|
+ //生成计次计费详单
|
|
|
|
+ genernateInwardTime(map);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return i;
|
|
return i;
|
|
@@ -445,7 +456,7 @@ public class TmstruckTimeTaskResultServiceImpl implements ITmstruckTimeTaskResul
|
|
Map<String,Object>mapInfo = tmstruckTimeTaskResultMapper.getRequirementInfo(orderId1);
|
|
Map<String,Object>mapInfo = tmstruckTimeTaskResultMapper.getRequirementInfo(orderId1);
|
|
Map<String,Object>mapPrice = null;
|
|
Map<String,Object>mapPrice = null;
|
|
try {
|
|
try {
|
|
- mapPrice = amsFeign.getInwardPriceBy(mapInfo);
|
|
|
|
|
|
+ mapPrice = amsFeign.getInwardPriceBy(mapInfo);//只查到计时,没有类型id
|
|
if(mapPrice != null){
|
|
if(mapPrice != null){
|
|
mapPrice.put("orderId",orderId1);
|
|
mapPrice.put("orderId",orderId1);
|
|
mapPrice.putAll(map);
|
|
mapPrice.putAll(map);
|
|
@@ -457,7 +468,6 @@ public class TmstruckTimeTaskResultServiceImpl implements ITmstruckTimeTaskResul
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
-
|
|
|
|
return i;
|
|
return i;
|
|
}
|
|
}
|
|
|
|
|