From 0463debeecfe2ff645ddac6f97fcacf42f792726 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 11 Aug 2022 18:17:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E6=A8=A1=E6=9D=BF=E5=AD=97=E6=AE=B5=E6=A0=87?= =?UTF-8?q?=E6=B3=A8=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015647 --user=宋昌昌 【测试跟踪】github#16420,测试用例模板中部分字段未标注是否为必填字段及如何填写,请优化 https://www.tapd.cn/55049933/s/1221603 --- .../excel/handler/FunctionCaseTemplateWriteHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java b/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java index 46fd0532fc..74b96044ee 100644 --- a/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java +++ b/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java @@ -120,7 +120,7 @@ public class FunctionCaseTemplateWriteHandler extends AbstractRowHeightStyleStra list = caseLevelAndStatusValueMap.get("caseStatus"); } if (!CollectionUtils.isEmpty(list)) { - Comment comment = drawingPatriarch.createCellComment(new XSSFClientAnchor(0, 0, 0, 0, index, 0, (short) 3, 1)); + Comment comment = drawingPatriarch.createCellComment(new XSSFClientAnchor(0, 0, 0, 0, index, 0, index + 3, 1)); comment.setString(new XSSFRichTextString(Translator.get("options") + JSONArray.toJSONString(list))); sheet.getRow(0).getCell(1).setCellComment(comment); }