|
|
|
@ -92,16 +92,17 @@ public class SysUsernumController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:usernum:detail")
|
|
|
|
|
@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> list = new ArrayList<>();
|
|
|
|
|
for (SysUser User : sysUsers){
|
|
|
|
|
if (User.getDept().getDeptId().equals(deptId)){
|
|
|
|
|
if (User.getDept().getDeptName().equals(deptId.toString())){
|
|
|
|
|
list.add(User);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
mmap.put("list", list);
|
|
|
|
|
mmap.put("dept",deptService.selectDeptById(deptId));
|
|
|
|
|
mmap.put("sysuser",getSysUser());
|
|
|
|
|
return prefix + "/print";
|
|
|
|
|
}
|
|
|
|
|