硬件类型 批量删除

硬件管理     分页,排序
字典         列表查询
yun-zuoyi
yunhao.wang 7 years ago
parent 406ada5ac1
commit c23c091e86

@ -699,71 +699,4 @@ public class ImppEnumUtil {
return tmp;
}
}
/**
*
* 1.ENABLE
* 2.DISABLE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum COMM_STATUS{
ENABLE(1,"启用","fa fa-success cell-fa fa-check"),
DISABLE(2,"禁用","fa fa-disabled cell-fa fa-times-circle");
private int value;
private String name;
private String description;
COMM_STATUS() {
}
COMM_STATUS(int value, String name, String description) {
this.value = value;
this.name = name;
this.description = description;
}
public int getValue() {
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++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
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;
}
}
}

@ -164,4 +164,22 @@ public class CoreHqlPack {
return result.toString();
}
/**
*
* @param tool
* @return
*/
public static String packHqlTool(Tool tool) {
StringBuffer result = new StringBuffer();
// hql拼接
HqlPack.getStringLikerPack(tool.getName(),"name",result);
HqlPack.getNumEqualPack(tool.getToolTypeId(),"toolTypeId",result);
HqlPack.getNumEqualPack(tool.getToolStatusId(),"toolStatusId",result);
HqlPack.getStringLikerPack(tool.getName(),"name",result);
HqlPack.getStringLikerPack(tool.getName(),"name",result);
return result.toString();
}
}

Loading…
Cancel
Save