流程手冊代码优化提交
This commit is contained in:
parent
8b602b3a47
commit
9d19fb7eae
Binary file not shown.
@ -704,55 +704,50 @@ public class Report1Gener {
|
||||
}
|
||||
}
|
||||
}*/
|
||||
JSONObject _process_tr = new JSONObject();
|
||||
|
||||
|
||||
List<DesignerShapeRelationModel> lead_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "lead_process");
|
||||
|
||||
JSONObject _process_tr = new JSONObject();
|
||||
if (lead_processRelationList.size() > 0) {
|
||||
StringBuilder sb =new StringBuilder();
|
||||
for (DesignerShapeRelationModel relation : lead_processRelationList) {
|
||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
|
||||
|
||||
if (models != null && models.size() > 0) {
|
||||
|
||||
for (PALRepositoryModel oneModel : models) {
|
||||
if (oneModel.isUse() == true) {
|
||||
StringBuilder sb =new StringBuilder();
|
||||
sb.append(oneModel.getName()).append(",");
|
||||
if(sb.length()>0){
|
||||
sb.deleteCharAt(sb.length() -1);
|
||||
}
|
||||
_process_tr.put("name",sb.toString());
|
||||
_process_tr.put("type","上游流程");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(sb.length()>0){
|
||||
sb.deleteCharAt(sb.length() -1);
|
||||
_process_tr.put("name",sb.toString());
|
||||
_process_tr.put("type","下游流程");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
List<DesignerShapeRelationModel> rear_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "rear_process");
|
||||
|
||||
if (rear_processRelationList.size() > 0) {
|
||||
StringBuilder sb =new StringBuilder();
|
||||
for (DesignerShapeRelationModel relation : rear_processRelationList) {
|
||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
|
||||
if (models != null && models.size() > 0) {
|
||||
for (PALRepositoryModel oneModel : models) {
|
||||
if (oneModel.isUse() == true) {
|
||||
StringBuilder sb =new StringBuilder();
|
||||
sb.append(oneModel.getName()).append(",");
|
||||
if(sb.length()>0){
|
||||
sb.deleteCharAt(sb.length() -1);
|
||||
}
|
||||
_process_tr.put("name",sb.toString());
|
||||
_process_tr.put("type","下游流程");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(sb.length()>0){
|
||||
sb.deleteCharAt(sb.length() -1);
|
||||
_process_tr.put("name",sb.toString());
|
||||
_process_tr.put("type","下游流程");
|
||||
}
|
||||
}
|
||||
if(!_process_tr.isEmpty()){
|
||||
@ -760,7 +755,6 @@ public class Report1Gener {
|
||||
}
|
||||
|
||||
|
||||
|
||||
//相关/支持文件
|
||||
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "related_support_files");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user