From 2fe250ece8de95b3f70172fe5b45793ab6a3084a Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 18 一月 2019 17:30:50 +0800 Subject: [PATCH] 未审批可更改 --- gx_tieta/src/com/fgkj/services/ram/Bts_station_stateService.java | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 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..ea2f0af 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,12 @@ import com.fgkj.dao.BaseDAO; import com.fgkj.dao.BaseDAOFactory; +import com.fgkj.dao.impl.BadBatt_monImpl; +import com.fgkj.dao.impl.BattInfImpl; +import com.fgkj.dao.impl.Batt_enduranceImpl; +import com.fgkj.dao.impl.Battalarm_dataDAOImpl; +import com.fgkj.dao.impl.ram.Bts_station_stateImpl; +import com.fgkj.dto.Battalarm_data; import com.fgkj.dto.ServiceModel; public class Bts_station_stateService { @@ -28,5 +34,42 @@ } 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 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; + } + //鍦板浘鍙充笅瑙掓樉绀哄嚭宸插畨瑁呮満鎴夸腑(鍋滅數鏁�/鎺夌珯鏁�/鏈烘埧鍛婅鏁�/钀藉悗鍗曚綋鏈烘埧鏁�) + public ServiceModel serchStationState(Object obj){ + int powerNum=((Bts_station_stateImpl)dao).serchByState(obj); //鍋滅數瀹炴椂鏁� + int dianzhanNum=((Bts_station_stateImpl)dao).serchByState_diaozhan(obj); //鎺夌珯瀹炴椂鏁� + int badbattNum=(new BadBatt_monImpl()).searchBadBattInStation(obj);//瀛樺湪钀藉悗鍗曚綋鐨勬満鎴夸釜鏁� + int alarmNum=(new Battalarm_dataDAOImpl()).searchAlarmInStation(obj);//瀛樺湪鐢垫睜鍛婅鐨勬満鎴夸釜鏁� + int xuhangnums=(new Batt_enduranceImpl()).serchxuhangNotInThree(obj); //瀛樺湪缁埅涓嶈冻3灏忔椂鐨勬満鎴夸釜鏁� + int devNum=(new BattInfImpl()).serchByDeviceId(obj); //鎬昏澶囨暟 + model.setSum(powerNum);//鍋滅數瀹炴椂鏁� + model.setCode(dianzhanNum);//鎺夌珯瀹炴椂鏁� + model.setNewsum(devNum); //鎬昏澶囨暟 + model.setMsgN(String.valueOf(badbattNum));//瀛樺湪钀藉悗鍗曚綋鐨勬満鎴夸釜鏁� + model.setMsg(String.valueOf(alarmNum));//瀛樺湪鐢垫睜鍛婅鐨勬満鎴夸釜鏁� + model.setMsgT(String.valueOf(xuhangnums));//瀛樺湪缁埅涓嶈冻3灏忔椂鐨勬満鎴夸釜鏁� + return model; + } + //鏌ヨ璁惧SD鍗$殑瀹炴椂鐘舵�� + public ServiceModel serchSDCard(Object obj) { + int station_state=((Bts_station_stateImpl)dao).serchSDCard(obj); + model.setData(station_state); + return model; + } } -- Gitblit v1.9.1