|
|
|
@ -96,20 +96,20 @@ public class CoreHqlPack {
|
|
|
|
|
* @param position
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlSysPosition(SysPosition position){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
public static DdlPackBean packHqlSysPosition(SysPosition position){
|
|
|
|
|
DdlPackBean result = new DdlPackBean();
|
|
|
|
|
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
HqlPack.getNumEqualPack(position.getParentId(),"parentId",result);
|
|
|
|
|
HqlPack.getStringLikerPack(position.getName(),"name",result);
|
|
|
|
|
HqlPack.getStringLikerPack(position.getPositionCode(),"positionCode",result);
|
|
|
|
|
|
|
|
|
|
// 添加默认排序
|
|
|
|
|
HqlPack.getOrderDefault(position);
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(position.getParentId(),"parentId",result);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(position.getName(),"name",result);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(position.getPositionCode(),"positionCode",result);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(position.getOrganizeCode(),"organizeCode",result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 组织复杂查询
|
|
|
|
|
* @param organize
|
|
|
|
|