whycrzh
2021-01-28 9f05d9863af714b206bdfffe2096d60a942c9d23
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
30
31
32
33
34
package com.fgkj.controller;
 
import com.fgkj.dto.BtsStateChangeInf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.history.BtsStateChangeInfService;
import io.swagger.annotations.Api;
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("btsStateChange")
@RestController
@Api(tags = "btsStateChange接口")
public class BtsStateChangeInfController {
 
    @Resource
    private BtsStateChangeInfService service;
 
     //按照时间顺序显示设备的事件信息
    @GetMapping("byCondition")
    @ApiOperation(notes = "",value="按照时间顺序显示设备的事件信息")
    public ServiceModel serchByCondition(@RequestBody BtsStateChangeInf binf) {
        // BtsStateChangeInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BtsStateChangeInf.class);
        ServiceModel model=service.serchByCondition(binf);
        return model;
    }
 
    
 
}