Browse Source

信创符合性申请修改

tags/24080901
WendyYang 8 months ago
parent
commit
e76243e8ad
6 changed files with 25 additions and 4 deletions
  1. +11
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/action/TenderAction.java
  2. +5
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/builder/impl/TenderStateMachineBuilderImpl.java
  3. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/event/TenderStatusChangeEvent.java
  4. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/performance/manage/OrgSelfAppraisalManage.java
  5. +2
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ConstructionManage.java
  6. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/enumeration/ProjectStatusEnum.java

+ 11
- 0
hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/action/TenderAction.java View File

@@ -107,6 +107,17 @@ public class TenderAction {
} }


/** /**
* 重新提交信创符合性申请
*
* @param message \
*/
@OnTransition(source = "XCFHX_APPLY_FAILED", target = "ON_XCFHX_APPLY")
public void RESUBMIT_XCFHX_APPLY(Message<ProjectStatusChangeEvent> message) {
Purchase purchase = getPurchaseInfo(message);
purchase.setStatus(TenderStatusEnum.ON_XCFHX_APPLY.getTenderStatus());
}

/**
* 终验申报 * 终验申报
* *
* @param message \ * @param message \


+ 5
- 0
hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/builder/impl/TenderStateMachineBuilderImpl.java View File

@@ -98,6 +98,11 @@ public class TenderStateMachineBuilderImpl implements TenderStateMachineBuilder
.source(TenderStatusEnum.TO_BE_SUBMIT_XCFHX_APPLY) .source(TenderStatusEnum.TO_BE_SUBMIT_XCFHX_APPLY)
.target(TenderStatusEnum.ON_XCFHX_APPLY) .target(TenderStatusEnum.ON_XCFHX_APPLY)
.event(TenderStatusChangeEvent.SUBMIT_XCFHX_APPLY) .event(TenderStatusChangeEvent.SUBMIT_XCFHX_APPLY)
.and()// 信创符合性申请
.withExternal()
.source(TenderStatusEnum.XCFHX_APPLY_FAILED)
.target(TenderStatusEnum.ON_XCFHX_APPLY)
.event(TenderStatusChangeEvent.RESUBMIT_XCFHX_APPLY)
.and() .and()
// 信创符合性申请通过 // 信创符合性申请通过
.withExternal() .withExternal()


+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/common/statemachine/event/TenderStatusChangeEvent.java View File

@@ -38,6 +38,10 @@ public enum TenderStatusChangeEvent {
*/ */
SUBMIT_XCFHX_APPLY(301, null, null), SUBMIT_XCFHX_APPLY(301, null, null),
/** /**
* 信创符合性重新申请
*/
RESUBMIT_XCFHX_APPLY(303, null, null),
/**
* 信创符合性申请通过 * 信创符合性申请通过
*/ */
XCFHX_APPLY_PASSED(302, null, null), XCFHX_APPLY_PASSED(302, null, null),


+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/performance/manage/OrgSelfAppraisalManage.java View File

@@ -82,8 +82,8 @@ public class OrgSelfAppraisalManage {
/** /**
* 绩效列表 * 绩效列表
* *
* @param req
* @return
* @param req \
* @return \
*/ */
public PageVo<PerformanceAppraisalVO> list(PerformanceAppraisalListReq req) { public PageVo<PerformanceAppraisalVO> list(PerformanceAppraisalListReq req) {
UserInfoDetails user = LoginUserUtil.loginUserDetail(); UserInfoDetails user = LoginUserUtil.loginUserDetail();


+ 2
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ConstructionManage.java View File

@@ -642,7 +642,8 @@ public class ConstructionManage {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void submitXcfhxApply(XcfhxApplyReq req) { public void submitXcfhxApply(XcfhxApplyReq req) {
Purchase purchase = purchaseService.getById(req.getBidId()); Purchase purchase = purchaseService.getById(req.getBidId());
if (!TenderStatusEnum.TO_BE_SUBMIT_XCFHX_APPLY.eq(purchase.getStatus())) {
if (!TenderStatusEnum.TO_BE_SUBMIT_XCFHX_APPLY.eq(purchase.getStatus())
&& !TenderStatusEnum.XCFHX_APPLY_FAILED.eq(purchase.getStatus())) {
throw BizException.wrap("该标段不支持提交信创符合性申请"); throw BizException.wrap("该标段不支持提交信创符合性申请");
} }




+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/enumeration/ProjectStatusEnum.java View File

@@ -101,7 +101,7 @@ public enum ProjectStatusEnum {
return null; return null;
} }


public boolean eq(int code) {
public boolean eq(Integer code) {
return this.getCode().equals(code); return this.getCode().equals(code);
} }




Loading…
Cancel
Save