| | |
| | | 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; |
| | |
| | | |
| | | @RestController |
| | | @Api(tags = "电池组充放电记录") |
| | | @RequestMapping("tinf") |
| | | @RequestMapping("battTestInf") |
| | | public class BattTestInfController { |
| | | @Autowired |
| | | private BattTestInfService service; |
| | | @Autowired |
| | | private BattTestInfDataService dataService; |
| | | |
| | | @ApiOperation("查询充放电记录") |
| | | @GetMapping("getTinfHis") |
| | | public Response getTinfHis(@RequestParam int binfId |
| | | /*@ApiOperation("查询分页-电池组的充放电记录") |
| | | @GetMapping("getPageByBattGroupId") |
| | | public Response getPageByBattGroupId(@RequestParam int battGroupId |
| | | , @RequestParam int pageNum, @RequestParam int pageSize){ |
| | | Response res=service.getTinfHis(binfId,pageNum,pageSize); |
| | | return res; |
| | | return service.getPageByBattGroupId(battGroupId,pageNum,pageSize); |
| | | }*/ |
| | | |
| | | @GetMapping("getDischargePage") |
| | | public Response getDischargePage(@RequestParam int pageNum,@RequestParam int pageSize){ |
| | | return service.getDischargePage(pageNum,pageSize); |
| | | } |
| | | |
| | | @ApiOperation("根据充放电记录查询单体放电历史详情") |
| | | @GetMapping("getTDataHis") |
| | | public Response getTDataHis(@RequestParam int binfId,@RequestParam int testRecordCount){ |
| | | Response res=dataService.getTDataHis(binfId,testRecordCount); |
| | | /*//根据充放电记录查询单体放电历史详情 |
| | | @ApiOperation("查询单次放电记录详情") |
| | | @GetMapping("getByBattGroupIdAndTestRecordCount") |
| | | public Response getByBattGroupIdAndTestRecordCount(@RequestParam int battGroupId,@RequestParam int testRecordCount){ |
| | | Response res=dataService.getByBattGroupIdAndTestRecordCount(battGroupId,testRecordCount); |
| | | return res; |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * 蓄电池组后评估 |
| | | */ |
| | | @PostMapping("searchGroupAssess") |
| | | @ApiOperation(notes = "searchByCondition ", value = "蓄电池组后评估") |
| | | |
| | | /*@PostMapping("searchGroupAssess") |
| | | @ApiOperation(value = "蓄电池组后评估") |
| | | public Response searchByCondition(@RequestParam int pageNum,@RequestParam int pageSize, @RequestBody ReportBattDTO tinf) { |
| | | //UserInf userInf = ActionUtil.getUser(); |
| | | return service.searchGroupAssess(pageNum,pageSize,tinf,1001); |
| | | } |
| | | } |
| | | |
| | | |
| | | @PostMapping("searchMonNumAssess") |
| | | @ApiOperation(value = "电池单体性能评估") |
| | | public Response searchMonNumAssess(@RequestParam int binfId,@RequestParam int monNum){ |
| | | return service.searchMonNumAssess(binfId,monNum); |
| | | }*/ |
| | | |
| | | } |