上下游流程查询优化
This commit is contained in:
parent
4de2da1eac
commit
0fbd7194c4
Binary file not shown.
@ -659,8 +659,9 @@ public class Report1Gener {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: handle exception
|
// TODO: handle exception
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
//上下游流程
|
//上下游流程
|
||||||
List<PALRepositoryPropertyModel> repositoryPropertyList = PALRepositoryPropertyCache.getPropertyByPlId(repositoryModel.getId());
|
/*List<PALRepositoryPropertyModel> repositoryPropertyList = PALRepositoryPropertyCache.getPropertyByPlId(repositoryModel.getId());
|
||||||
if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) {
|
if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) {
|
||||||
for (PALRepositoryPropertyModel palRepositoryPropertyModel : repositoryPropertyList) {
|
for (PALRepositoryPropertyModel palRepositoryPropertyModel : repositoryPropertyList) {
|
||||||
JSONObject _process_tr = new JSONObject();
|
JSONObject _process_tr = new JSONObject();
|
||||||
@ -701,10 +702,65 @@ public class Report1Gener {
|
|||||||
if(!_process_tr.isEmpty()){
|
if(!_process_tr.isEmpty()){
|
||||||
procedureTable.add(_process_tr);
|
procedureTable.add(_process_tr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
JSONObject _process_tr = new JSONObject();
|
||||||
|
|
||||||
|
List<DesignerShapeRelationModel> lead_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "lead_process");
|
||||||
|
|
||||||
|
if (lead_processRelationList.size() > 0) {
|
||||||
|
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","上游流程");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
List<DesignerShapeRelationModel> rear_processRelationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "rear_process");
|
||||||
|
|
||||||
|
if (rear_processRelationList.size() > 0) {
|
||||||
|
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(!_process_tr.isEmpty()){
|
||||||
|
procedureTable.add(_process_tr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//相关/支持文件
|
//相关/支持文件
|
||||||
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "related_support_files");
|
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "related_support_files");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user