hdw
2018-10-29 3ea3e6ac0db260b46aa262bc2ab33d8ab8860b86
gx_tieta/src/com/fgkj/actions/StationtrafficAction.java
New file
@@ -0,0 +1,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;
   }
}