hr~ 2 일 전
부모
커밋
5a4a4cdd9f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      product-web/src/main/java/com/poyee/service/impl/SysDictDataServiceImpl.java

+ 1 - 1
product-web/src/main/java/com/poyee/service/impl/SysDictDataServiceImpl.java

@@ -21,7 +21,7 @@ public class SysDictDataServiceImpl implements SysDictDataService {
 
     public void validateOptions(String dictType, String key) {
         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");
         }
     }