whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/BatttestdataController.java
@@ -3,25 +3,28 @@
import com.fgkj.dto.Batttestdata;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.BatttestdataService;
import com.opensymphony.xwork2.ActionSupport;
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;
@RequestMapping("battTestData")
@RestController
@Api
@Api(tags = "battTestData接口")
//Perry TODO
public class BatttestdataController{
   @Autowired
   @Resource
   private BatttestdataService service;
   // private Batttestdata btd;
   @GetMapping("byInfo")
   @ApiOperation(notes = "",value="byInfo")
   public ServiceModel findByInfo(@RequestBody Batttestdata btd) {
      ServiceModel model = service.serchByCondition(btd);
      
@@ -35,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);
@@ -47,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);