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");
         }
     }