微调
This commit is contained in:
@@ -10,6 +10,7 @@ import java.util.Objects;
|
||||
@Getter
|
||||
public enum FlowStatusEnum {
|
||||
|
||||
NEW(0, "新建"),
|
||||
AUDIT(1, "审批中"),
|
||||
APPROVE(2, "审批通过"),
|
||||
OPPOSE(3, "审批不通过"),
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.njcn.supervision.enums;
|
||||
|
||||
import cn.hutool.core.text.StrPool;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@@ -48,9 +47,9 @@ public enum SupervisionKeyEnum {
|
||||
* 根据流程key获取类的全路径,用于获取spring中的对象
|
||||
*/
|
||||
public static String getFullServicePathByKey(String key){
|
||||
for (SupervisionKeyEnum superviceKeyEnum : SupervisionKeyEnum.values()) {
|
||||
if (superviceKeyEnum.key.equalsIgnoreCase(key)) {
|
||||
return packagePrefix.concat(superviceKeyEnum.servicePrefix).concat(packageMiddle).concat(superviceKeyEnum.clazzName);
|
||||
for (SupervisionKeyEnum supervisionKeyEnum : SupervisionKeyEnum.values()) {
|
||||
if (supervisionKeyEnum.key.equalsIgnoreCase(key)) {
|
||||
return packagePrefix.concat(supervisionKeyEnum.servicePrefix).concat(packageMiddle).concat(supervisionKeyEnum.clazzName);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@@ -61,8 +60,8 @@ public enum SupervisionKeyEnum {
|
||||
* 判断流程key是否在当前枚举内
|
||||
*/
|
||||
public static boolean containBusinessKye(String key){
|
||||
for (SupervisionKeyEnum superviceKeyEnum : SupervisionKeyEnum.values()) {
|
||||
if (superviceKeyEnum.key.equalsIgnoreCase(key)) {
|
||||
for (SupervisionKeyEnum supervisionKeyEnum : SupervisionKeyEnum.values()) {
|
||||
if (supervisionKeyEnum.key.equalsIgnoreCase(key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user