81041
2019-06-20 e4efa2387409d35e1fc5e566b84e2065aafa30a6
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
package com.fgkj.actions;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.Stationtraffic;
import com.fgkj.dto.User_inf;
import com.fgkj.services.StationtrafficService;
 
 
public class StationtrafficAction extends ActionUtil{
    private StationtrafficService service=new StationtrafficService();
    private String json;
    private String result;
    
    
    //统计基站流量
    public String serchByCondition() {
        Stationtraffic st=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Stationtraffic.class);
        User_inf uinf=(User_inf) getUser();
        st.setNote(uinf.getUId().toString());
        ServiceModel model=service.serchByCondition(st);
        result=tojson(model);
        return SUCCESS;
    }
    public String getResult() {
        return result;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
    
}