|
|
@@ -20,9 +20,7 @@ import com.sckw.system.model.vo.req.QueryDictTypePageReqVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.Objects;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 字典service接口
|
|
|
@@ -194,7 +192,12 @@ public class SysDictService {
|
|
|
return sysDictTypeDao.select(sysDictType);
|
|
|
}
|
|
|
|
|
|
- public List<SysDictGroupResDto> findDictTree(String type) {
|
|
|
- return remoteSystemService.queryDictGroupByType(type);
|
|
|
+ public List<SysDictGroupResDto> findDictTree(String type, String value) {
|
|
|
+ if (StringUtils.isBlank(value)) {
|
|
|
+ return remoteSystemService.queryDictGroupByType(type);
|
|
|
+ }
|
|
|
+
|
|
|
+ SysDictGroupResDto sysDictGroupResDto = remoteSystemService.queryDictGroupByTypeAndValue(type, value);
|
|
|
+ return Collections.singletonList(sysDictGroupResDto);
|
|
|
}
|
|
|
}
|