Compare commits
No commits in common. "24b8bef4781b0241c4f5959ac72fd86401808a16" and "241c255ae0d716ab0b7a6b4dc1e89aa9696e8aa3" have entirely different histories.
24b8bef478
...
241c255ae0
@ -1,15 +1,12 @@
|
||||
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.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.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
|
||||
import com.actionsoft.bpms.server.UserContext;
|
||||
import com.actionsoft.i18n.I18nRes;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.awspaas.user.apps.nqms.portal.indexpage.constant.Constants;
|
||||
import com.awspaas.user.apps.nqms.portal.indexpage.constant.PalCategoryEnum;
|
||||
@ -549,16 +546,16 @@ public class IndexService {
|
||||
//文件编号
|
||||
String fileNo = getFileProper(id, "file_number");
|
||||
//发布部门
|
||||
List<DesignerShapeRelationModel> relationModels = DesignerShapeRelationCache.getByFileId(id, "Issuing_department");
|
||||
Set<String> dutyDeptSet = new HashSet<>();
|
||||
// 是否有发布部门的文件属性【可能会有多个值】
|
||||
if (relationModels != null && relationModels.size() > 0) {
|
||||
for (DesignerShapeRelationModel relationModel : relationModels) {
|
||||
JSONObject relationObj = JSONObject.parseObject(relationModel.getRelationShapeText());
|
||||
dutyDeptSet.add(relationObj.getString("name"));
|
||||
String dutyDept = getFileProper(id, "Issuing_department");
|
||||
if (StringUtils.isNotEmpty(dutyDept)) {
|
||||
try {
|
||||
JSONObject jsonObject = JSONObject.parseObject(dutyDept);
|
||||
dutyDept = jsonObject.getString("shapeText");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.out.println("发布部门非JSON格式,转化失败,显示原值。文件ID:" + id);
|
||||
}
|
||||
}
|
||||
String dutyDept = String.join(";",dutyDeptSet);
|
||||
//流程架构L1
|
||||
String processL1 = getFileProper(id, "Process_Architecture_L1");
|
||||
//流程架构L2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user