Compare commits

..

No commits in common. "24b8bef4781b0241c4f5959ac72fd86401808a16" and "241c255ae0d716ab0b7a6b4dc1e89aa9696e8aa3" have entirely different histories.

View File

@ -1,15 +1,12 @@
package com.awspaas.user.apps.nqms.portal.indexpage.service; package com.awspaas.user.apps.nqms.portal.indexpage.service;
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache; import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache;
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.PALRepositoryPropertyModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel;
import com.actionsoft.bpms.bo.engine.BO; import com.actionsoft.bpms.bo.engine.BO;
import com.actionsoft.bpms.commons.mvc.view.ResponseObject; import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
import com.actionsoft.bpms.server.UserContext; import com.actionsoft.bpms.server.UserContext;
import com.actionsoft.i18n.I18nRes; import com.actionsoft.i18n.I18nRes;
import com.actionsoft.sdk.local.SDK; import com.actionsoft.sdk.local.SDK;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.awspaas.user.apps.nqms.portal.indexpage.constant.Constants; import com.awspaas.user.apps.nqms.portal.indexpage.constant.Constants;
import com.awspaas.user.apps.nqms.portal.indexpage.constant.PalCategoryEnum; import com.awspaas.user.apps.nqms.portal.indexpage.constant.PalCategoryEnum;
@ -271,13 +268,13 @@ public class IndexService {
if (!name.startsWith(String.valueOf(index))) { if (!name.startsWith(String.valueOf(index))) {
continue; continue;
} }
if (zllSet.contains(String.valueOf(index))) { if (zllSet.contains(String.valueOf( index))) {
group = "strategy"; group = "strategy";
} else if (yylSet.contains(String.valueOf(index))) { } else if (yylSet.contains(String.valueOf( index))) {
group = "Operations"; group = "Operations";
} else if (zclSet.contains(String.valueOf(index))) { } else if (zclSet.contains(String.valueOf( index))) {
group = "SupportAndServices"; group = "SupportAndServices";
} else { }else {
continue; continue;
} }
if (!"1.0".equals(version) && StringUtils.isNotBlank(versionId)) { if (!"1.0".equals(version) && StringUtils.isNotBlank(versionId)) {
@ -549,16 +546,16 @@ public class IndexService {
//文件编号 //文件编号
String fileNo = getFileProper(id, "file_number"); String fileNo = getFileProper(id, "file_number");
//发布部门 //发布部门
List<DesignerShapeRelationModel> relationModels = DesignerShapeRelationCache.getByFileId(id, "Issuing_department"); String dutyDept = getFileProper(id, "Issuing_department");
Set<String> dutyDeptSet = new HashSet<>(); if (StringUtils.isNotEmpty(dutyDept)) {
// 是否有发布部门的文件属性可能会有多个值 try {
if (relationModels != null && relationModels.size() > 0) { JSONObject jsonObject = JSONObject.parseObject(dutyDept);
for (DesignerShapeRelationModel relationModel : relationModels) { dutyDept = jsonObject.getString("shapeText");
JSONObject relationObj = JSONObject.parseObject(relationModel.getRelationShapeText()); } catch (Exception e) {
dutyDeptSet.add(relationObj.getString("name")); e.printStackTrace();
System.out.println("发布部门非JSON格式转化失败显示原值。文件ID" + id);
} }
} }
String dutyDept = String.join(";",dutyDeptSet);
//流程架构L1 //流程架构L1
String processL1 = getFileProper(id, "Process_Architecture_L1"); String processL1 = getFileProper(id, "Process_Architecture_L1");
//流程架构L2 //流程架构L2