package com.fgkj.actions; import com.fgkj.dto.ServiceModel; import com.fgkj.dto.Stationtraffic; 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); ServiceModel model=service.serchByCondition(st); result=tojson(model); return SUCCESS; } public String getResult() { return result; } public void setJson(String json) { this.json = json; } }