fix(测试跟踪): 功能用例导入文本类型的自定义字段失败

--bug=1020167 --user=陈建星 【测试跟踪】功能用例-导入更新-自定义字段未导入成功 https://www.tapd.cn/55049933/s/1303212
This commit is contained in:
chenjianxing 2022-11-23 18:19:10 +08:00 committed by jianxing
parent a43e3a84a7
commit 6164a2a632
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
if (customFieldDao != null) {
CustomFieldResourceDTO customFieldResource = new CustomFieldResourceDTO();
customFieldResource.setFieldId(customFieldDao.getId());
if (textFieldSet.contains(customFieldDao.getId())) {
if (textFieldSet.contains(k)) {
customFieldResource.setTextValue(v.toString());
} else {
customFieldResource.setValue(JSON.toJSONString(v));