风险控制表格

This commit is contained in:
zhaol 2024-11-07 21:29:43 +08:00
parent 597c5173a3
commit a70f725ee4
2 changed files with 2 additions and 4 deletions

View File

@ -792,7 +792,7 @@ public class OutputWordUtil {
JSONArray tableInfo = jsonObject.getJSONArray("table");
//看看tableInfo是什么内容如果没有内容也不用生成表格
System.out.println(">>>>>>>>>tableInfo.toString() = " + tableInfo.toString());
if(!tableInfo.isEmpty()){
if(tableInfo.size()>1){
//添加段落设置一级序列
Paragraph paragraph_risk = section.addParagraph();
ParagraphFormat paragraphFormat_risk = paragraph_risk.getFormat();
@ -1129,15 +1129,13 @@ public class OutputWordUtil {
if (relationList.size() > 0) {
for (DesignerShapeRelationModel relation : relationList) {
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
String name = null;
List<PALRepositoryModel> models = PALRepositoryCache.getByVersionId(relationFileId);
if (models != null && models.size() > 0) {
index++;
for(PALRepositoryModel oneModel:models){
if(oneModel.isUse()==true){
name=oneModel.getName();
JSONObject tmp = new JSONObject();
tmp.put("name", name);
tmp.put("name", oneModel.getName());
tmp.put("desc", index);
related_support_files.add(tmp);
}