| | |
| | | // saveOrUpdate(zInfoUser)); |
| | | } |
| | | |
| | | @Log(title = "个人详细信息记录", businessType = BusinessType.INSERT) |
| | | @PutMapping("/updateInfo") |
| | | public AjaxResult updateInfo(@RequestBody ZInfoUser zInfoUser) { |
| | | // if (!Pattern.matches("^[\\d]+(?:,[\\d]+)*$",zInfoUser.getFamilyId())) { |
| | | // throw new RuntimeException("请输入只有数字和英文逗号的字符串,且数字和逗号必须交替出现"); |
| | | // } |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | zInfoUser.setSysId(userId); |
| | | |
| | | //LambdaUpdateWrapper<ZInfoUser> uw = new LambdaUpdateWrapper<>(); |
| | | // uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction()); |
| | | return toAjax(zInfoUserService.saveOrUpdate(zInfoUser)); |
| | | // saveOrUpdate(zInfoUser)); |
| | | } |
| | | |
| | | // /** |
| | | // * 修改个人详细信息记录 |