| | |
| | | "<if test='vaccinesByAdminDTO.communityId != null'>" + |
| | | " and cmver.community_id = #{vaccinesByAdminDTO.communityId} "+ |
| | | " </if> " + |
| | | "<if test='inoculationByAdminDTO.ids != null and inoculationByAdminDTO.ids.size > 0'>" + |
| | | "<if test='vaccinesByAdminDTO.ids != null and vaccinesByAdminDTO.ids.size > 0'>" + |
| | | " and cmvir.id in " + |
| | | "<foreach item=\"item\" collection=\"inoculationByAdminDTO.ids\" separator=\",\" open=\"(\" close=\")\" index=\"\"> \n" + |
| | | "<foreach item=\"item\" collection=\"vaccinesByAdminDTO.ids\" separator=\",\" open=\"(\" close=\")\" index=\"\"> \n" + |
| | | "#{item}" + |
| | | "</foreach>" + |
| | | " </if> " + |
| | |
| | | } |
| | | Map<String, Long> businessMap = getBusinessMap(comCvtBusinessDOS); |
| | | List<String> errorInfo = new ArrayList<>(); |
| | | list.forEach(comCvtServeExcelVO -> { |
| | | int index = 2; |
| | | for (ComCvtServeExcelVO comCvtServeExcelVO:list) { |
| | | /** |
| | | * 便民服务分类存在 并且 便民服务商家 匹配上 |
| | | */ |
| | |
| | | errorInfo.add(comCvtServeExcelVO.getBusinessName() +"导入失败: 便民服务商家不存在"); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | boolean saveBatched = this.saveBatch(comCvtServeDOS); |
| | | if(saveBatched) { |
| | | if (comCvtServeDOS.size()>0 && errorInfo != null && errorInfo.size() > 0) { |