| | |
| | | * @param list 便民服务集合 |
| | | */ |
| | | @PostMapping("/convenient/serve/import") |
| | | R listSaveConvenientServeExcelVO(@RequestBody List<ComCvtServeExcelVO> list, @RequestParam("communityId") Long communityId); |
| | | R listSaveConvenientServeExcelVO(@RequestBody List<ComCvtServeExcelVO> list, @RequestParam(value = "communityId",required = false) Long communityId); |
| | | |
| | | /** |
| | | * 导出房屋信息 |
| | |
| | | * @param list 服务集合 |
| | | */ |
| | | @PostMapping("/serve/import") |
| | | public R listSaveConvenientServeExcelVO(@RequestBody List<ComCvtServeExcelVO> list,@RequestParam("communityId") Long communityId){ |
| | | public R listSaveConvenientServeExcelVO(@RequestBody List<ComCvtServeExcelVO> list,@RequestParam(value = "communityId",required = false) Long communityId){ |
| | | return comCvtServeService.listSaveConvenientServeExcelVO(list,communityId); |
| | | } |
| | | } |
| | |
| | | Map<String, Long> businessMap = getBusinessMap(comCvtBusinessDOS); |
| | | int index = 2; |
| | | for (ComCvtServeExcelVO comCvtServeExcelVO:list) { |
| | | |
| | | /** |
| | | * 便民服务分类存在 并且 便民服务商家 匹配上 |
| | | */ |
| | |
| | | boolean saveBatched = this.saveBatch(comCvtServeDOS); |
| | | if(saveBatched) { |
| | | if (comCvtServeDOS.size()>0 && populationImportErrorVOList.size() > 0) { |
| | | return R.fail(populationImportErrorVOList.toString()); |
| | | return R.fail(JSON.toJSONString(populationImportErrorVOList)); |
| | | } |
| | | if(comCvtServeDOS.size()==0 && populationImportErrorVOList.size() > 0){ |
| | | return R.fail(JSON.toJSONString(populationImportErrorVOList)); |