|
@@ -21,7 +21,7 @@ public class SysDictDataServiceImpl implements SysDictDataService {
|
|
|
|
|
|
|
|
public void validateOptions(String dictType, String key) {
|
|
public void validateOptions(String dictType, String key) {
|
|
|
List<SysDictDataRes> sysDictDataRes = ApiUtils.httpSuccess(this.sysDictFeignClient::getByDictType, dictType, "failed_to_call_dictionary_table_api");
|
|
List<SysDictDataRes> sysDictDataRes = ApiUtils.httpSuccess(this.sysDictFeignClient::getByDictType, dictType, "failed_to_call_dictionary_table_api");
|
|
|
- if (sysDictDataRes.stream().noneMatch(x -> x.getLabel().equals(key))) {
|
|
|
|
|
|
|
+ if (sysDictDataRes.stream().noneMatch(x -> x.getValue().equals(key))) {
|
|
|
throw new BusinessException("not_found_value_for_current_dict");
|
|
throw new BusinessException("not_found_value_for_current_dict");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|