package com.fgkj.actions; import java.util.List; import com.fgkj.dto.BattInf; import com.fgkj.dto.Bts_station_event; import com.fgkj.dto.ServiceModel; import com.fgkj.dto.User_inf; import com.fgkj.services.Batt_devalarm_data_historyService; import com.fgkj.services.Bts_station_eventService; public class Bts_station_eventAction extends ActionUtil{ private Bts_station_eventService service = new Bts_station_eventService(); private String json; private String result; //机房事件统计 public String serchByCondition(){ BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); User_inf uinf=(User_inf) getUser(); binf.setNum(uinf.getUId()); ServiceModel model=service.serchByCondition(binf); result=tojson(model); return SUCCESS; } //机房事件统计 public String serchByInfo(){ Bts_station_event bevent=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Bts_station_event.class); User_inf uinf=(User_inf) getUser(); bevent.setNum(uinf.getUId()); ServiceModel model=service.serchByInfo(bevent); result=tojson(model); return SUCCESS; } public String getResult() { return result; } public void setJson(String json) { this.json = json; } }