涉密文件销毁,统计

master
20918 11 months ago
parent 2dfe15d3c9
commit b5e911b59c

@ -92,16 +92,17 @@ public class SysUsernumController extends BaseController {
*/ */
@RequiresPermissions("system:usernum:detail") @RequiresPermissions("system:usernum:detail")
@GetMapping("/print/{deptId}") @GetMapping("/print/{deptId}")
public String print(@PathVariable("deptId")String deptId, SysUser user,ModelMap mmap) public String print(@PathVariable("deptId")Long deptId, SysUser user,ModelMap mmap)
{ {
List<SysUser> sysUsers = userService.selectUserList(user); List<SysUser> sysUsers = userService.selectUserList(user);
List<SysUser> list = new ArrayList<>(); List<SysUser> list = new ArrayList<>();
for (SysUser User : sysUsers){ for (SysUser User : sysUsers){
if (User.getDept().getDeptId().equals(deptId)){ if (User.getDept().getDeptName().equals(deptId.toString())){
list.add(User); list.add(User);
} }
} }
mmap.put("list", list); mmap.put("list", list);
mmap.put("dept",deptService.selectDeptById(deptId));
mmap.put("sysuser",getSysUser()); mmap.put("sysuser",getSysUser());
return prefix + "/print"; return prefix + "/print";
} }

Loading…
Cancel
Save