Browse Source

🎉 2.0.0.RC6

test
smallchill 6 years ago
parent
commit
fd5e787070
  1. 2
      blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java
  2. 2
      blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java
  3. 5
      blade-service/blade-system/src/main/java/org/springblade/system/controller/TenantController.java
  4. 4
      doc/sql/bladex-saber-mysql.sql
  5. 2
      script/docker/docker-compose.yml

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

@ -84,7 +84,7 @@ public class DeptController extends BladeController {
*/ */
@GetMapping("/tree") @GetMapping("/tree")
@ApiOperation(value = "树形结构", notes = "树形结构", position = 3) @ApiOperation(value = "树形结构", notes = "树形结构", position = 3)
public R<List<DeptVO>> tree(String tenantCode) { public R<List<DeptVO>> tree(@RequestParam(defaultValue = BladeConstant.ADMIN_TENANT_CODE) String tenantCode) {
List<DeptVO> tree = deptService.tree(tenantCode); List<DeptVO> tree = deptService.tree(tenantCode);
return R.data(tree); return R.data(tree);
} }

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

@ -82,7 +82,7 @@ public class RoleController extends BladeController {
*/ */
@GetMapping("/tree") @GetMapping("/tree")
@ApiOperation(value = "树形结构", notes = "树形结构", position = 3) @ApiOperation(value = "树形结构", notes = "树形结构", position = 3)
public R<List<RoleVO>> tree(String tenantCode) { public R<List<RoleVO>> tree(@RequestParam(defaultValue = BladeConstant.ADMIN_TENANT_CODE) String tenantCode) {
List<RoleVO> tree = roleService.tree(tenantCode); List<RoleVO> tree = roleService.tree(tenantCode);
return R.data(tree); return R.data(tree);
} }

5
blade-service/blade-system/src/main/java/org/springblade/system/controller/TenantController.java

@ -81,8 +81,9 @@ public class TenantController extends BladeController {
*/ */
@GetMapping("/select") @GetMapping("/select")
@ApiOperation(value = "下拉数据源", notes = "传入tenant", position = 3) @ApiOperation(value = "下拉数据源", notes = "传入tenant", position = 3)
public R<List<Tenant>> select(Tenant tenant) { public R<List<Tenant>> select(Tenant tenant, BladeUser bladeUser) {
List<Tenant> list = tenantService.list(Condition.getQueryWrapper(tenant)); QueryWrapper<Tenant> queryWrapper = Condition.getQueryWrapper(tenant);
List<Tenant> list = tenantService.list((!bladeUser.getTenantCode().equals(BladeConstant.ADMIN_TENANT_CODE)) ? queryWrapper.lambda().eq(Tenant::getTenantCode, bladeUser.getTenantCode()) : queryWrapper);
return R.data(list); return R.data(list);
} }

4
doc/sql/bladex-saber-mysql.sql

File diff suppressed because one or more lines are too long

2
script/docker/docker-compose.yml

@ -3,7 +3,7 @@ services:
blade-nginx: blade-nginx:
image: nginx:stable-alpine-perl image: nginx:stable-alpine-perl
hostname: "consul-nginx" hostname: "blade-nginx"
ports: ports:
- 8500:8500 - 8500:8500
- 88:88 - 88:88

Loading…
Cancel
Save