| | |
| | | import com.fgkj.actions.ActionUtil;
|
| | | import com.fgkj.dto.BattInf;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_inf;
|
| | | import com.fgkj.services.ram.Bts_station_stateService;
|
| | |
|
| | | public class Bts_station_stateAction extends ActionUtil{
|
| | |
| | | //查询机房实时状态
|
| | | 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 serchByState(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model=service.serchByState(uinf);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | |
|
| | |
|