廖井涛
2024-02-22 10ed6815dd763f6c348f13619ae15f7a062ee75c
north-glass-erp/src/main/java/com/example/erp/controller/pp/ReworkController.java
New file
@@ -0,0 +1,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));
    }
}