制度手册查询相关文件、支持文件获取数据修改

This commit is contained in:
zhal 2023-11-03 17:03:43 +08:00
parent 67dcd110ba
commit 44a8724d10
3 changed files with 24 additions and 3 deletions

View File

@ -709,8 +709,18 @@ public class OutputWordUtil {
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
PALRepositoryModel model = PALRepositoryCache.getCache().get(relationFileId);
if (model != null) {
String name = null;
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
if (models != null && models.size() > 0) {
for(PALRepositoryModel oneModel:models){
if(oneModel.isUse()==true){
name=oneModel.getName();
}
}
}
count++;
String name = model.getName();
//String name = model.getName();
JSONObject tmp = new JSONObject();
tmp.put("name", name);
tmp.put("desc", count);
@ -924,7 +934,19 @@ public class OutputWordUtil {
PALRepositoryModel model = PALRepositoryCache.getCache().get(relationFileId);
if (model != null) {
index++;
String name = model.getName();
String name = null;
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
if (models != null && models.size() > 0) {
for(PALRepositoryModel oneModel:models){
if(oneModel.isUse()==true){
name=oneModel.getName();
}
}
}
//String name = model.getName();
JSONObject tmp = new JSONObject();
tmp.put("name", name);
tmp.put("desc", index);

View File

@ -1212,7 +1212,6 @@ public class DesignerRelationShapeWeb extends ActionWeb {
// }
//
// }
System.out.println("jsonArray=========" + jsonArray);
return jsonArray.toString();
}