|
|
|
@ -470,11 +470,47 @@ public class UserController { |
|
|
|
|
@ApiResponse(responseCode = "200", description = "成功用户列表信息") |
|
|
|
|
public List<User> selectByUserInfo17suo(User user, @RequestParam(defaultValue = "0") int pageNum, |
|
|
|
|
@RequestParam(defaultValue = "10") int pageSize) { |
|
|
|
|
//String user_idFormSession = this.getUser_idFormSession("userId");
|
|
|
|
|
//if ("sysadmin".equals(user_idFormSession)) {
|
|
|
|
|
// user.setIsSys("sysadmin");
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if ("请输入姓名...".equals(user.getUserNameForSerch())) { |
|
|
|
|
user.setUserNameForSerch(null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String searchInfo = ""; |
|
|
|
|
if (org.springframework.util.StringUtils.hasText(user.getUserNameForSerch())) { |
|
|
|
|
searchInfo = searchInfo + "姓名关键字为" + user.getUserNameForSerch() + ","; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (org.springframework.util.StringUtils.hasText(user.getDepartId())) { |
|
|
|
|
Department department = this.departmentService.selectByPrimaryKey(user.getDepartId()); |
|
|
|
|
searchInfo = searchInfo + "部门为" + department.getDeptName(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (org.springframework.util.StringUtils.hasText(user.getPost())) { |
|
|
|
|
searchInfo = searchInfo + "职务为" + user.getPost(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
user.setUserStatus(1L); |
|
|
|
|
user.setProjectSource(Constant.projectName); |
|
|
|
|
user.setProjectSource(Constant.projectName); |
|
|
|
|
user.setUserStatus(1L); |
|
|
|
|
user.setPageSize(pageSize); |
|
|
|
|
user.setPageNum(pageNum); |
|
|
|
|
return userService.selectByUserInfo17suo(user); |
|
|
|
|
List<User> userList = userService.selectByUserInfo17suo(user); |
|
|
|
|
AuditLog auditLog = new AuditLog(); |
|
|
|
|
String logName = "查询用户列表"; |
|
|
|
|
String logNameType = "用户管理"; |
|
|
|
|
//todo 登录人的用户名 userName
|
|
|
|
|
// String comments = this.getUser_idFormSession("userName") + "查询用户列表,查询条件为:" + searchInfo;
|
|
|
|
|
String comments = "查询用户列表,查询条件为:" + searchInfo; |
|
|
|
|
auditLog.setLogName(logName); |
|
|
|
|
auditLog.setLogNameType(logNameType); |
|
|
|
|
auditLog.setComments(comments); |
|
|
|
|
auditLogService.addAuditLog(auditLog); |
|
|
|
|
return userList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -681,8 +717,7 @@ public class UserController { |
|
|
|
|
String contentType = request.getContentType(); |
|
|
|
|
String comments; |
|
|
|
|
if (contentType != null && contentType.toLowerCase().startsWith("multipart/")) { |
|
|
|
|
MultipartHttpServletRequest multipartRequest |
|
|
|
|
= (MultipartHttpServletRequest)WebUtils.getNativeRequest(request, |
|
|
|
|
MultipartHttpServletRequest multipartRequest = WebUtils.getNativeRequest(request, |
|
|
|
|
MultipartHttpServletRequest.class); |
|
|
|
|
MultipartFile file = multipartRequest.getFile("multipartfile"); |
|
|
|
|
comments = request.getParameter("changeFlg"); |
|
|
|
|