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));
|
}
|
}
|