New file |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.ReportingWorkDetail; |
| | | import com.example.erp.service.pp.ReportWorkService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | |
| | | @RestController |
| | | @RequestMapping("/reportData") |
| | | public class ReportWorkController { |
| | | |
| | | @Autowired |
| | | ReportWorkService reportWorkService; |
| | | |
| | | /*返工管理数据*/ |
| | | @PostMapping("/rework/manage/query/{pageNum}/{pageSize}/{startTime}/{endTime}") |
| | | public Result queryReworkData(@PathVariable Integer pageNum, @PathVariable Integer pageSize |
| | | ,@PathVariable String startTime,@PathVariable String endTime |
| | | ) { |
| | | return Result.seccess(reportWorkService.reworkMangageData(pageNum, pageSize,startTime,endTime)); |
| | | } |
| | | |
| | | /*返工新增数据查询*/ |
| | | @PostMapping("/rework/add/query/{pageNum}/{pageSize}") |
| | | public Result queryReworkAdd(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody ReportingWorkDetail reportingWorkDetail) { |
| | | return Result.seccess(reportWorkService.queryRework(pageNum, pageSize,reportingWorkDetail)); |
| | | } |
| | | } |