涉密人员统计打印

master
dshclm 11 months ago
parent e514dcba96
commit 814bff070e

@ -101,13 +101,14 @@ public class SysUsernumController extends BaseController {
List<SysUser> list = new ArrayList<>();
List<SysRole> sysRoles = new ArrayList<>();
for (SysUser User : sysUsers){
List<SysUserRole> sysUserRoles = userService.selectUserRoleByUserId(User.getUserId());
for (SysUserRole UserRole : sysUserRoles){
SysRole sysRole = roleService.selectRoleById(UserRole.getRoleId());
sysRoles.add(sysRole);
}
User.setRoles(sysRoles);
if (User.getDeptId().equals(deptId)){
List<SysUserRole> sysUserRoles = userService.selectUserRoleByUserId(User.getUserId());
for (SysUserRole UserRole : sysUserRoles){
SysRole sysRole = roleService.selectRoleById(UserRole.getRoleId());
sysRoles.add(sysRole);
}
User.setRoles(sysRoles);
list.add(User);
}
}

@ -110,7 +110,7 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="print(\'' + row.deptId + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-info btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="print(\'' + row.deptId + '\')"><i class="fa fa-download"></i>打印</a> ');
return actions.join(''); }
}]
};

Loading…
Cancel
Save