fix(测试跟踪): 功能用例导入无法填账号名称
--bug=1016463 --user=陈建星 【测试跟踪】github#17570,用例导出excel修改之后在导入会提示[责任人]必须当前项目成员,发现导入需要把责任人改成ID https://www.tapd.cn/55049933/s/1236015
This commit is contained in:
parent
6cc761c87a
commit
b55bd2eb9f
|
@ -32,8 +32,7 @@ public class CustomFieldMemberValidator extends AbstractCustomFieldValidator {
|
||||||
if (StringUtils.isBlank(value)) {
|
if (StringUtils.isBlank(value)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
long count = userIdMap.entrySet().stream().filter(e -> StringUtils.equalsAnyIgnoreCase(value,e.getKey(),e.getValue())).count();
|
if (userIdMap.containsKey(value) || userNameMap.containsKey(value)) {
|
||||||
if(count > 0){
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new CustomFieldValidateException(String.format(Translator.get("custom_field_member_tip"), customField.getName()));
|
throw new CustomFieldValidateException(String.format(Translator.get("custom_field_member_tip"), customField.getName()));
|
||||||
|
|
|
@ -17,9 +17,9 @@ public class CustomFieldMultipleMemberValidator extends CustomFieldMemberValidat
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String item : parse2Array(customField.getName(), value)) {
|
for (String item : parse2Array(customField.getName(), value)) {
|
||||||
long count = userIdMap.entrySet().stream().filter(e -> StringUtils.equalsAnyIgnoreCase(item,e.getKey(),e.getValue())).count();
|
item = item.toLowerCase();
|
||||||
if(count > 0){
|
if (!userIdMap.containsKey(item) && !userNameMap.containsKey(item)) {
|
||||||
return;
|
CustomFieldValidateException.throwException(String.format(Translator.get("custom_field_member_tip"), customField.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CustomFieldValidateException.throwException(String.format(Translator.get("custom_field_member_tip"), customField.getName()));
|
CustomFieldValidateException.throwException(String.format(Translator.get("custom_field_member_tip"), customField.getName()));
|
||||||
|
|
Loading…
Reference in New Issue