取消订单,如果是待补单走待补单取消
This commit is contained in:
parent
12d51a6e5c
commit
c8edff4c1c
|
@ -2017,6 +2017,12 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
|||
if(orders.getParentId() != null && orders.getParentId() != 0){
|
||||
return Result.error("项目加钟之后,无法取消!");
|
||||
}
|
||||
}else if(orders.getStatus() == 10) {
|
||||
return cancelSupplementOrders(userId,ordersId,0,2);
|
||||
}else if(orders.getStatus() == 9) {
|
||||
if(orders.getRefusalContent()!=null && !orders.getRefusalContent().equals("")){
|
||||
return cancelSupplementOrders(userId,ordersId,0,3);
|
||||
}
|
||||
}
|
||||
//按时间扣款,获取扣款金额
|
||||
CommonInfo commonInfo = commonInfoService.isCheckChangeOrder(DateUtils.stringToDate(orders.getServeTime(),"yyyy-MM-dd HH:mm") ,new Date());
|
||||
|
|
Loading…
Reference in New Issue