From fe0566b75eb4cd447eaaf4b042e600b413698a99 Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.26>
Date: 星期五, 23 十一月 2018 08:47:42 +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