chenlu
2024-02-22 c6b112564e0a97fc20db23e67dae0adee03f941c
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));
    }
}