涉密人员统计打印

master
dshclm 11 months ago
parent e514dcba96
commit 814bff070e

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

@ -110,7 +110,7 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; 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(''); } return actions.join(''); }
}] }]
}; };

Loading…
Cancel
Save