|
|
|
@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.form.sqlpack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.form.bean.BfLayout;
|
|
|
|
|
import cn.estsh.i3plus.pojo.form.bean.BfLayoutRow;
|
|
|
|
|
import cn.estsh.i3plus.pojo.form.bean.BfMenu;
|
|
|
|
|
import cn.estsh.i3plus.pojo.form.bean.BfMethod;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -89,4 +91,34 @@ public final class FormHqlPack {
|
|
|
|
|
result.append(bfLayoutRow.orderBy());
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 菜单目录复杂查询
|
|
|
|
|
* @param bfMenu 菜单目录
|
|
|
|
|
* @return hql
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlBfMenu(BfMenu bfMenu) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(bfMenu.getMenuName(), "menuName", result);
|
|
|
|
|
HqlPack.getNumEqualPack(bfMenu.getParentId(), "parentId", result);
|
|
|
|
|
HqlPack.getNumEqualPack(bfMenu.getIsDeleted(), "isDeleted", result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 表单功能复杂查询
|
|
|
|
|
* @param bfMethod 表单功能查询条件
|
|
|
|
|
* @return hql
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlBfMethod(BfMethod bfMethod) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(bfMethod.getMethodName(), "methodName", result);
|
|
|
|
|
HqlPack.getNumEqualPack(bfMethod.getLayoutId(), "layoutId", result);
|
|
|
|
|
HqlPack.getNumEqualPack(bfMethod.getIsDeleted(), "isDeleted", result);
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|