| | |
| | | .page(new Page<TeamConstruction>().setSize(size).setCurrent(current), new LambdaQueryWrapper<TeamConstruction>() |
| | | .like(StringUtils.isNotBlank(departName), TeamConstruction::getName, departName) |
| | | .eq(status != null, TeamConstruction::getStatus, status) |
| | | .eq(TeamConstruction::getIsDelete, isDelete))); |
| | | .eq(TeamConstruction::getIsDelete, isDelete) |
| | | .orderByDesc(TeamConstruction::getId))); |
| | | } |
| | | |
| | | @PostMapping("/addition") |
| | |
| | | teamConstruction.setId(id); |
| | | return CommonResult.success(iTeamConstructionService.updateById(teamConstruction)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除违规类型") |
| | | @DeleteMapping("/batch_delete") |
| | | @LogSave(operationType = "运营基础设置",contain = "批量删除违规事项") |
| | | @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) { |