lxw
2020-07-11 9db52f2f2dd3665fe9da1ae5657e0167c3a34d40
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
package com.fgkj.actions;
 
import java.util.List;
 
import com.fgkj.dto.Fbsdev_Statechange_inf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Fbsdev_Statechange_infService;
import com.opensymphony.xwork2.ActionSupport;
 
public class Fbsdev_Statechange_infAction extends ActionUtil{
    private String json;
    private String result;
    private Fbsdev_Statechange_infService service=new Fbsdev_Statechange_infService();
    
    //根据设备id,时间等条件筛选设备
    public String serchByCondition(){
        Fbsdev_Statechange_inf state_inf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbsdev_Statechange_inf.class);
        ServiceModel model=service.serchByCondition(state_inf);
        result=tojson(model);
        return SUCCESS;
    }
 
    public String getResult() {
        return result;
    }
 
    public void setJson(String json) {
        this.json = json;
    }
    
    
    
}