From 1b71deb76a81b4619538045d66032c12524dff0b Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期四, 22 十一月 2018 11:27:52 +0800 Subject: [PATCH] 电池告警率跳转 --- gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java b/gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java index 10eec0b..1416cc3 100644 --- a/gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java +++ b/gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java @@ -4,6 +4,8 @@ import com.fgkj.dao.BaseDAO; import com.fgkj.dao.BaseDAOFactory; +import com.fgkj.dao.impl.BattInfImpl; +import com.fgkj.dao.impl.BattPower_offImpl; import com.fgkj.dao.impl.ram.Bts_station_stateImpl; import com.fgkj.dto.ServiceModel; @@ -35,5 +37,14 @@ model.setNewsum(nums); return model; } - + //鏈烘埧鏂數缁熻(棣栭〉涓婄殑楗肩姸鍥�) + public ServiceModel serchPowerOff(Object obj){ + int powerNum=((Bts_station_stateImpl)dao).serchByState(obj); //鏂數瀹炴椂鏁� + int dianzhanNum=((Bts_station_stateImpl)dao).serchByState_diaozhan(obj); //鎺夌珯瀹炴椂鏁� + int devNum=(new BattInfImpl()).serchByDeviceId(obj); //鎬昏澶囨暟 + model.setSum(powerNum); + model.setNewsum(devNum); + model.setCode(dianzhanNum); + return model; + } } -- Gitblit v1.9.1