|
|
|
@ -89,8 +89,7 @@ public class ImppEnumUtil {
|
|
|
|
|
public enum TASK_METHOD_TYPE{
|
|
|
|
|
TYPE_GROUP(1,"类方法","Java Class 方法"),
|
|
|
|
|
TYPE_COMPANY(2,"链接","Http URL"),
|
|
|
|
|
TYPE_FACTORY(3,"权限CODE","权限CODE"),
|
|
|
|
|
;
|
|
|
|
|
TYPE_FACTORY(3,"权限CODE","权限CODE");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String name;
|
|
|
|
@ -229,21 +228,22 @@ public class ImppEnumUtil {
|
|
|
|
|
* 4.SELECT:查询
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum LOG_TYPE{
|
|
|
|
|
public enum OPERATE_TYPE{
|
|
|
|
|
|
|
|
|
|
INSERT(1,"新增","新增"),
|
|
|
|
|
DELETE(2,"修改","修改"),
|
|
|
|
|
UPDATE(3,"删除","删除"),
|
|
|
|
|
SELECT(4,"查询","查询");
|
|
|
|
|
INSERT(1,"post","新增"), //POST
|
|
|
|
|
DELETE(2,"put","修改"), //PUT
|
|
|
|
|
UPDATE(3,"delete","删除"), //DELETE
|
|
|
|
|
SELECT(4,"get","查询"), //GET
|
|
|
|
|
BUSI(5,"busi","处理");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String name;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
LOG_TYPE() {
|
|
|
|
|
OPERATE_TYPE() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LOG_TYPE(int value, String name, String description) {
|
|
|
|
|
OPERATE_TYPE(int value, String name, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -281,6 +281,16 @@ public class ImppEnumUtil {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int codeOfValue(String code) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].name.equals(code)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String codeOfDescription(String code) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
@ -299,18 +309,16 @@ public class ImppEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum OPERATE_TERMINAL{
|
|
|
|
|
|
|
|
|
|
PC(1,"个人计算机","个人计算机");
|
|
|
|
|
PC(1,"电脑端"),PDA(2,"PDA"),MOBILE(3,"手机");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String name;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
OPERATE_TERMINAL() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
OPERATE_TERMINAL(int value, String name, String description) {
|
|
|
|
|
OPERATE_TERMINAL(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -318,24 +326,10 @@ public class ImppEnumUtil {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfCode(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
tmp = values()[i].name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
@ -346,15 +340,6 @@ public class ImppEnumUtil {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String codeOfDescription(String code) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].name.equals(code)) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|