|
@@ -156,6 +156,8 @@ public class OrderLogic {
|
|
|
|
|
|
@Autowired
|
|
|
GoodsMaterialStorageService goodsMaterialStorageService;
|
|
|
+ @Autowired
|
|
|
+ PgOrderBaseService pgOrderBaseService;
|
|
|
/**
|
|
|
* 订单列表
|
|
|
*
|
|
@@ -1443,6 +1445,11 @@ public class OrderLogic {
|
|
|
}
|
|
|
|
|
|
orderFlagLogic.saveOrderFlag(Lists.newArrayList(apply.getOrderBaseId()), OrderFlagEnum.PARTS_CANCEL);
|
|
|
+
|
|
|
+ pgOrderBaseService.lambdaUpdate()
|
|
|
+ .set(PgOrderBase::getPartsApplyStatus, PartsApplyStatusEnum.CANCEL.getKey())
|
|
|
+ .eq(PgOrderBase::getId, apply.getOrderBaseId())
|
|
|
+ .update();
|
|
|
}
|
|
|
|
|
|
public void partsApplyItemModify(WebsitPartsApplyItem item) {
|
|
@@ -1507,6 +1514,11 @@ public class OrderLogic {
|
|
|
orderFlagLogic.deleteOrderFlag(apply.getOrderBaseId(), OrderFlagEnum.PARTS_ING);
|
|
|
}
|
|
|
orderFlagLogic.saveOrderFlag(Lists.newArrayList(apply.getOrderBaseId()), OrderFlagEnum.PARTS_END);
|
|
|
+
|
|
|
+ pgOrderBaseService.lambdaUpdate()
|
|
|
+ .set(PgOrderBase::getPartsApplyStatus, PartsApplyStatusEnum.END.getKey())
|
|
|
+ .eq(PgOrderBase::getId, apply.getOrderBaseId())
|
|
|
+ .update();
|
|
|
}
|
|
|
|
|
|
@Transactional
|