|
|
|
@ -140,6 +140,7 @@ public class DeptController extends BladeController {
|
|
|
|
|
public R submit(@Valid @RequestBody Dept dept) { |
|
|
|
|
if (deptService.submit(dept)) { |
|
|
|
|
CacheUtil.clear(SYS_CACHE); |
|
|
|
|
CacheUtil.clear(SYS_CACHE, Boolean.FALSE); |
|
|
|
|
// 返回懒加载树更新节点所需字段
|
|
|
|
|
Kv kv = Kv.create().set("id", String.valueOf(dept.getId())).set("tenantId", dept.getTenantId()) |
|
|
|
|
.set("deptCategoryName", DictCache.getValue(DictEnum.ORG_CATEGORY, dept.getDeptCategory())); |
|
|
|
@ -156,6 +157,7 @@ public class DeptController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "删除", notes = "传入ids") |
|
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
|
CacheUtil.clear(SYS_CACHE); |
|
|
|
|
CacheUtil.clear(SYS_CACHE, Boolean.FALSE); |
|
|
|
|
return R.status(deptService.removeDept(ids)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|