From a488bb9bfe61dd01ecc34ab4bf52306c60923349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E4=B8=9C=E5=BC=BA?= <1559301693@qq.com> Date: Sun, 27 Jul 2025 11:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ID=E6=98=AF=E5=90=A6=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processlist/web/PALRepositoryListWeb.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/web/PALRepositoryListWeb.java b/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/web/PALRepositoryListWeb.java index 8d10c74c..9e8e2f21 100644 --- a/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/web/PALRepositoryListWeb.java +++ b/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/web/PALRepositoryListWeb.java @@ -49,6 +49,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import com.alipay.remoting.util.StringUtils; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.HSSFFont; @@ -1529,10 +1530,15 @@ public class PALRepositoryListWeb extends ActionWeb { int parentNameCellIndex = 0; for (int j = 0; j < tempArr.size(); j++) { - HSSFCell attrCell = row.createCell(++cellIndex); - String attrCellValue = ""; JSONObject config = tempArr.getJSONObject(j); String propId = config.getString("id"); + // 当idVisible为false时,跳过group_id和file_id列 + if (!idVisible && (StringUtils.isNotBlank(propId) && ("group_id".equals(propId) || "file_id".equals(propId)))) { + continue; + } + + HSSFCell attrCell = row.createCell(++cellIndex); + String attrCellValue = ""; // 伊利定制化需求23-01-05 if ("status".equals(propId)){ @@ -1637,6 +1643,12 @@ public class PALRepositoryListWeb extends ActionWeb { result.add("版本号"); // excel表格扩展字段 for (int i = 0; i < tableHeadConfigArr.size(); i++) { + if (!idVisible){ + String id = tableHeadConfigArr.getJSONObject(i).getString("id"); + if (StringUtils.isNotBlank( id)&&("group_id".equals( id)||"file_id".equals( id))){ + continue; + } + } result.add(tableHeadConfigArr.getJSONObject(i).getString("name")); if ("status".equals(tableHeadConfigArr.getJSONObject(i).getString("id"))){ result.add("上级名称");