模型相关/支持文件数据过滤|制度手册相关/支持文件生成代码调整
This commit is contained in:
parent
e163004cee
commit
ed772c66b8
Binary file not shown.
@ -1031,8 +1031,8 @@ public class OutputWordUtil {
|
||||
|
||||
|
||||
//支持文件
|
||||
JSONArray supportfiles = new JSONArray(); //组织职责Table
|
||||
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "support_files");
|
||||
JSONArray related_support_files = new JSONArray(); //组织职责Table
|
||||
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "related_support_files");
|
||||
|
||||
relationList.sort(Comparator.comparing(DesignerShapeRelationModel::getShapeText));
|
||||
|
||||
@ -1053,7 +1053,7 @@ public class OutputWordUtil {
|
||||
JSONObject tmp = new JSONObject();
|
||||
tmp.put("name", name);
|
||||
tmp.put("desc", index);
|
||||
supportfiles.add(tmp);
|
||||
related_support_files.add(tmp);
|
||||
}
|
||||
|
||||
|
||||
@ -1073,10 +1073,10 @@ public class OutputWordUtil {
|
||||
|
||||
//定义表格数据
|
||||
String[] header = {"序号", "文件名称"};
|
||||
String[][] strArray2 = new String[supportfiles.size()][];
|
||||
String[][] strArray2 = new String[related_support_files.size()][];
|
||||
List<String[]> list = new LinkedList<>();
|
||||
for (int i = 0; i < supportfiles.size(); i++) {
|
||||
JSONObject jsonObject = supportfiles.getJSONObject(i);
|
||||
for (int i = 0; i < related_support_files.size(); i++) {
|
||||
JSONObject jsonObject = related_support_files.getJSONObject(i);
|
||||
String[] strArray = new String[2];
|
||||
strArray[0] = jsonObject.getString("desc").toString();
|
||||
strArray[1] = jsonObject.getString("name").toString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user