|
|
@@ -3,6 +3,7 @@ package com.hz.pm.api.common.statemachine.builder.impl; |
|
|
|
import com.hz.pm.api.common.statemachine.builder.BaseStateMachineBuilder; |
|
|
|
import com.hz.pm.api.common.statemachine.event.ProjectStateChangeEvent; |
|
|
|
import com.hz.pm.api.common.statemachine.factory.ProjectGuardFactory; |
|
|
|
import com.hz.pm.api.common.statemachine.factory.ProjectGuardFactory.ProjectPurchaseToFirstAcceptGuard; |
|
|
|
import com.hz.pm.api.projectlib.model.entity.Project; |
|
|
|
import com.hz.pm.api.projectlib.model.enumeration.status.ProjectStatus; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
@@ -154,7 +155,7 @@ public class ProjectStateMachineBuilderImpl implements BaseStateMachineBuilder<P |
|
|
|
.source(ProjectStatus.ON_PURCHASING) |
|
|
|
.target(ProjectStatus.TO_BE_FIRST_INSPECTED) |
|
|
|
.event(ProjectStateChangeEvent.SUBMIT_PURCHASE_CONTRACT_RECORD) |
|
|
|
.guard(new ProjectGuardFactory.ProjectPurchaseToFirstAcceptGuard()) |
|
|
|
.guard(new ProjectPurchaseToFirstAcceptGuard()) |
|
|
|
.and() |
|
|
|
// 填写试试计划 -> 待初验 |
|
|
|
.withExternal() |
|
|
|