perryhsu
2020-10-14 f803c2a9296bcf3d2dba97b32f40276aa8b83d56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.fgkj.controller;
 
 
import com.fgkj.dto.Batt_history;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Batt_historyService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RequestMapping("battHistory")
@RestController
@Api
public class Batt_historyController{
 
    @Autowired
    private Batt_historyService service;
 
    //查询所有的历史实时数据
    public ServiceModel serchByCondition(@RequestBody Batt_history batt_his){
        // Batt_history batt_his=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_history.class);
        ServiceModel model=service.serchByCondition(batt_his);
 
        return model;
    }
 
}