From 6a7055e9cdf8d0495bbc729b307b9dd62c17f81b Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 19 Jul 2021 18:50:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E4=BE=8B=E6=A8=A1=E7=89=88=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97=20#1005226=20--bug=3D1005226=20--us?= =?UTF-8?q?er=3D=E8=B5=B5=E5=8B=87=20=E3=80=90=E6=93=8D=E4=BD=9C=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E3=80=91-=E7=94=A8=E6=88=B7=E5=88=9B=E5=BB=BA...=20ht?= =?UTF-8?q?tps://www.tapd.cn/55049933/s/1025937?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/service/TestCaseTemplateService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java b/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java index 6cd03c8ea5..a0bf4d2777 100644 --- a/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java +++ b/backend/src/main/java/io/metersphere/service/TestCaseTemplateService.java @@ -205,6 +205,11 @@ public class TestCaseTemplateService extends TemplateBaseService { TestCaseTemplateWithBLOBs templateWithBLOBs = testCaseTemplateMapper.selectByPrimaryKey(id); if (templateWithBLOBs != null) { List columns = ReflexObjectUtil.getColumns(templateWithBLOBs, SystemReference.caseFieldColumns); + columns.forEach(item ->{ + if(item.getColumnName().equals("steps") && item.getOriginalValue().toString().equals("[{\"num\":1,\"desc\":\"\",\"result\":\"\"}]")){ + item.setOriginalValue(""); + } + }); OperatingLogDetails details = new OperatingLogDetails(JSON.toJSONString(templateWithBLOBs.getId()), null, templateWithBLOBs.getName(), templateWithBLOBs.getCreateUser(), columns); return JSON.toJSONString(details); }