From c02e430f16cb51cabb6f4b24f99ec48efc7b0596 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@192.168.10.26> Date: 星期三, 21 十一月 2018 11:59:20 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whyccjj@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java | 11 ++++++++++- 1 files changed, 10 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..30f1e9f 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,12 @@ model.setNewsum(nums); return model; } - + //鏈烘埧鏂數缁熻(棣栭〉涓婄殑楗肩姸鍥�) + public ServiceModel serchPowerOff(Object obj){ + int powerNum=((Bts_station_stateImpl)dao).serchByState(obj); //鏂數瀹炴椂鏁� + int devNum=(new BattInfImpl()).serchByDeviceId(obj); //鎬昏澶囨暟 + model.setSum(powerNum); + model.setNewsum(devNum); + return model; + } } -- Gitblit v1.9.1