| | |
| | | @ApiOperation(value = "周保工单-批量审批流程", notes = "周保工单-批量审批流程") |
| | | @PostMapping("/batchApproval") |
| | | public Result<?> batchApproval(@RequestBody EamWeekMaintenanceBatchApprovalRequest request) { |
| | | if (request == null || CollectionUtil.isEmpty(request.getTastList())) { |
| | | if (request == null || CollectionUtil.isEmpty(request.getTaskList())) { |
| | | return Result.error("没有需要审批的数据!"); |
| | | } |
| | | int n = 0; |
| | | StringBuilder errorMsg = new StringBuilder(); |
| | | List<WorkTaskDataVo> tastList = request.getTastList(); |
| | | List<WorkTaskDataVo> tastList = request.getTaskList(); |
| | | for (WorkTaskDataVo workTaskDataVo : tastList) { |
| | | EamWeekMaintenanceRequest orderRequest = new EamWeekMaintenanceRequest(); |
| | | EamWeekMaintenanceOrder order = eamWeekMaintenanceOrderService.getById(workTaskDataVo.getDataId()); |