fix(测试跟踪): 缺陷管理级联自定义字段导入处理

--bug=1032255 --user=宋昌昌 【测试跟踪】缺陷管理-导入-不覆盖-选填字段不填写会导入失败 https://www.tapd.cn/55049933/s/1429202
This commit is contained in:
song-cc-rock 2023-10-20 18:21:26 +08:00 committed by 刘瑞斌
parent 71f66e76ce
commit 5ea7f3e3fb
1 changed files with 1 additions and 2 deletions

View File

@ -421,8 +421,7 @@ public class IssueExcelListener extends AnalysisEventListener<Map<Integer, Strin
BeanUtils.copyBean(customFieldItemDTO, customFieldDao);
if (StringUtils.isEmpty(v.toString())) {
if (StringUtils.equalsAnyIgnoreCase(type, CustomFieldType.MULTIPLE_MEMBER.getValue(),
CustomFieldType.MULTIPLE_SELECT.getValue(), CustomFieldType.CHECKBOX.getValue(),
CustomFieldType.CASCADING_SELECT.getValue())) {
CustomFieldType.MULTIPLE_SELECT.getValue(), CustomFieldType.CHECKBOX.getValue())) {
customFieldItemDTO.setValue("[]");
customFieldResourceDTO.setValue("[]");
} else if (StringUtils.equalsAnyIgnoreCase(type, CustomFieldType.MULTIPLE_INPUT.getValue())) {