From 49320306e6d292773184f944428c6b9156dc02fe Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 19 Sep 2022 14:22:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E6=A8=A1=E6=9D=BF=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E5=B1=95=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=1016830 --user=宋昌昌 【测试跟踪】缺陷模板里设置了整型字段默认值1,创建缺陷时默认显示了0 https://www.tapd.cn/55049933/s/1244852 --- .../base/mapper/ext/ExtCustomFieldTemplateMapper.java | 2 ++ .../base/mapper/ext/ExtCustomFieldTemplateMapper.xml | 7 +++++++ .../java/io/metersphere/service/CustomFieldService.java | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java index 4ba95979b7..bfda750468 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.java @@ -10,6 +10,8 @@ import java.util.List; public interface ExtCustomFieldTemplateMapper { List getCustomFieldIds(@Param("templateId") String templateId); + List getCustomFields(@Param("templateId") String templateId); + List list(@Param("request") CustomFieldTemplate request); List lisSimple(@Param("request") CustomFieldTemplate request); diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml index 7d36db607a..31a637fb71 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml @@ -7,6 +7,13 @@ from custom_field_template where custom_field_template.template_id = #{templateId} + + +