流程key提取
This commit is contained in:
@@ -4,7 +4,7 @@ import cn.hutool.core.text.StrPool;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SuperviceKeyEnum {
|
||||
public enum SupervisionKeyEnum {
|
||||
|
||||
QUIT_RUNNING_DEVICE("quit_running_device","device","终端状态变更流程","QuitRunningDeviceServiceImpl"),
|
||||
DEVICE_INFO_ADD("device_info_add","device","电能质量监测装置设备管理流程","SupervisionDevMainReportPOServiceImpl"),
|
||||
@@ -34,7 +34,7 @@ public enum SuperviceKeyEnum {
|
||||
* @param describe 描述
|
||||
* @param clazzName 类名,方便获取spring中对应的对象
|
||||
*/
|
||||
SuperviceKeyEnum(String key, String servicePrefix, String describe,String clazzName) {
|
||||
SupervisionKeyEnum(String key, String servicePrefix, String describe, String clazzName) {
|
||||
this.key = key;
|
||||
this.servicePrefix = servicePrefix;
|
||||
this.describe = describe;
|
||||
@@ -47,7 +47,7 @@ public enum SuperviceKeyEnum {
|
||||
* 根据流程key获取类的全路径,用于获取spring中的对象
|
||||
*/
|
||||
public static String getFullServicePathByKey(String key){
|
||||
for (SuperviceKeyEnum superviceKeyEnum : SuperviceKeyEnum.values()) {
|
||||
for (SupervisionKeyEnum superviceKeyEnum : SupervisionKeyEnum.values()) {
|
||||
if (superviceKeyEnum.key.equalsIgnoreCase(key)) {
|
||||
return packagePrefix.concat(superviceKeyEnum.servicePrefix).concat(StrPool.DOT).concat(superviceKeyEnum.clazzName);
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public class UserReportNormalPO extends BaseEntity {
|
||||
/**
|
||||
* 类型0:方案审查 1:治理工程
|
||||
*/
|
||||
private Boolean type;
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 报告存放路径
|
||||
|
||||
Reference in New Issue
Block a user