diff --git a/com.awspaas.user.apps.yili.reportform/lib/com.awspaas.user.apps.yili.reportform.jar b/com.awspaas.user.apps.yili.reportform/lib/com.awspaas.user.apps.yili.reportform.jar new file mode 100644 index 00000000..4b047aeb Binary files /dev/null and b/com.awspaas.user.apps.yili.reportform/lib/com.awspaas.user.apps.yili.reportform.jar differ diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java index b3760712..032570f4 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java @@ -1178,7 +1178,6 @@ public class DataViewService extends ActionWeb { // TODO: handle exception } - System.err.println("查询部门视图===>" + fileListMap.size()); fileRowMaps = fileHandleRowMaps; long endTime = System.currentTimeMillis(); if (null != fileRowMaps && fileRowMaps.size() > 0) { @@ -1240,7 +1239,7 @@ public class DataViewService extends ActionWeb { // reFileRowMap); } fileRowMaps = fileHandleRowMaps; - // System.err.println("=======fileRowMaps========="+fileRowMaps); + System.err.println("=======fileRowMaps========="+fileRowMaps); // 遍历选择的结果 List fileMaps = new ArrayList<>(); List frameRowMaps = new ArrayList<>(); @@ -1409,6 +1408,7 @@ public class DataViewService extends ActionWeb { } finally { // System.err.println("====执行完毕====>"); } + System.out.println("ro================="+ro.toString()); return ro.toString(); } diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ToPageService.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ToPageService.java index 42f2b4b6..8bcee3d2 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ToPageService.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ToPageService.java @@ -1,7 +1,12 @@ package com.awspaas.user.apps.yili.reportform.service; import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao; +import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.cache.DesignerShapeRelationCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.model.DesignerShapeRelationModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; +import com.actionsoft.apps.coe.pal.system.util.StringUtil; import com.actionsoft.bpms.commons.database.RowMap; import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate; import com.actionsoft.bpms.commons.login.constant.LoginConst; @@ -11,9 +16,11 @@ import com.actionsoft.bpms.server.RequestParams; import com.actionsoft.bpms.server.SSOUtil; import com.actionsoft.bpms.server.UserContext; import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; import com.actionsoft.sdk.local.SDK; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; import com.awspaas.user.apps.yili.reportform.util.TreeUtil; import java.sql.Connection; @@ -125,11 +132,11 @@ public class ToPageService extends ActionWeb { public String frameView (UserContext uc, RequestParams params) { ResponseObject ro = ResponseObject.newOkResponse(); String fileType = params.get("fileType"); - System.out.println("======fileType======"+fileType); - System.out.println("======frameIDtoFrameView======"+frameIDtoFrameView); - if (null!=frameIDtoFrameView && !frameIDtoFrameView.equals("")) { + System.out.println("======fileType======" + fileType); + System.out.println("======frameIDtoFrameView======" + frameIDtoFrameView); + if (null != frameIDtoFrameView && !frameIDtoFrameView.equals("")) { //SDK.getLogAPI().consoleInfo("当前架构ID1"+frameID); - SDK.getLogAPI().consoleInfo("当前架构ID全局"+frameIDtoFrameView); + SDK.getLogAPI().consoleInfo("当前架构ID全局" + frameIDtoFrameView); Object[] sqlParams = {frameIDtoFrameView}; HashMap fileMap = new HashMap<>(); ArrayList fileMaps = new ArrayList<>(); @@ -138,9 +145,9 @@ public class ToPageService extends ActionWeb { String sid = _uc.getSessionId(); String path = ""; PALRepositoryModel model = null; - String taskId=""; - System.out.println("========frameRowMap========"+frameRowMap); - if (null!=frameRowMap && !frameRowMap.isEmpty()) { + String taskId = ""; + System.out.println("========frameRowMap========" + frameRowMap); + if (null != frameRowMap && !frameRowMap.isEmpty()) { fileMap = new HashMap(); nodeType = "frame"; fileMap.put("ID", frameRowMap.getString("FRAMEID")); @@ -151,146 +158,176 @@ public class ToPageService extends ActionWeb { fileMap.put("nodeType", nodeType); fileMaps.add(fileMap); //List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR PLMETHODID='data.form'"); - List fileRowMaps = DBSql.getMaps("SELECT FILEID,PLPARENTID,PLNAME,PLMETHODID,SUPPORTFILE,PUBDEPT,PUBDATETIME,PLORDERINDEX,PLLEVEL,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE PLPARENTID=? AND FILESTATE='1' AND (PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy') ORDER BY TO_NUMBER(PLLEVEL) ASC, TO_NUMBER(PLORDERINDEX) ASC", sqlParams); - System.out.println("========fileRowMaps1========>"+fileRowMaps.size()); + + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,PLPARENTID,PLNAME,PLMETHODID,SUPPORTFILE,PUBDEPT,PUBDATETIME,PLORDERINDEX,PLLEVEL,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE PLPARENTID=? AND FILESTATE='1' AND (PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy') ORDER BY TO_NUMBER(PLLEVEL) ASC, TO_NUMBER(PLORDERINDEX) ASC", sqlParams); + + //List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,PLPARENTID,PLNAME,PLMETHODID,PLVERSIONID,PLORDERINDEX,PLLEVEL,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLPARENTID=? AND ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart') ORDER BY TO_NUMBER(PLLEVEL) ASC, TO_NUMBER(PLORDERINDEX) ASC", sqlParams); + + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,PLPARENTID,PLNAME,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLPARENTID=? AND ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart') ORDER BY TO_NUMBER(PLLEVEL) ASC, TO_NUMBER(PLORDERINDEX) ASC", sqlParams); + + + + + System.out.println("fileRowMaps============" + fileRowMaps); ArrayList fileHandleRowMaps = new ArrayList<>(); Map reFileMap = new HashMap<>(); RowMap reFileRowMap = new RowMap(reFileMap); - if (null!=fileRowMaps && !fileRowMaps.isEmpty()) { + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { fileHandleRowMaps = new ArrayList<>(); for (RowMap fileRowMap : fileRowMaps) { String FILEID = fileRowMap.getString("FILEID"); - String SUPPORTFILE = fileRowMap.getString("SUPPORTFILE"); - String PUBDEPT = fileRowMap.getString("PUBDEPT"); Integer PLLEVEL = fileRowMap.getInt("PLLEVEL"); - if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { - String[] reFileIDs = SUPPORTFILE.split(" "); - for (String reFileID : reFileIDs) { - PALRepositoryModel reFileModel = PALRepositoryCache.getCache().get(reFileID); - String PLMETHODID = reFileModel.getMethodId(); - if (PLMETHODID.equals("data.form")) { - reFileMap = new HashMap<>(); - reFileMap.put("FILEID", reFileID); - reFileMap.put("PLNAME", reFileModel.getName()); - reFileMap.put("PLPARENTID", FILEID); - reFileMap.put("PLMETHODID", PLMETHODID); - reFileMap.put("PUBDEPT", PUBDEPT); - reFileMap.put("PLLEVEL", (PLLEVEL+1)); - reFileMap.put("PLORDERINDEX", reFileModel.getOrderIndex()); - reFileRowMap = new RowMap(reFileMap); - fileHandleRowMaps.add(reFileRowMap); - } - } - } - } - fileRowMaps.addAll(fileHandleRowMaps); - } - System.out.println("========fileRowMaps2========>"+fileRowMaps.size()); - if (null!=fileType && !fileType.equals("")) { - fileHandleRowMaps = new ArrayList<>(); - if (null!=fileRowMaps && !fileRowMaps.isEmpty()) { - for (RowMap fileRowMap : fileRowMaps) { - if (fileType.equals("processFile")) { - if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { - fileHandleRowMaps.add(fileRowMap); - } - } - System.out.println("========fileHandleRowMaps3========>"+fileHandleRowMaps.size()); - if (fileType.equals("policyFile")) { - if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null==fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { - fileHandleRowMaps.add(fileRowMap); - } - } - // && fileRowMap.getString("POLICYTYPE").equals("regulation") - if (fileType.equals("guideFile")) { - if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { - fileHandleRowMaps.add(fileRowMap); - } - } - if (fileType.equals("formFile")) { - if (fileRowMap.getString("PLMETHODID").equals("data.form")) { - fileHandleRowMaps.add(fileRowMap); - String PLPARENTID = fileRowMap.getString("PLPARENTID"); - PALRepositoryModel reFileModel = PALRepositoryCache.getCache().get(PLPARENTID); - String PLMETHODID = reFileModel.getMethodId(); - String PUBDEPT = fileRowMap.getString("PUBDEPT"); - Integer PLLEVEL = fileRowMap.getInt("PLLEVEL"); - if (!PLMETHODID.equals("process.framework")) { - reFileMap = new HashMap<>(); - reFileMap.put("FILEID", reFileModel.getId()); - reFileMap.put("PLNAME", reFileModel.getName()); - reFileMap.put("PLPARENTID", reFileModel.getParentId()); - reFileMap.put("PLMETHODID", PLMETHODID); - reFileMap.put("PUBDEPT", PUBDEPT); - reFileMap.put("PLLEVEL", (PLLEVEL-1)); - reFileMap.put("PLORDERINDEX", reFileModel.getOrderIndex()); - reFileRowMap = new RowMap(reFileMap); - fileHandleRowMaps.add(reFileRowMap); + PALRepositoryPropertyDao repositoryPropertyDao = new PALRepositoryPropertyDao(); + List oldPropertyList = repositoryPropertyDao.getPropertysByPlid(FILEID, ""); + if (oldPropertyList != null && oldPropertyList.size() > 0) { + for (PALRepositoryPropertyModel propertyModel : oldPropertyList) { + + //查询支持文件 + if (propertyModel.getPropertyId().equals("support_files")) { + String propertyValue = propertyModel.getPropertyValue(); + if (UtilString.isNotEmpty(propertyValue)) { + System.out.println("酷酷酷酷酷酷酷酷1"); + String relationFileId = JSONObject.parseObject(propertyModel.getPropertyValue()).getString("relationFileId"); + if(UtilString.isNotEmpty(relationFileId)){ + PALRepositoryModel reFileModel = PALRepositoryCache.getCache().get(relationFileId); + String PLMETHODID = reFileModel.getMethodId(); + if (PLMETHODID.equals("data.form")) { + reFileMap = new HashMap<>(); + reFileMap.put("FILEID", relationFileId); + reFileMap.put("PLNAME", reFileModel.getName()); + reFileMap.put("PLPARENTID", FILEID); + reFileMap.put("PLMETHODID", PLMETHODID); + System.out.println("111111111"); + + PALRepositoryPropertyDao dao = new PALRepositoryPropertyDao(); + List propertys = dao.getPropertysByPlid(FILEID, null); + for (PALRepositoryPropertyModel property : propertys) { + String id = property.getPropertyId(); + if (id.equals("Issuing_department")) { + reFileMap.put("PUBDEPT", property.getPropertyValue()); + } + } + reFileMap.put("PLLEVEL", (PLLEVEL + 1)); + reFileMap.put("PLORDERINDEX", reFileModel.getOrderIndex()); + reFileRowMap = new RowMap(reFileMap); + fileHandleRowMaps.add(reFileRowMap); + } + } + } } } - if (fileType.equals("totalFile")) { - fileHandleRowMaps.add(fileRowMap); + } + } + fileRowMaps.addAll(fileHandleRowMaps); + } + System.out.println("========fileRowMaps2========>" + fileRowMaps.size()); + if (null != fileType && !fileType.equals("")) { + fileHandleRowMaps = new ArrayList<>(); + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileType.equals("processFile")) { + if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileHandleRowMaps.add(fileRowMap); + } + } + System.out.println("========fileHandleRowMaps3========>" + fileHandleRowMaps.size()); + if (fileType.equals("policyFile")) { + if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null == fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { + fileHandleRowMaps.add(fileRowMap); + } + } + // && fileRowMap.getString("POLICYTYPE").equals("regulation") + if (fileType.equals("guideFile")) { + if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleRowMaps.add(fileRowMap); + } + } + if (fileType.equals("formFile")) { + if (fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileHandleRowMaps.add(fileRowMap); + String PLPARENTID = fileRowMap.getString("PLPARENTID"); + PALRepositoryModel reFileModel = PALRepositoryCache.getCache().get(PLPARENTID); + String PLMETHODID = reFileModel.getMethodId(); + String PUBDEPT = fileRowMap.getString("PUBDEPT"); + Integer PLLEVEL = fileRowMap.getInt("PLLEVEL"); + if (!PLMETHODID.equals("process.framework")) { + reFileMap = new HashMap<>(); + reFileMap.put("FILEID", reFileModel.getId()); + reFileMap.put("PLNAME", reFileModel.getName()); + reFileMap.put("PLPARENTID", reFileModel.getParentId()); + reFileMap.put("PLMETHODID", PLMETHODID); + reFileMap.put("PUBDEPT", PUBDEPT); + reFileMap.put("PLLEVEL", (PLLEVEL - 1)); + reFileMap.put("PLORDERINDEX", reFileModel.getOrderIndex()); + reFileRowMap = new RowMap(reFileMap); + fileHandleRowMaps.add(reFileRowMap); + } + } + } + if (fileType.equals("totalFile")) { + fileHandleRowMaps.add(fileRowMap); + } } } + fileHandleRowMaps = fileHandleRowMaps.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getString("FILEID")))), + ArrayList::new)); + fileRowMaps = fileHandleRowMaps; } - fileHandleRowMaps = fileHandleRowMaps.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getString("FILEID")))), - ArrayList::new)); - fileRowMaps = fileHandleRowMaps; - } - if(null!=fileRowMaps && !fileRowMaps.isEmpty()) { - for (RowMap fileRowMap : fileRowMaps) { - fileMap = new HashMap(); - model = PALRepositoryCache.getCache().get(fileRowMap.getString("FILEID")); - if (model != null) { - if (model.isPublish() || model.isStop()) {// 停用或已发布状态查询最新流程手册 - taskId=getLastPublishTaskIdByModelId(model.getId()); + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + fileMap = new HashMap(); + model = PALRepositoryCache.getCache().get(fileRowMap.getString("FILEID")); + if (model != null) { + if (model.isPublish() || model.isStop()) {// 停用或已发布状态查询最新流程手册 + taskId = getLastPublishTaskIdByModelId(model.getId()); + } } + path = "./w" + "?" + "cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open" + "&" + "uuid=" + fileRowMap.getString("FILEID") + "&" + "sid=" + sid + "&" + "taskId=" + taskId; + nodeType = "file"; + fileMap.put("ID", fileRowMap.getString("FILEID")); + fileMap.put("PARENTID", fileRowMap.getString("PLPARENTID")); + fileMap.put("name", fileRowMap.getString("PLNAME")); + fileMap.put("PLMETHODID", fileRowMap.getString("PLMETHODID")); + fileMap.put("PUBDATETIME", fileRowMap.getString("PUBDATETIME")); + fileMap.put("path", path); + fileMap.put("ORDERINDEX", fileRowMap.getString("PLORDERINDEX")); + fileMap.put("TLEVEL", fileRowMap.getString("PLLEVEL")); + fileMap.put("nodeType", nodeType); + if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileMap.put("fileType", "processFile"); + } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null == fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { + // && fileRowMap.getString("POLICYTYPE").equals("regulation") + fileMap.put("fileType", "policyFile"); + } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileMap.put("fileType", "guideFile"); + } else if (fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileMap.put("fileType", "formFile"); + } + fileMaps.add(fileMap); } - path = "./w"+"?"+"cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open"+"&"+"uuid="+fileRowMap.getString("FILEID")+"&"+"sid="+sid+"&"+"taskId="+taskId; - nodeType = "file"; - fileMap.put("ID", fileRowMap.getString("FILEID")); - fileMap.put("PARENTID", fileRowMap.getString("PLPARENTID")); - fileMap.put("name", fileRowMap.getString("PLNAME")); - fileMap.put("PLMETHODID", fileRowMap.getString("PLMETHODID")); - fileMap.put("PUBDATETIME", fileRowMap.getString("PUBDATETIME")); - fileMap.put("path", path); - fileMap.put("ORDERINDEX", fileRowMap.getString("PLORDERINDEX")); - fileMap.put("TLEVEL", fileRowMap.getString("PLLEVEL")); - fileMap.put("nodeType", nodeType); - if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { - fileMap.put("fileType", "processFile"); - } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null==fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { - // && fileRowMap.getString("POLICYTYPE").equals("regulation") - fileMap.put("fileType", "policyFile"); - } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { - fileMap.put("fileType", "guideFile"); - } else if (fileRowMap.getString("PLMETHODID").equals("data.form")) { - fileMap.put("fileType", "formFile"); - } - fileMaps.add(fileMap); + List fileTreeNodes = TreeUtil.buildTree("1", fileMaps, null, "frame", null, null); + ro.put("fileMaps", fileTreeNodes); + System.err.println("============fileMaps============" + fileMaps); + System.err.println("============fileTreeNodes==========" + fileTreeNodes); + return ro.toString(); + } else { + ro.ok("暂无文件"); + fileMaps = new ArrayList<>(); + ro.put("fileMaps", fileMaps); + return ro.toString(); } - List fileTreeNodes = TreeUtil.buildTree("1",fileMaps,null,"frame",null,null); - ro.put("fileMaps",fileTreeNodes); - System.err.println("============fileMaps============"+fileMaps); - System.err.println("============fileTreeNodes=========="+fileTreeNodes); - return ro.toString(); } else { - ro.ok("暂无文件"); + ro.ok("无效架构"); fileMaps = new ArrayList<>(); - ro.put("fileMaps",fileMaps); + ro.put("fileMaps", fileMaps); return ro.toString(); } } else { - ro.ok("无效架构"); - fileMaps = new ArrayList<>(); - ro.put("fileMaps",fileMaps); - return ro.toString(); + ro.ok("未传入有效架构ID"); } - } else { - ro.ok("未传入有效架构ID"); + + return ro.toString(); } - - return ro.toString(); - } + } diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/GetNodesUtil.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/GetNodesUtil.java index 60db997a..73ff617d 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/GetNodesUtil.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/util/GetNodesUtil.java @@ -82,7 +82,7 @@ public class GetNodesUtil { sqlParams = new Object[]{fileID}; RowMap parentFile = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams); if (null!=parentFile && !parentFile.isEmpty()) { - if (parentFile.getInt("FRAMELEVEL")<=3) { + if (parentFile.getInt("FRAMELEVEL")<=4) { fileIDMaps.add(parentFile); if (parentFile.getInt("FRAMELEVEL")>1) { fileID = parentFile.getString("FRAMEPARENTID");