|
@@ -12,6 +12,7 @@ import com.xy.dto.SysDeptDto;
|
|
|
import com.xy.dto.SysDeptListDto;
|
|
|
import com.xy.entity.SysDept;
|
|
|
import com.xy.entity.SysDeptRelation;
|
|
|
+import com.xy.entity.SysDeptRole;
|
|
|
import com.xy.entity.SysUserDept;
|
|
|
import com.xy.mapper.SysDeptMapper;
|
|
|
import com.xy.redis.RedisCache;
|
|
@@ -167,4 +168,17 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
|
|
|
return TreeUtil.build(collect, parentId);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取部门关联角色ID(回显显用)", notes = "获取部门关联角色ID(回显显用)")
|
|
|
+ @PostMapping("getRefRoleIds")
|
|
|
+ public R<List<Long>> getRefRoleIds(@Valid @RequestBody SysDeptDto.QueryRoleDTO dto) {
|
|
|
+ Long sysId = dto.getSysId();
|
|
|
+ sysDeptRoleService.list(
|
|
|
+ Wrappers.<SysDeptRole>lambdaQuery().
|
|
|
+ eq(SysDeptRole::getDeptId, dto.getId()).
|
|
|
+ eq(sysId != null, SysDeptRole::getSysId, sysId));
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|