whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/BatttestdataController.java
@@ -1,12 +1,10 @@
package com.fgkj.controller;
import com.fgkj.util.*;
import com.fgkj.dto.Batttestdata;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.BatttestdataService;
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;
@@ -16,7 +14,8 @@
@RequestMapping("battTestData")
@RestController
@Api
@Api(tags = "battTestData接口")
//Perry TODO
public class BatttestdataController{
   @Resource
@@ -25,6 +24,7 @@
   // private Batttestdata btd;
   @GetMapping("byInfo")
   @ApiOperation(notes = "",value="byInfo")
   public ServiceModel findByInfo(@RequestBody Batttestdata btd) {
      ServiceModel model = service.serchByCondition(btd);
      
@@ -38,6 +38,7 @@
    * @return
    */
   @GetMapping("history")
   @ApiOperation(notes = "",value="历史数据查询")
   public ServiceModel findhistory(@RequestBody Batttestdata btd){
      // Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class);
      ServiceModel model = service.serchByCondition(btd);
@@ -50,6 +51,7 @@
    * @return
    */
   @GetMapping("history_ky")
   @ApiOperation(tags = "跨域", notes = "",value="历史数据查询 跨域专用")
   public ServiceModel findhistory_ky(@RequestBody Batttestdata btd){
      // btd = ActionUtil.getGson().fromJson(json, Batttestdata.class);
      ServiceModel model = service.serchByCondition_ky(btd);