guoyuji
2024-05-31 3ee23fa2bfb5f90863a1e2579c882b4bae875aa3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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));
    }
}