| | |
| | | long keyCount = largeKeyGridUserService.count(Wrappers.lambdaQuery(TLargeKeyGridUser.class) |
| | | .eq(TLargeKeyGridUser::getUserType, 1)); |
| | | List<TLargeKeyPersonnelType> list = largeKeyPersonnelTypeService.list(Wrappers.lambdaQuery(TLargeKeyPersonnelType.class) |
| | | .ne(TLargeKeyPersonnelType::getShowType, 1)); |
| | | .eq(TLargeKeyPersonnelType::getShowType, 1)); |
| | | if(!CollectionUtils.isEmpty(list)){ |
| | | int sum = list.stream().filter(e->Objects.nonNull(e.getShowNumber())).mapToInt(TLargeKeyPersonnelType::getShowNumber).sum(); |
| | | keyCount += sum; |
| | |
| | | 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; |
| | |
| | | @TableField("id_card") |
| | | private String idCard; |
| | | |
| | | @Pattern(regexp = "^$|^1[3-9]\\d{9}$",message = "手机号格式不正确") |
| | | // @Pattern(regexp = "^$|^1[3-9]\\d{9}$",message = "手机号格式不正确") |
| | | @Length(max = 11,message = "手机号不能超过11个字符") |
| | | @ApiModelProperty(value = "联系电话") |
| | | @TableField("contact_number") |
| | | private String contactNumber; |