| | |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | teamConstruction.setId(id); |
| | | return CommonResult.success(iTeamConstructionService.updateById(teamConstruction)); |
| | | } |
| | | @ApiOperation(value = "批量删除违规类型") |
| | | @DeleteMapping("/batch_delete") |
| | | @LogSave(operationType = "运营基础设置",contain = "批量删除违规事项") |
| | | public CommonResult removeViolations(@RequestParam Long[] ids) { |
| | | |
| | | return CommonResult.success(iTeamConstructionService.removeBatchByIds(Arrays.asList(ids))); |
| | | } |
| | | @PostMapping("/export") |
| | | @ApiOperation("导出") |
| | | @LogSave(operationType = "队伍建设管理", contain = "导出") |
| | |
| | | @ApiOperation("导入") |
| | | @SneakyThrows |
| | | @LogSave(operationType = "队伍建设管理", contain = "导入") |
| | | public CommonResult export(MultipartFile multipartFile) { |
| | | public CommonResult export(@RequestParam("file") MultipartFile multipartFile) { |
| | | EasyExcel.read(multipartFile.getInputStream(), TeamConstruction.class, new ReadListener() { |
| | | @Override |
| | | public void invoke(Object o, AnalysisContext analysisContext) { |