| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Log(title = "批量审核任务", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "批量审核任务") |
| | | @PostMapping(value = "/auditBatch") |
| | | public R<Boolean> auditBatch(@RequestBody @Valid TTaskAuditBatchDTO dto) { |
| | | public R<Boolean> auditBatch(@RequestBody @Validated TTaskAuditBatchDTO dto) { |
| | | List<TTaskDetail> tTaskDetails = new ArrayList<>(); |
| | | for (String s : dto.getTaskIds().split(",")) { |
| | | TTask byId = taskCleanerService.getById(s); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Log(title = "任务记录导出", businessType = BusinessType.DELETE) |
| | | @Log(title = "任务记录导出", businessType = BusinessType.EXPORT) |
| | | @ApiOperation(value = "任务记录导出") |
| | | @PostMapping(value = "/exportExcel") |
| | | public void exportExcel(@RequestBody TaskListQuery query) { |