Browse Source

修改获取业务数据字典接口

huangjn 3 năm trước cách đây
mục cha
commit
57bcc7ae95

+ 2 - 2
blade-service/blade-system/src/main/java/org/springblade/system/controller/DictBizController.java

@@ -160,7 +160,7 @@ public class DictBizController extends BladeController {
 	@ApiOperationSupport(order = 8)
 	@ApiOperation(value = "获取字典", notes = "获取字典")
 	public R<List<DictBiz>> dictionary(String code) {
-		List<DictBiz> tree = dictService.getList(code);
+		List<DictBiz> tree = dictService.getList(code, "notRoot");
 		return R.data(tree);
 	}
 
@@ -171,7 +171,7 @@ public class DictBizController extends BladeController {
 	@ApiOperationSupport(order = 9)
 	@ApiOperation(value = "获取字典树", notes = "获取字典树")
 	public R<List<DictBizVO>> dictionaryTree(String code) {
-		List<DictBiz> tree = dictService.getList(code);
+		List<DictBiz> tree = dictService.getList(code, "notRoot");
 		return R.data(DictBizWrapper.build().listNodeVO(tree));
 	}