| | |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "个人详细信息记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ZInfoUser zInfoUser) |
| | | { |
| | | public void export(HttpServletResponse response, ZInfoUser zInfoUser) { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | zInfoUser.setUserId(userId); |
| | |
| | | */ |
| | | @Log(title = "用户管理", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(@RequestParam("excelImport") MultipartFile file) throws Exception |
| | | { |
| | | public AjaxResult importData(@RequestParam("excelImport") MultipartFile file) throws Exception { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | ExcelUtil<ZInfoUser> util = new ExcelUtil<>(ZInfoUser.class); |
| | |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:query')") |
| | | @GetMapping() |
| | | public AjaxResult getInfo() |
| | | { |
| | | public AjaxResult getInfo() { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | return success(zInfoUserService.getById(userId)); |
| | | return AjaxResult.success(zInfoUserService.getById(userId)); |
| | | |
| | | } |
| | | // |
| | | |
| | | /** |
| | | * 新增、修改个人详细信息记录 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:add')") |
| | | @Log(title = "个人详细信息记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ZInfoUser zInfoUser) |
| | | { |
| | | public AjaxResult add(@RequestBody ZInfoUser zInfoUser) { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | zInfoUser.setUserId(userId); |
| | |
| | | // return toAjax(zInfoUserService.updateById(zInfoUser)); |
| | | // } |
| | | // |
| | | |
| | | /** |
| | | * 删除个人详细信息记录 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:remove')") |
| | | @Log(title = "个人详细信息记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping() |
| | | public AjaxResult remove() |
| | | { |
| | | public AjaxResult remove() { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | return toAjax(zInfoUserService.removeById(userId)); |
| | |
| | | Long userId = user.getUserId(); |
| | | return zInfoUserService.searchMyRelation(userId); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |