| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.util.DigestUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | |
| | | } |
| | | return Result.fail(map.get("info")); |
| | | } |
| | | |
| | | @ValueClassify("用户管理") |
| | | @ApiOperation(value = "获取用户列表") |
| | | @PostMapping("/selectUserList") |
| | |
| | | UserPageDto user = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), UserPageDto.class); |
| | | return Result.success(userService.selectUserList(page, user)); |
| | | } |
| | | |
| | | @ValueClassify("用户管理") |
| | | @ApiOperation(value = "资源要求-人员总览") |
| | | @PostMapping("/selectPersonnelOverview") |
| | | public Result selectPersonnelOverview(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | UserPageDto user = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), UserPageDto.class); |
| | | return Result.success(userService.selectPersonnelOverview(page, user)); |
| | | } |
| | | |
| | | @ValueClassify("用户管理") |
| | | @ApiOperation(value = "修改用户信息") |
| | | @PostMapping("/updateUser") |
| | |
| | | public Result<?> getUserMenu() { |
| | | return Result.success(userService.getUserMenu()); |
| | | } |
| | | @ValueClassify("用户管理") |
| | | |
| | | @ValueClassify("客户管理") |
| | | @ApiOperation(value = "获取客户列表") |
| | | @PostMapping("/selectCustomPageList") |
| | | public Result selectCustomPageList(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | Custom custom = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), Custom.class); |
| | | return Result.success(customService.selectCustomPageList(page, custom)); |
| | | } |
| | | @ValueClassify("用户管理") |
| | | @ValueClassify("客户管理") |
| | | @ApiOperation(value = "删除客户信息") |
| | | @PostMapping("/delCustomById") |
| | | public Result<?> delCustomById(Integer id) { |
| | | return Result.success(customService.delCustomById(id)); |
| | | } |
| | | @ValueClassify("用户管理") |
| | | @ValueClassify("客户管理") |
| | | @ApiOperation(value = "新增客户信息") |
| | | @PostMapping("/addCustom") |
| | | public Result<?> addCustom(@RequestBody Custom custom) { |
| | |
| | | public Result<?> upUserPassword(String oldPassword, String newPassWord){ |
| | | return Result.success(userService.upUserPassword(oldPassword, newPassWord)); |
| | | } |
| | | |
| | | @ValueClassify("人员明细") |
| | | @PostMapping("/upUserDepardLimsId") |
| | | @ApiOperation(value = "修改人员明细所在组织架构") |
| | | public Result<?> upUserDepardLimsId(String ids, String id){ |
| | | return Result.success(userService.upUserDepardLimsId(ids, id)); |
| | | } |
| | | |
| | | @ValueClassify("人员明细") |
| | | @PostMapping("/delUserDepardLimsId") |
| | | @ApiOperation(value = "删除人员明细所在组织架构") |
| | | public Result<?> delUserDepardLimsId(Integer id){ |
| | | return Result.success(userService.delUserDepardLimsId(id)); |
| | | } |
| | | |
| | | } |