NNowhZzU
2024-01-26 2dcfec0f0314c7018563b54bee5a0161f65f266a
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
package com.example.erp.controller.pp;
 
import com.example.erp.common.Result;
import com.example.erp.service.pp.ReworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("/rework")
public class ReworkController {
 
    @Autowired
    ReworkService reworkService;
 
    @PostMapping("/query/{pageNum}/{pageSize}/{startTime}/{endTime}")
    public Result queryRework(@PathVariable Integer pageNum, @PathVariable Integer pageSize,
                              @PathVariable String startTime,@PathVariable String endTime
            ){
 
        return Result.seccess(reworkService.queryRework(pageNum,pageSize,startTime,endTime,null));
    }
}