上下游流程显示

This commit is contained in:
zhaol 2025-01-02 16:18:10 +08:00
parent 2c615471d3
commit 4a3ce050ff
2 changed files with 14 additions and 10 deletions

View File

@ -706,15 +706,14 @@ public class Report1Gener {
List<DesignerShapeRelationModel> lead_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "lead_process"); List<DesignerShapeRelationModel> lead_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "lead_process");
JSONObject _process_tr = new JSONObject();
if (lead_processRelationList.size() > 0) { if (lead_processRelationList.size() > 0) {
JSONObject lead_process_tr = new JSONObject();
StringBuilder sb =new StringBuilder(); StringBuilder sb =new StringBuilder();
for (DesignerShapeRelationModel relation : lead_processRelationList) { for (DesignerShapeRelationModel relation : lead_processRelationList) {
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId); List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
if (models != null && models.size() > 0) { if (models != null && models.size() > 0) {
for (PALRepositoryModel oneModel : models) { for (PALRepositoryModel oneModel : models) {
if (oneModel.isUse() == true) { if (oneModel.isUse() == true) {
sb.append(oneModel.getName()).append(","); sb.append(oneModel.getName()).append(",");
@ -724,13 +723,17 @@ public class Report1Gener {
} }
if(sb.length()>0){ if(sb.length()>0){
sb.deleteCharAt(sb.length() -1); sb.deleteCharAt(sb.length() -1);
_process_tr.put("name",sb.toString()); lead_process_tr.put("name",sb.toString());
_process_tr.put("type","上游流程"); lead_process_tr.put("type","上游流程");
}
if(!lead_process_tr.isEmpty()){
procedureTable.add(lead_process_tr);
} }
} }
List<DesignerShapeRelationModel> rear_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "rear_process"); List<DesignerShapeRelationModel> rear_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "rear_process");
if (rear_processRelationList.size() > 0) { if (rear_processRelationList.size() > 0) {
JSONObject rear_process_tr = new JSONObject();
StringBuilder sb =new StringBuilder(); StringBuilder sb =new StringBuilder();
for (DesignerShapeRelationModel relation : rear_processRelationList) { for (DesignerShapeRelationModel relation : rear_processRelationList) {
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
@ -745,13 +748,14 @@ public class Report1Gener {
} }
if(sb.length()>0){ if(sb.length()>0){
sb.deleteCharAt(sb.length() -1); sb.deleteCharAt(sb.length() -1);
_process_tr.put("name",sb.toString()); rear_process_tr.put("name",sb.toString());
_process_tr.put("type","下游流程"); rear_process_tr.put("type","下游流程");
}
if(!rear_process_tr.isEmpty()){
procedureTable.add(rear_process_tr);
} }
} }
if(!_process_tr.isEmpty()){
procedureTable.add(_process_tr);
}
//相关/支持文件 //相关/支持文件