whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/Batt_Maint_DealarmController.java
@@ -1,33 +1,34 @@
package com.fgkj.controller;
import com.fgkj.util.*;
import com.fgkj.dto.Batt_Maint_Dealarm;
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.User_inf;
import com.fgkj.services.Batt_Maint_DealarmService;
import com.fgkj.util.ActionUtil;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
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;
import java.util.List;
@RequestMapping("battMainDeAlarm")
@RestController
@Api
@Api(tags = "battMainDeAlarm接口")
public class Batt_Maint_DealarmController{
   private ServiceModel model=new ServiceModel();
   @Autowired
   @Resource
   private Batt_Maint_DealarmService service;
   //1.1电池信息统计分析查询
   @GetMapping("byConditionNew")
   @ApiOperation(notes = "",value="电池信息统计分析查询")
   public ServiceModel serchByConditionNew(@RequestBody Batt_Maint_Dealarm bd){
      // bd=ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
      User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -38,6 +39,7 @@
   
   //1.2电池组统计分析查询
   @GetMapping("low")
   @ApiOperation(notes = "",value="电池组统计分析查询")
   public ServiceModel serchLow(@RequestBody Batt_Maint_Dealarm bd){
      // bd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_Maint_Dealarm.class);
      User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -52,6 +54,7 @@
   
   //1.4电池组性能评估
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="电池组性能评估")
   public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bd){
      // bd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
      User_inf uinf=(User_inf) ActionUtil.getUser();