| | |
| | | @ApiOperation(value = "修改重点人员-网格人员") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeKeyGridUser dto) { |
| | | return R.ok(largeKeyGridUserService.updateById(dto)); |
| | | largeKeyGridUserService.updateById(dto); |
| | | if(!StringUtils.hasLength(dto.getTypeId())){ |
| | | largeKeyGridUserService.update(Wrappers.lambdaUpdate(TLargeKeyGridUser.class).set(TLargeKeyGridUser::getTypeId, null).eq(TLargeKeyGridUser::getId, dto.getId())); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | |
| | | i++; |
| | | continue; |
| | | } |
| | | if (!largeKeyGridUserImport.getContactNumber().matches("^$|^1[3-9]\\d{9}$")){ |
| | | if (largeKeyGridUserImport.getContactNumber().length() != 11){ |
| | | result.append("第"+i+"行:[", "联系电话"+"]格式不正确"); |
| | | i++; |
| | | continue; |
| | |
| | | i++; |
| | | continue; |
| | | } |
| | | if (!largeKeyGridUserImport.getContactNumber().matches("^$|^1[3-9]\\d{9}$")){ |
| | | if (largeKeyGridUserImport.getContactNumber().length() != 11){ |
| | | result.append("第"+i+"行:[", "联系电话"+"]格式不正确"); |
| | | i++; |
| | | continue; |