fix(测试跟踪): 功能用例导入责任人为空

--bug=1016068 --user=陈建星 【测试跟踪】导入功能用例,导入后责任人和用例等级是空的 https://www.tapd.cn/55049933/s/1229420
This commit is contained in:
chenjianxing 2022-08-22 15:03:02 +08:00 committed by f2c-ci-robot[bot]
parent 7e08350a95
commit de56491ef4
1 changed files with 3 additions and 3 deletions

View File

@ -406,11 +406,11 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
customData.put(fieldName, customFieldValidator.parse2Key(value, customField));
}
if (StringUtils.equals(fieldName, TestCaseImportFiled.STATUS.getFiledLangMap().get(Locale.SIMPLIFIED_CHINESE))) {
data.setStatus(value);
data.setStatus(customData.get(fieldName));
} else if (StringUtils.equals(fieldName, TestCaseImportFiled.PRIORITY.getFiledLangMap().get(Locale.SIMPLIFIED_CHINESE))) {
data.setPriority(value);
data.setPriority(customData.get(fieldName));
} else if (StringUtils.equals(fieldName, TestCaseImportFiled.MAINTAINER.getFiledLangMap().get(Locale.SIMPLIFIED_CHINESE))) {
data.setMaintainer(value);
data.setMaintainer(customData.get(fieldName));
}
}
}