Browse Source

Merge remote-tracking branch 'origin/master'

master
PoffyZhang 1 year ago
parent
commit
25c20e5983
2 changed files with 48 additions and 1 deletions
  1. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/model/enumeration/ReviewTemplateTypeEnum.java
  2. +45
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/entity/enumeration/MeetingReviewTypeEnum.java

+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/model/enumeration/ReviewTemplateTypeEnum.java View File

@@ -21,7 +21,9 @@ public enum ReviewTemplateTypeEnum {

CONSTRUCTION_SCHEME_REVIEW("建设方案评审", 2),

ACCEPTANCE_SCHEME_REVIEW("验收方案评审", 3);
ACCEPTANCE_SCHEME_REVIEW("验收方案评审", 3),

DEPT_JOIN_REVIEW("部门联审", 4);


private final String value;


+ 45
- 0
pmapi/src/main/java/com/ningdatech/pmapi/meeting/entity/enumeration/MeetingReviewTypeEnum.java View File

@@ -0,0 +1,45 @@
package com.ningdatech.pmapi.meeting.entity.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
* <p>
* MeetingReviewTypeEnum
* </p>
*
* @author WendyYang
* @since 16:32 2023/3/15
*/
@Getter
@AllArgsConstructor
public enum MeetingReviewTypeEnum {

/**
* 会议评审类型
*/
PRELIMINARY_SCHEME_REVIEW("初步方案评审", "1"),

CONSTRUCTION_SCHEME_REVIEW("建设方案评审", "2"),

ACCEPTANCE_SCHEME_REVIEW("验收方案评审", "3"),

DEPT_JOIN_REVIEW("部门联审", "4");

private final String value;
private final String code;

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

public static MeetingReviewTypeEnum getByCode(String code) {
return Arrays.stream(values())
.filter(w -> w.getCode().equals(code))
.findFirst()
.orElseThrow(() -> new IllegalArgumentException("无效的会议评审类型编码"));
}

}

Loading…
Cancel
Save