whyclxw
2024-06-27 f8479e6f138343b091b3ceeb7b232e75b3247946
src/main/java/com/whyc/controller/BattTestInfController.java
@@ -1,15 +1,14 @@
package com.whyc.controller;
import com.whyc.dto.ReportBattDTO;
import com.whyc.dto.Response;
import com.whyc.service.BattTestInfDataService;
import com.whyc.service.BattTestInfService;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "电池组充放电记录")
@@ -34,4 +33,14 @@
        Response res=dataService.getTDataHis(binfId,testRecordCount);
        return res;
    }
    /**
     * 蓄电池组后评估
     */
    @PostMapping("searchGroupAssess")
    @ApiOperation(notes = "searchByCondition ", value = "蓄电池组后评估")
    public Response searchByCondition(@RequestParam int pageNum,@RequestParam int pageSize, @RequestBody ReportBattDTO tinf) {
        //UserInf userInf = ActionUtil.getUser();
        return service.searchGroupAssess(pageNum,pageSize,tinf,1001);
    }
}