Commit 58346cff by wangqi

帮扶组问题导入

parent 073b5230
......@@ -71,10 +71,18 @@ public class SjBfzwhController extends BaseController
@GetMapping("/xlklist")
public TableDataInfo xlklist(SjBfzwh sjBfzwh)
{
// 获取当前登陆人
sjBfzwh.setLxr(SecurityUtils.getUserId());
// 拿到角色如果是管理员 不限制。不是管理员只能看到自己的帮扶组
List<SysRole> rolelist = SecurityUtils.getLoginUser().getUser().getRoles();
if(StringUtils.isNotEmpty(rolelist)){
for (SysRole role :rolelist){
Long roleid = role.getRoleId();
if(roleid==1||roleid==100){
sjBfzwh.setLxr(null);
}
}
}
List<SjBfzwh> list = sjBfzwhService.selectSjBfzwhList(sjBfzwh);
return getDataTable(list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment