| | |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.listen.ComMngPopulationServeExcelListen; |
| | | import com.panzhihua.common.listen.ComPbCheckUnitExcelListen; |
| | | import com.panzhihua.common.model.dtos.FtpConfig; |
| | | import com.panzhihua.common.model.dtos.common.AddComPbCheckUnitDto; |
| | |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | EasyExcel.read(inputStream, ComPbCheckUnitExcelVO.class, |
| | | EasyExcel.read(inputStream, null, |
| | | new ComPbCheckUnitExcelListen(comPbCheckUnitService,this.getCommunityId(),this.getUserId(),stringRedisTemplate)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "下载导入失败党员报道单位数据") |
| | | @PostMapping("/download/error/populationDrug") |
| | | @GetMapping("/download/error/populationDrug") |
| | | public R downloadErrorDrugPopulation(@RequestParam(value = "key") String key) { |
| | | List<ComPbCheckUnitErrorExcelVO> list = new ArrayList<>(); |
| | | Boolean isExits = stringRedisTemplate.hasKey(key); |
| | |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "党员双报到单位-下载模板") |
| | | @GetMapping("/export/elder") |
| | | public R exportElder() { |
| | | return R.ok(sftpConfig.getExcelUrl() + "党员双报到单位导入模板.xlsx"); |
| | | } |
| | | } |