| | |
| | | ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |
| | | importErrorVO.setErrorMsg(String.format("导入失败:商家【%s】下已有服务【%s】", |
| | | comCvtServeExcelVO.getBusinessName(), comCvtServeExcelVO.getServiceName())); |
| | | importErrorVO.setErrorPosition("第" + index + "行"); |
| | | // importErrorVO.setErrorPosition("第" + index + "行"); |
| | | populationImportErrorVOList.add(importErrorVO); |
| | | log.error(String.format("导入失败:商家【%s】下已有服务【%s】", comCvtServeExcelVO.getBusinessName(), |
| | | comCvtServeExcelVO.getServiceName())); |
| | |
| | | if (!categoryMap.containsKey(comCvtServeExcelVO.getCategoryName())) { |
| | | ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |
| | | importErrorVO.setErrorMsg("导入失败: 服务分类" + comCvtServeExcelVO.getCategoryName() + "不存在"); |
| | | importErrorVO.setErrorPosition("第" + index + "行,第1列"); |
| | | // importErrorVO.setErrorPosition("第" + index + "行,第1列"); |
| | | populationImportErrorVOList.add(importErrorVO); |
| | | // errorInfo.add(comCvtServeExcelVO.getCategoryName() +"导入失败: 服务分类不存在"); |
| | | } |
| | | if (!businessMap.containsKey(comCvtServeExcelVO.getBusinessName())) { |
| | | ComMngPopulationImportErrorVO importErrorVO = new ComMngPopulationImportErrorVO(); |
| | | importErrorVO.setErrorMsg("导入失败: 便民服务商家" + comCvtServeExcelVO.getBusinessName() + "不存在"); |
| | | importErrorVO.setErrorPosition("第" + index + "行,第5列"); |
| | | // importErrorVO.setErrorPosition("第" + index + "行,第5列"); |
| | | populationImportErrorVOList.add(importErrorVO); |
| | | } |
| | | } |