From fd77d548a62649faabcecd1c33352aa28cf8fead Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期二, 20 十一月 2018 12:03:30 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://whychdw@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw

---
 gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java |   18 +++++++++++++++++-
 1 files changed, 17 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 31ed580..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,9 @@
 
 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;
 
 public class Bts_station_stateService {
@@ -28,5 +31,18 @@
 		}
 		return model;	
 	}
-
+	//鏌ヨ褰撳墠鏈烘埧鍋滅數鏁�
+	public ServiceModel serchByState(Object obj) {
+		int nums=((Bts_station_stateImpl)dao).serchByState(obj);
+		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