|
@@ -24,6 +24,7 @@ import org.springblade.core.boot.ctrl.BladeController;
|
|
|
import org.springblade.core.cache.utils.CacheUtil;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
|
+import org.springblade.core.secure.BladeUser;
|
|
|
import org.springblade.core.tenant.annotation.NonDS;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.system.entity.DictBiz;
|
|
@@ -159,8 +160,8 @@ public class DictBizController extends BladeController {
|
|
|
@GetMapping("/dictionary")
|
|
|
@ApiOperationSupport(order = 8)
|
|
|
@ApiOperation(value = "获取字典", notes = "获取字典")
|
|
|
- public R<List<DictBiz>> dictionary(String code) {
|
|
|
- List<DictBiz> tree = dictService.getList(code, "notRoot");
|
|
|
+ public R<List<DictBiz>> dictionary(String code, BladeUser user) {
|
|
|
+ List<DictBiz> tree = dictService.getList(code, "notRoot",user.getTenantId());
|
|
|
return R.data(tree);
|
|
|
}
|
|
|
|
|
@@ -170,8 +171,8 @@ public class DictBizController extends BladeController {
|
|
|
@GetMapping("/dictionary-tree")
|
|
|
@ApiOperationSupport(order = 9)
|
|
|
@ApiOperation(value = "获取字典树", notes = "获取字典树")
|
|
|
- public R<List<DictBizVO>> dictionaryTree(String code) {
|
|
|
- List<DictBiz> tree = dictService.getList(code, "notRoot");
|
|
|
+ public R<List<DictBizVO>> dictionaryTree(String code, BladeUser user) {
|
|
|
+ List<DictBiz> tree = dictService.getList(code, "notRoot",user.getTenantId());
|
|
|
return R.data(DictBizWrapper.build().listNodeVO(tree));
|
|
|
}
|
|
|
|