|
|
@ -1,7 +1,9 @@
|
|
|
|
package cn.estsh.i3plus.pojo.report.sqlpack;
|
|
|
|
package cn.estsh.i3plus.pojo.report.sqlpack;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrElement;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrElement;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrLayout;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
@ -76,4 +78,48 @@ public class ReportHqlPack {
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 报表布局查询
|
|
|
|
|
|
|
|
* @param brLayout
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlBrLayout(BrLayout brLayout){
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
|
|
|
HqlPack.getStringLikerPack(brLayout.getLayoutName(),"layoutName",result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 按顺序查询行中的单元格
|
|
|
|
|
|
|
|
* @param rowId
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlBrLayoutColumnByRowIdSortBySeq(Long rowId){
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(rowId,"layoutRowId",result);
|
|
|
|
|
|
|
|
HqlPack.getOrderByPack(new Object[]{CommonEnumUtil.ASC_OR_DESC.ASC.getValue()},new String[]{"seq"},result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 按顺序查询报表中的行
|
|
|
|
|
|
|
|
* @param layoutId
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static String packHqlBrLayoutColumnByLayoutIdSortBySeq(Long layoutId){
|
|
|
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询参数封装
|
|
|
|
|
|
|
|
HqlPack.getNumEqualPack(layoutId,"layoutId",result);
|
|
|
|
|
|
|
|
HqlPack.getOrderByPack(new Object[]{CommonEnumUtil.ASC_OR_DESC.ASC.getValue()},new String[]{"seq"},result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|