|
|
|
@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.report.sqlpack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrElement;
|
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description : 报表对象封装
|
|
|
|
@ -14,6 +15,33 @@ import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
|
public class ReportHqlPack {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlIds(String columnName,String[] params){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// 参数数组 [1,2,3] -> "1,2,3"
|
|
|
|
|
HqlPack.getInPack(String.join(",",params),columnName,result);
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlIds(String columnName,Long[] params){
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// 参数数组 [1,2,3] -> "1,2,3"
|
|
|
|
|
HqlPack.getInPack(StringUtils.join(params,","),columnName,result);
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 目录查询封装
|
|
|
|
|
* @param menu
|
|
|
|
|
* @return
|
|
|
|
|