whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/Batttestdata_infController.java
@@ -8,6 +8,7 @@
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Batttestdata_infService;
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.RequestBody;
@@ -20,7 +21,7 @@
@RequestMapping("battTestDataInf")
@RestController
@Api
@Api(tags = "battTestDataInf接口")
public class Batttestdata_infController{
   
   ServiceModel model = new ServiceModel();
@@ -32,6 +33,7 @@
   // private Batt_Maint_Dealarm bmd;
   
   @GetMapping("byInfo")
   @ApiOperation(notes = "",value="历史数据查询")
   public ServiceModel findByInfo(@RequestBody Batttestdata_inf bti){
      model=service.serchByCondition(bti);
      
@@ -42,6 +44,7 @@
    * 根据电池组id查询电池组的inf表中的放电信息
    */
   @GetMapping("battTestInfDataById")
   @ApiOperation(notes = "",value="电池组id查询电池组的inf表中的放电信息")
   public ServiceModel searchBattTestInfDataById(@RequestBody Batttestdata_inf bti){
      // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
      model=service.serchByCondition(bti);
@@ -51,6 +54,7 @@
   
   //0.7电测放电测试比例
   @GetMapping("testScale")
   @ApiOperation(notes = "",value="电测放电测试比例")
   public ServiceModel searchTestsCale(@RequestBody Batt_Maint_Dealarm bmd){
      try {
         model=service.serchByInfo(bmd);
@@ -63,6 +67,7 @@
   
   //0.10电池健康率
   @GetMapping("healthRate")
   @ApiOperation(notes = "",value="电池健康率")
   public ServiceModel searchGood(){
      model=service.serchGood();
      
@@ -71,6 +76,7 @@
   
   //6.4.2根据条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率)
   @GetMapping("completeRate")
   @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率)")
   public ServiceModel serchComplete(@RequestBody Batttestdata_inf b){
      // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class);
      ServiceModel model=service.serchComplete(b);
@@ -80,6 +86,7 @@
   
   //6.4.4根据条件查询符合条件的测试完成的电池组(蓄电池容量预警)
   @GetMapping("capWarning")
   @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池容量预警)")
   public ServiceModel serchCap(@RequestBody Batttestdata_inf b){
      // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class);
      ServiceModel model=service.serchCap(b);
@@ -89,6 +96,7 @@
   
   //电池组历史放电数据续航能力查询
   @GetMapping("battLife")
   @ApiOperation(notes = "",value="电池组历史放电数据续航能力查询")
    public ServiceModel serchBattLife(@RequestBody BattInf binf){
       // BattInf binf = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, BattInf.class);
       ServiceModel model = new ServiceModel();
@@ -102,6 +110,7 @@
    /* 根据电池组id查询电池组的inf表中的放电信息    <!------    跨域访问     --------->
    */
    @GetMapping("battTestInfDataById_ky")
   @ApiOperation(notes = "跨域访问",value="根据电池组id查询电池组的inf表中的放电信息")
   public ServiceModel searchBattTestInfDataById_ky(@RequestBody Batttestdata_inf bti){
      // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
      model=service.serchByCondition_ky(bti);