Compare commits
2 Commits
241c255ae0
...
24b8bef478
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24b8bef478 | ||
|
|
d9c5116b36 |
@ -1,12 +1,15 @@
|
|||||||
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;
|
||||||
@ -546,16 +549,16 @@ public class IndexService {
|
|||||||
//文件编号
|
//文件编号
|
||||||
String fileNo = getFileProper(id, "file_number");
|
String fileNo = getFileProper(id, "file_number");
|
||||||
//发布部门
|
//发布部门
|
||||||
String dutyDept = getFileProper(id, "Issuing_department");
|
List<DesignerShapeRelationModel> relationModels = DesignerShapeRelationCache.getByFileId(id, "Issuing_department");
|
||||||
if (StringUtils.isNotEmpty(dutyDept)) {
|
Set<String> dutyDeptSet = new HashSet<>();
|
||||||
try {
|
// 是否有发布部门的文件属性【可能会有多个值】
|
||||||
JSONObject jsonObject = JSONObject.parseObject(dutyDept);
|
if (relationModels != null && relationModels.size() > 0) {
|
||||||
dutyDept = jsonObject.getString("shapeText");
|
for (DesignerShapeRelationModel relationModel : relationModels) {
|
||||||
} catch (Exception e) {
|
JSONObject relationObj = JSONObject.parseObject(relationModel.getRelationShapeText());
|
||||||
e.printStackTrace();
|
dutyDeptSet.add(relationObj.getString("name"));
|
||||||
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user