|
|
@ -4,10 +4,10 @@ import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description :
|
|
|
|
* @Description : 报表对象封装
|
|
|
|
* @Reference :
|
|
|
|
* @Reference :
|
|
|
|
* @Author : Adair Peng
|
|
|
|
* @Author : yunhao
|
|
|
|
* @CreateDate : 2019-01-17 14:13
|
|
|
|
* @CreateDate : 2019-01-17 15:41
|
|
|
|
* @Modify:
|
|
|
|
* @Modify:
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
public class ReportHqlPack {
|
|
|
|
public class ReportHqlPack {
|
|
|
@ -33,4 +33,18 @@ public class ReportHqlPack {
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 报表元素查询
|
|
|
|
|
|
|
|
* @param brElement
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlBrElement(BrElement brElement){
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(brElement.getElementType(),"elementType",result);
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(brElement.getElementName(),"elementName",result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|