lxw
2022-09-28 3fc31d16addf18a8ba30354b0dbcbba1f5c3e244
src/main/java/com/whyc/controller/FileParamController.java
@@ -25,11 +25,14 @@
    public Response getMonVolStd(){
        return service.getMonVolStd();
    }
    @ApiOperation("按照筛选条件查询数据库信息")
    @GetMapping("getDataByCondition")
    public Response getDataByCondition(@RequestParam(required = false ,defaultValue = "1982-01-01 00:00:00") String startTime
                                       , @RequestParam(required = false,defaultValue = "2222-01-01 00:00:00") String endTime
                                       , @RequestParam(required = false) int battVol)  {
                                       , @RequestParam(required = false) int battVol
                                       ,@RequestParam(required = false ,defaultValue = "1") int pageCurr
                                        ,@RequestParam(required = false ,defaultValue = "10") int pageSize)  {
        Date testTime1= null;
        Date testTime2= null;
        try {
@@ -38,13 +41,13 @@
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return service.getDataByCondition(testTime1,testTime2,battVol);
        return service.getDataByCondition(testTime1,testTime2,battVol,pageCurr,pageSize);
    }
    @ApiOperation("分级评价-系数及阈值查询")
    @GetMapping("factorsAndThreshold")
    public Response getFactorsAndThreshold(@RequestParam int fieldId){
        FileParam param =  service.getFactorsAndThreshold(fieldId);
    public Response getFactorsAndThreshold(@RequestParam String fileId){
        FileParam param =  service.getFactorsAndThreshold(fileId);
        return new Response().set(1,param);
    }