成立单独的冀北技术监督项目
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.njcn.supervision.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 流程审批状态
|
||||
*/
|
||||
@Getter
|
||||
public enum FlowStatusEnum {
|
||||
|
||||
AUDIT(1, "审批中"),
|
||||
APPROVE(2, "审批通过"),
|
||||
OPPOSE(3, "审批不通过"),
|
||||
CANCEL(4, "已取消");
|
||||
|
||||
private final Integer code;
|
||||
|
||||
private final String name;
|
||||
|
||||
FlowStatusEnum(Integer code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public static String getNameByCode(Integer code) {
|
||||
for (FlowStatusEnum userNatureEnum : FlowStatusEnum.values()) {
|
||||
if (Objects.equals(userNatureEnum.code, code)) {
|
||||
return userNatureEnum.name;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
public static Integer getCodeByName(String name) {
|
||||
for (FlowStatusEnum userNatureEnum : FlowStatusEnum.values()) {
|
||||
if (userNatureEnum.name.equalsIgnoreCase(name)) {
|
||||
return userNatureEnum.code;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.supervision.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 技术监督用户状态枚举
|
||||
*/
|
||||
@Getter
|
||||
public enum SupervisionUserStatusEnum {
|
||||
|
||||
/**
|
||||
* 技术监督用户状态:可研/建设/运行/退运
|
||||
*/
|
||||
RESEARCH(0, "可研"),
|
||||
BUILD(1, "建设"),
|
||||
PRODUCT(2, "运行"),
|
||||
QUIT(3, "退运");
|
||||
|
||||
private final int code;
|
||||
|
||||
private final String message;
|
||||
|
||||
SupervisionUserStatusEnum(int code, String message) {
|
||||
this.code=code;
|
||||
this.message=message;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.supervision.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户性质枚举
|
||||
*/
|
||||
@Getter
|
||||
public enum UserNatureEnum {
|
||||
|
||||
BUILD_POWER_GRID(0, "新建电网工程"),
|
||||
EXTEND_POWER_GRID(1, "扩建电网工程"),
|
||||
BUILD_NON_LINEAR_LOAD(2, "新建非线性负荷用户"),
|
||||
EXTEND_NON_LINEAR_LOAD(3, "扩建非线性负荷用户"),
|
||||
BUILD_NEW_ENERGY_POWER_STATION(4, "新建新能源发电站"),
|
||||
EXTEND_NEW_ENERGY_POWER_STATION(5, "扩建新能源发电站"),
|
||||
SENSITIVE_USER(6, "敏感及重要用户");
|
||||
|
||||
private final Integer code;
|
||||
|
||||
private final String name;
|
||||
|
||||
UserNatureEnum(Integer code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public static String getNameByCode(Integer code) {
|
||||
for (UserNatureEnum userNatureEnum : UserNatureEnum.values()) {
|
||||
if (Objects.equals(userNatureEnum.code, code)) {
|
||||
return userNatureEnum.name;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
public static Integer getCodeByName(String name) {
|
||||
for (UserNatureEnum userNatureEnum : UserNatureEnum.values()) {
|
||||
if (userNatureEnum.name.equalsIgnoreCase(name)) {
|
||||
return userNatureEnum.code;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -7,12 +7,15 @@ import com.njcn.supervision.pojo.po.user.UserReportSensitivePO;
|
||||
import com.njcn.supervision.pojo.po.user.UserReportSubstationPO;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -58,7 +61,7 @@ public class UserReportParam extends BaseEntity {
|
||||
* 用户性质
|
||||
*/
|
||||
@ApiModelProperty(value = "用户性质")
|
||||
private String userType;
|
||||
private Integer userType;
|
||||
|
||||
/**
|
||||
* 所属地市
|
||||
@@ -76,7 +79,7 @@ public class UserReportParam extends BaseEntity {
|
||||
* 用户状态
|
||||
*/
|
||||
@ApiModelProperty(value = "用户状态")
|
||||
private String userStatus;
|
||||
private Integer userStatus;
|
||||
|
||||
/**
|
||||
* 变电站
|
||||
@@ -108,6 +111,9 @@ public class UserReportParam extends BaseEntity {
|
||||
@ApiModelProperty(value = "预测评估结论")
|
||||
private String evaluationConclusion;
|
||||
|
||||
@ApiModelProperty("发起人自选审批人 Map")
|
||||
private Map<String, List<String>> startUserSelectAssignees;
|
||||
|
||||
|
||||
private UserReportProjectPO userReportProjectPO;
|
||||
|
||||
@@ -117,7 +123,9 @@ public class UserReportParam extends BaseEntity {
|
||||
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class UserReportUpdate extends UserReportParam {
|
||||
|
||||
@ApiModelProperty("id")
|
||||
private String Id;
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class UserReportPO extends BaseEntity {
|
||||
* 用户性质
|
||||
*/
|
||||
@TableField(value = "user_type")
|
||||
private String userType;
|
||||
private Integer userType;
|
||||
|
||||
/**
|
||||
* 所属地市
|
||||
@@ -76,7 +76,7 @@ public class UserReportPO extends BaseEntity {
|
||||
* 用户状态
|
||||
*/
|
||||
@TableField(value = "user_status")
|
||||
private String userStatus;
|
||||
private Integer userStatus;
|
||||
|
||||
/**
|
||||
* 变电站
|
||||
|
||||
@@ -51,7 +51,7 @@ public class UserReportVO {
|
||||
* 用户性质
|
||||
*/
|
||||
@ApiModelProperty(value = "用户性质")
|
||||
private String userType;
|
||||
private Integer userType;
|
||||
|
||||
/**
|
||||
* 所属地市
|
||||
@@ -69,7 +69,7 @@ public class UserReportVO {
|
||||
* 用户状态
|
||||
*/
|
||||
@ApiModelProperty(value = "用户状态")
|
||||
private String userStatus;
|
||||
private Integer userStatus;
|
||||
|
||||
/**
|
||||
* 变电站
|
||||
|
||||
Reference in New Issue
Block a user