新增派单全部的时候,需要更新主单状态

This commit is contained in:
kuang.yifei@iwhalecloud.com 2022-06-22 21:27:39 +08:00
parent 39f5880322
commit 00e14f4170
2 changed files with 8 additions and 0 deletions

View File

@ -131,6 +131,11 @@ public class OrderController extends BaseController {
Assert.isTrue(checkInTeam, "接单师傅不在本团队"); Assert.isTrue(checkInTeam, "接单师傅不在本团队");
} }
// 判断是否全部派完
if(request.getIsAll() == 1){
om.setOrderStatus(OrderStatus.GOING.code());
orderMasterService.updateOrderMaster(om);
}
// 创建子订单 // 创建子订单
OrderDetail od = new OrderDetail(); OrderDetail od = new OrderDetail();

View File

@ -23,6 +23,9 @@ public class AppOrderAssignRequest {
// 价格 // 价格
private BigDecimal totalPay; private BigDecimal totalPay;
// 是否全部派完
private int isAll;
// 分配的商品及数量 // 分配的商品及数量
private List<AppGoodsRequest> goodsList; private List<AppGoodsRequest> goodsList;
} }