@Controller @RequestMapping(value="admin/coreuser") public class CoreUserController extends BaseController
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreUserService |
coreUserService |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreUserController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(CoreUser user) |
RetVo |
audituser(java.util.Map<java.lang.String,java.lang.Object> params)
审核用户
|
RetVo |
copyto(java.util.Map<java.lang.String,java.lang.String> map)
用户权限拷贝
|
RetVo |
forgetPsw(java.util.Map<java.lang.String,java.lang.Object> map)
忘记密码重新设置
|
RetVo |
getUserByOrgId(java.util.Map<java.lang.String,java.lang.Object> map) |
java.lang.String |
index(javax.servlet.http.HttpServletRequest request) |
RetVo |
modify(CoreUser coreUser) |
RetVo |
modifycheckbyflag(CoreUser coreUser,
java.lang.String flag)
修改用户信息,校验合法性,使用需注意
|
RetVo |
modifyCurrUserinfo(CoreUser coreUser,
java.lang.String flag)
修改当前用户的信息
只能是自己改自己的.不能修改别人的.
|
RetVo |
modifyDept(java.util.Map<java.lang.String,java.lang.Object> params)
修改用户部门
|
RetVo |
modifyPassword(CoreUser coreUser)
当前用户,修改用户密码
|
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
querycuruserinfo()
获取当前用户信息
|
RetPageVo |
querydeptuser(java.util.Map<java.lang.String,java.lang.Object> params)
查询部门下的用户
|
RetPageVo |
queryunaudit(java.util.Map<java.lang.String,java.lang.Object> params)
查询未审核用户
|
RetVo |
remove(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
resetPw(java.util.ArrayList<CoreUser> listUser)
重置密码
|
RetPageVo |
selectUsersByDeptRole(java.util.Map<java.lang.String,java.lang.Object> params) |
java.lang.String |
unaudit(javax.servlet.http.HttpServletRequest request)
查询未审核的人员
|
RetVo |
upload(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
上传头像
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@Autowired CoreUserService coreUserService
@RequestMapping(value="/", method=GET) public java.lang.String index(javax.servlet.http.HttpServletRequest request)
@ResponseBody @RequestMapping(value="modify", method=POST) public RetVo modify(@RequestBody CoreUser coreUser) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="modifyCurrUserinfo", method=POST) public RetVo modifyCurrUserinfo(@RequestBody CoreUser coreUser, @RequestParam(value="flag",defaultValue="1") java.lang.String flag) throws java.lang.Exception
coreUser
- 用户实体flag
- 是否内存中更新当前用户的信息java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="add", method=PUT) public RetVo add(@RequestBody CoreUser user) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="remove", method=DELETE) public RetVo remove(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="query", method=POST) public RetPageVo query(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="querydeptuser", method=POST) public RetPageVo querydeptuser(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 查询的参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="queryusersbydeptrole", method=POST) public RetPageVo selectUsersByDeptRole(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="querycuruserinfo", method=POST) @Transactional(propagation=REQUIRED) public RetVo querycuruserinfo()
@ResponseBody @RequestMapping(value="modifycheckbyflag", method=POST) public RetVo modifycheckbyflag(@RequestBody CoreUser coreUser, @RequestParam(value="flag",defaultValue="0") java.lang.String flag) throws java.lang.Exception
flag
- 为 0 不校验,为1校验coreUser
- 用户实体java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="upload", method=POST) public RetVo upload(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
params
- 上传参数maprequest
- 请求对象response
- 响应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="modifypassword", method=POST) public RetVo modifyPassword(@RequestBody CoreUser coreUser) throws java.lang.Exception
coreUser
- 用户实体java.lang.Exception
- 出错会抛出异常@RequestMapping(value="/unaudit", method=GET) public java.lang.String unaudit(javax.servlet.http.HttpServletRequest request)
request
- 请求对象@ResponseBody @RequestMapping(value="queryunaudit", method=POST) public RetPageVo queryunaudit(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 用户查询参数Mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="audituser", method=POST) public RetVo audituser(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 用户审核参数Mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="modifydept", method=POST) public RetVo modifyDept(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 部门数据Mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="resetPw", method=POST) public RetVo resetPw(@RequestBody java.util.ArrayList<CoreUser> listUser)
listUser
- 用户实体列表@ResponseBody @RequestMapping(value="forgetpsw", method=POST) public RetVo forgetPsw(@RequestBody java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
map
- 修改密码的map: {PSW:xxx}java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="copyto", method=POST) public RetVo copyto(@RequestBody java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.Exception
java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getUserByOrgId", method=POST) public RetVo getUserByOrgId(@RequestParam java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
java.lang.Exception