package com.fgkj.controller;
|
|
import com.fgkj.dto.Batt_Maint_Dealarm;
|
import com.fgkj.dto.Batttestdatastop;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.BatttestdatastopService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
@RequestMapping("battTestDataStop")
|
@RestController
|
@Api(tags = "battTestDataStop接口")
|
//Perry TODO
|
public class BatttestdatastopController{
|
|
@Resource
|
private BatttestdatastopService service;
|
|
// private Batttestdatastop btds;
|
|
@GetMapping("byInfo")
|
@ApiOperation(notes = "",value="历史监测单体电压折线图")
|
public ServiceModel findByInfo(@RequestBody Batttestdatastop btds){
|
//System.out.println(btds);
|
ServiceModel model=service.serchByCondition(btds);
|
return model;
|
}
|
|
//7.1电池放电落后单体筛选,并将电容告警的电池组加到告警表中
|
@GetMapping("badBatt")
|
@ApiOperation(notes = "",value="电池放电落后单体筛选,并将电容告警的电池组加到告警表中")
|
public ServiceModel serchBadBatt(@RequestBody Batt_Maint_Dealarm bmd){
|
// Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
|
//System.out.println(bmd);
|
ServiceModel model = service.serchBadBatt(bmd);
|
return model;
|
}
|
|
}
|