|
|
|
@ -1,10 +1,7 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.platform.sqlpack;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.Department;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.Position;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SysLocaleLanguage;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SysLocaleResource;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.*;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
|
@ -73,7 +70,6 @@ public class CoreHqlPack {
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName
|
|
|
|
@ -87,7 +83,6 @@ public class CoreHqlPack {
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 部门复杂查询
|
|
|
|
|
* @param department
|
|
|
|
@ -107,4 +102,50 @@ public class CoreHqlPack {
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 系统参数复杂查询
|
|
|
|
|
* @param sysConfig
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysConfig(SysConfig sysConfig) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
HqlPack.getStringLikerPack(sysConfig.getName(),"name",result);
|
|
|
|
|
HqlPack.getStringLikerPack(sysConfig.getConfigCode(),"configCode",result);
|
|
|
|
|
HqlPack.getNumEqualPack(sysConfig.getConfigTypeId(),"configTypeId",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 字典信息复杂查询
|
|
|
|
|
* @param sysDictionary
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysDictionary(SysDictionary sysDictionary) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
HqlPack.getStringLikerPack(sysDictionary.getName(),"name",result);
|
|
|
|
|
HqlPack.getStringLikerPack(sysDictionary.getDictionaryCode(),"dictionaryCode",result);
|
|
|
|
|
HqlPack.getNumEqualPack(sysDictionary.getParentId(),"parentId",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 硬件类型复杂查询
|
|
|
|
|
* @param toolType
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlToolType(ToolType toolType) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// hql拼接
|
|
|
|
|
HqlPack.getStringLikerPack(toolType.getName(),"name",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|