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 a2e203d33f
commit 57bc27b011
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) { if (customFieldDao != null) {
CustomFieldResourceDTO customFieldResource = new CustomFieldResourceDTO(); CustomFieldResourceDTO customFieldResource = new CustomFieldResourceDTO();
customFieldResource.setFieldId(customFieldDao.getId()); customFieldResource.setFieldId(customFieldDao.getId());
if (textFieldSet.contains(customFieldDao.getId())) { if (textFieldSet.contains(k)) {
customFieldResource.setTextValue(v.toString()); customFieldResource.setTextValue(v.toString());
} else { } else {
customFieldResource.setValue(JSON.toJSONString(v)); customFieldResource.setValue(JSON.toJSONString(v));