whycxzp
2021-02-05 8cf143a196e20ddd68cbf9855290f2d3a0b78da0
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
35
36
37
38
package com.fgkj.controller;
 
import com.fgkj.dto.Fbsdev_Statechange_inf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Fbsdev_Statechange_infService;
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("fbsDevStateChangeInf")
@RestController
@Api(tags = "fbsDevStateChangeInf接口")
//Perry TODO
public class Fbsdev_Statechange_infController{
 
    @Resource
    private Fbsdev_Statechange_infService service;
    
    //根据设备id,时间等条件筛选设备
    @GetMapping("byCondition")
    @ApiOperation(notes = "",value="根据设备id,时间等条件筛选设备")
    public ServiceModel serchByCondition(@RequestBody Fbsdev_Statechange_inf state_inf){
        // Fbsdev_Statechange_inf state_inf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbsdev_Statechange_inf.class);
        ServiceModel model=service.serchByCondition(state_inf);
 
        return model;
    }
 
 
    
    
    
}