|
|
@@ -45,7 +45,7 @@ public class XcfhxStateMachineUtil implements AbstractStateMachineUtil<Purchase, |
|
|
|
|
|
|
|
@Override |
|
|
|
public void execute(Purchase purchase, XcfhxStateChangeEvent event) throws Exception { |
|
|
|
log.info("调用状态机前的标段状态为:{}", purchase.getStatus()); |
|
|
|
log.info("调用状态机前的标段状态为:{}", purchase.getXcfhxApplyStatus()); |
|
|
|
// 获取TO状态机 |
|
|
|
PurchaseStatusChange change = new PurchaseStatusChange(); |
|
|
|
change.setBeforeStatus(purchase.getXcfhxApplyStatus()); |
|
|
@@ -64,7 +64,7 @@ public class XcfhxStateMachineUtil implements AbstractStateMachineUtil<Purchase, |
|
|
|
stateMachine.sendEvent(message); |
|
|
|
change.setAfterStatus(purchase.getXcfhxApplyStatus()); |
|
|
|
purchaseStatusChangeService.save(change); |
|
|
|
log.info("调用状态机后的标段状态为:{}", purchase.getStatus()); |
|
|
|
log.info("调用状态机后的标段状态为:{}", purchase.getXcfhxApplyStatus()); |
|
|
|
} |
|
|
|
|
|
|
|
} |