| | |
| | | import com.ruoyi.process.service.ProcessReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 检验报告发放登记表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @author |
| | | * @since 2024-11-05 08:58:39 |
| | | */ |
| | | @RestController |
| | |
| | | private ProcessReportService processReportService; |
| | | |
| | | @ApiOperation(value = "查询检验报告发放登记列表") |
| | | @PostMapping("/pageProcessReport") |
| | | public Result pageProcessReport(ProcessReport processReport , Page page) throws Exception { |
| | | @GetMapping("/pageProcessReport") |
| | | public Result pageProcessReport(ProcessReportDto processReport , Page page) { |
| | | return Result.success(processReportService.pageProcessReport(page, processReport)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "删除检验报告发放登记") |
| | | @PostMapping("/delProcessReport") |
| | | @DeleteMapping("/delProcessReport") |
| | | public Result delProcessReport(Long id) { |
| | | return Result.success(processReportService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看检验报告发放登记详情") |
| | | @PostMapping("/getProcessReport") |
| | | @GetMapping("/getProcessReport") |
| | | public Result getProcessReport(Long id) { |
| | | return Result.success(processReportService.getById(id)); |
| | | } |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "导出检验报告发放登记表") |
| | | @PostMapping("/exportProcessReport") |
| | | public Result exportProcessReport(@RequestBody ProcessReportDto processReportDto) { |
| | | return Result.success(processReportService.exportProcessReport(processReportDto.getIds())); |
| | | @GetMapping("/exportProcessReport") |
| | | public void exportProcessReport(ProcessReportDto dto, HttpServletResponse response) { |
| | | processReportService.exportProcessReport(dto, response); |
| | | } |
| | | |
| | | } |