fix(测试跟踪): 功能用例导入责任人有大写字符导入失败

--bug=1016463 --user=陈建星 【测试跟踪】github#17570,用例导出excel修改之后在导入会提示[责任人]必须当前项目成员,发现导入需要把责任人改成ID https://www.tapd.cn/55049933/s/1236015
This commit is contained in:
chenjianxing 2022-09-08 14:39:55 +08:00 committed by jianxing
parent f8666ffe7c
commit 3fdeea98d3
1 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ public class CustomFieldMemberValidator extends AbstractCustomFieldValidator {
if (StringUtils.isBlank(value)) {
return;
}
value = value.toLowerCase();
if (userIdMap.containsKey(value) || userNameMap.containsKey(value)) {
return;
}
@ -44,8 +45,8 @@ public class CustomFieldMemberValidator extends AbstractCustomFieldValidator {
if (userIdMap.containsKey(keyOrValue)) {
return userIdMap.get(keyOrValue);
}
if (userNameMap.containsKey(keyOrValue.toLowerCase())) {
return userNameMap.get(keyOrValue.toLowerCase());
if (userNameMap.containsKey(keyOrValue)) {
return userNameMap.get(keyOrValue);
}
return keyOrValue;
}