fix(用例管理): 成员类型字段回显问题
This commit is contained in:
parent
7d9147e8e2
commit
10fb5fead9
|
@ -470,16 +470,15 @@ public class FunctionalCaseService {
|
||||||
customFields.forEach(item -> {
|
customFields.forEach(item -> {
|
||||||
if (StringUtils.equalsAnyIgnoreCase(item.getType(), CustomFieldType.MEMBER.name(), CustomFieldType.MULTIPLE_MEMBER.name())) {
|
if (StringUtils.equalsAnyIgnoreCase(item.getType(), CustomFieldType.MEMBER.name(), CustomFieldType.MULTIPLE_MEMBER.name())) {
|
||||||
item.setOptions(memberCustomOption);
|
item.setOptions(memberCustomOption);
|
||||||
} else {
|
};
|
||||||
FunctionalCaseCustomField caseCustomField = functionalCaseCustomFieldService.getCustomField(item.getFieldId(), functionalCase.getId());
|
FunctionalCaseCustomField caseCustomField = functionalCaseCustomFieldService.getCustomField(item.getFieldId(), functionalCase.getId());
|
||||||
Optional.ofNullable(caseCustomField).ifPresentOrElse(customField -> {
|
Optional.ofNullable(caseCustomField).ifPresentOrElse(customField -> {
|
||||||
item.setDefaultValue(customField.getValue());
|
item.setDefaultValue(customField.getValue());
|
||||||
if (Translator.get("custom_field.functional_priority").equals(item.getFieldName())) {
|
if (Translator.get("custom_field.functional_priority").equals(item.getFieldName())) {
|
||||||
functionalCaseDetailDTO.setFunctionalPriority(customField.getValue());
|
functionalCaseDetailDTO.setFunctionalPriority(customField.getValue());
|
||||||
}
|
}
|
||||||
}, () -> {
|
}, () -> {
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
functionalCaseDetailDTO.setCustomFields(customFields);
|
functionalCaseDetailDTO.setCustomFields(customFields);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue