|
发表于 2019-6-3 13:31:31
|
显示全部楼层
这个问题是报表加载的数据有记录的blob字段是空的,可以在java中判断如果为空就放回一个空白的或者固定图片的url,参考
- public static Table reportBolbImage() throws SQLException {
- Table t = KSQL.select("select AP_BLOBTP.* from AP_BLOBTP AP_BLOBTP where AP_BLOBTP.fName <> 'ddd'", null, "/appdemo/test/data", null);
- Iterator<Row> it = t.iterator();
- while (it.hasNext()) {
- Row r = it.next();
- if(r.getBlob("fBLOBTP")!=null){
- try {
- String url = "/UI2/system/service/common/bizAction.j?" + "blobDataModel=/appdemo/test/data" // 数据模块目录
- + "&blobConcept=AP_BLOBTP" // 概念名
- + "&blobRelation=fBLOBTP" // 关系名
- + "&blobConceptValue=" + r.getValue("AP_BLOBTP") // 行ID
- + "&process=/appdemo/test/process/reportBlobIMage/reportBlobIMageProcess" // 流程名称
- + "&activity=mainActivity" // 环节名称
- + "&action=blobDownloadAction" // 调用的Action
- + "&$query-version=" + com.justep.system.util.CommonUtils.createGUID();
- r.setString("fCode", addBsessionid(url)); // 将url存入table对象
- System.out.println(url + "blob的url");
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }else
- r.setString("fCode", "/UI2/appdemo/test/process/reportBlobIMage/empty.png");
-
- }
- return t;
- }
复制代码 |
|