|
|
|
@ -45,6 +45,35 @@ public final class FormHqlPack {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName 列名
|
|
|
|
|
* @param params 参数
|
|
|
|
|
* @param isDeleted 数据状态
|
|
|
|
|
* @return hql
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlIdsAndIsDeleted(String columnName, String[] params, Integer isDeleted) {
|
|
|
|
|
StringBuffer result = new StringBuffer(FormHqlPack.packHqlIds(columnName, params));
|
|
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(isDeleted, "isDeleted", result);
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName 列名
|
|
|
|
|
* @param params 参数
|
|
|
|
|
* @param isDeleted 数据状态
|
|
|
|
|
* @return hql
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlIdsAndIsDeleted(String columnName, Long[] params, Integer isDeleted) {
|
|
|
|
|
StringBuffer result = new StringBuffer(FormHqlPack.packHqlIds(columnName, params));
|
|
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(isDeleted, "isDeleted", result);
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 表单布局复杂查询
|
|
|
|
|
* @param bfLayout 表单布局
|
|
|
|
|
* @return hql
|
|
|
|
|