| | |
| | | @Log(title = "个人详细信息记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ZInfoUser zInfoUser) { |
| | | if (!Pattern.matches("^[\\d]+(?:,[\\d]+)*$",zInfoUser.getFamilyId())) { |
| | | throw new RuntimeException("请输入只有数字和英文逗号的字符串,且数字和逗号必须交替出现"); |
| | | } |
| | | // if (!Pattern.matches("^[\\d]+(?:,[\\d]+)*$",zInfoUser.getFamilyId())) { |
| | | // throw new RuntimeException("请输入只有数字和英文逗号的字符串,且数字和逗号必须交替出现"); |
| | | // } |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | zInfoUser.setUserId(userId); |