whycxzp
2023-02-21 8db4d00b41728e5a25cbb7b661d502ecd570e88d
src/main/java/com/whyc/controller/ECRController.java
@@ -11,6 +11,7 @@
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
@@ -48,7 +49,7 @@
    @ApiOperation("分页查询ECR记录")
    @GetMapping("searchEcr")
    public Response searchEcr(@RequestParam int number, @RequestParam String subCode, @RequestParam String subModel,
    public Response searchEcr(@RequestParam String number, @RequestParam String subCode, @RequestParam String subModel,
                              @RequestParam String createTime, @RequestParam String createTime1,
                              @RequestParam int pageCurr, @RequestParam int pageSize){
        Date testTime1= null;
@@ -61,4 +62,10 @@
        }
        return service.searchEcr(number,subCode,subModel,testTime1,testTime2,pageCurr,pageSize);
    }
    @ApiOperation("导出所有记录")
    @GetMapping("exportExcel")
    public void exportExcel(HttpServletResponse response){
        service.exportExcel(response);
    }
}