|
@@ -46,6 +46,7 @@ public class ProdBeginConfirmFlow extends FlowDelegate {
|
|
|
produceOrderService.update(q -> q
|
|
|
.eq(ProductionOrder::getId, orderById.getId())
|
|
|
.set(ProductionOrder::getProdBeginConfirmId, dto.getId())
|
|
|
+ .set(ProductionOrder::getBeginWorkStatus, 10)
|
|
|
);
|
|
|
|
|
|
return dto.getId();
|
|
@@ -65,9 +66,10 @@ public class ProdBeginConfirmFlow extends FlowDelegate {
|
|
|
.eq(ProductionBeginConfirm::getId, businessId)
|
|
|
.set(ProductionBeginConfirm::getStatus, FlowStatusEnum1.PASS.getKey())
|
|
|
);
|
|
|
+
|
|
|
produceOrderService.update(q -> q
|
|
|
.eq(ProductionOrder::getId, pbcById.getProdOrderId())
|
|
|
- .set(ProductionOrder::getIsAgreeWork, pbcById.getIsAgreeWork())
|
|
|
+ .set(ProductionOrder::getBeginWorkStatus, pbcById.getIsAgreeWork() == 1 ? 30 : 20)
|
|
|
.set(ProductionOrder::getProdBeginConfirmId, businessId)
|
|
|
);
|
|
|
}
|