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