From ece08fd739c0a004b4bee932f37c81b81a7acaeb Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.21>
Date: 星期二, 20 十一月 2018 10:05:56 +0800
Subject: [PATCH] 实时机房停电

---
 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