From 6d492bc6298a71f58fb046ff5c332fbd88aae620 Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期五, 21 十二月 2018 17:17:45 +0800
Subject: [PATCH] 申请验收前的查询

---
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl.class    |    0 
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$7.class  |    0 
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$6.class  |    0 
 gx_tieta/src/com/fgkj/actions/Battinf_applyAction.java                        |    9 ++++
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/Battinf_applyAction.class   |    0 
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$5.class  |    0 
 gx_tieta/src/com/fgkj/services/Battinf_applyService.java                      |   14 +++++++
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$8.class  |    0 
 gx_tieta/src/com/fgkj/dao/impl/Battinf_applyImpl.java                         |   81 +++++++++++++++++++++++++++++++++++++++-
 gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/Battinf_applyService.class |    0 
 10 files changed, 102 insertions(+), 2 deletions(-)

diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/Battinf_applyAction.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/Battinf_applyAction.class
index 16b2e45..dd1f19c 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/Battinf_applyAction.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/Battinf_applyAction.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$5.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$5.class
index 29e0764..316e2cc 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$5.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$5.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$6.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$6.class
index cee2dab..12264b6 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$6.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$6.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$7.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$7.class
index 6409d49..e5d5306 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$7.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$7.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$8.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$8.class
index ade149d..a67e0f0 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$8.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl$8.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl.class
index f585b65..5cbcf0b 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/Battinf_applyImpl.class
Binary files differ
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/Battinf_applyService.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/Battinf_applyService.class
index 8ef8922..21b387f 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/Battinf_applyService.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/Battinf_applyService.class
Binary files differ
diff --git a/gx_tieta/src/com/fgkj/actions/Battinf_applyAction.java b/gx_tieta/src/com/fgkj/actions/Battinf_applyAction.java
index c8b1848..ff238e8 100644
--- a/gx_tieta/src/com/fgkj/actions/Battinf_applyAction.java
+++ b/gx_tieta/src/com/fgkj/actions/Battinf_applyAction.java
@@ -97,6 +97,15 @@
 		result=tojson(model);
 		return SUCCESS;
 	}
+	//鏍规嵁鏈烘埧id鏌ヨ鍑虹敵璇蜂汉宸插鎵归�氳繃鐨勭數姹犵粍淇℃伅
+	public String serchById(){
+		Battinf_apply bapply=ActionUtil.getGson().fromJson(json, Battinf_apply.class);
+		User_inf uinf=(User_inf) getUser();
+		bapply.setApply_uid(uinf.getUId());
+		ServiceModel model=service.serchById(bapply);
+		result=tojson(model);
+		return SUCCESS;
+	}
 	
 	public String getResult() {
 		return result;
diff --git a/gx_tieta/src/com/fgkj/dao/impl/Battinf_applyImpl.java b/gx_tieta/src/com/fgkj/dao/impl/Battinf_applyImpl.java
index 46de4fa..696012f 100644
--- a/gx_tieta/src/com/fgkj/dao/impl/Battinf_applyImpl.java
+++ b/gx_tieta/src/com/fgkj/dao/impl/Battinf_applyImpl.java
@@ -445,6 +445,81 @@
 		return battgroupid;
 	}
 	
+	//鏍规嵁鏈烘埧id鏌ヨ鍑虹敵璇蜂汉宸插鎵归�氳繃鐨勭數姹犵粍淇℃伅
+	public List serchById(Object obj){
+		Battinf_apply bapply=(Battinf_apply) obj;
+		BattInf binf=bapply.getBinf();
+		String sql="select * from db_battinf.tb_battinf_apply where stationid=? and apply_uid=? ";
+		List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[] {binf.getStationId(),bapply.getApply_uid()}, new CallBack() {
+			
+			@Override
+			public List getResults(ResultSet rs) {
+				List list=new ArrayList();
+				try {
+					while(rs.next()) {
+						Battinf_apply apply=new Battinf_apply();
+						apply.setNum(rs.getInt("num"));
+						apply.setApply_uid(rs.getInt("apply_uid"));
+						apply.setApply_name((new User_infImpl()).changeUidToUname(apply.getApply_uid()));
+						apply.setConfrim_uid(rs.getInt("confrim_uid"));
+						apply.setConfirm_name((new User_infImpl()).changeUidToUname(apply.getConfrim_uid()));
+						apply.setApply_en(rs.getInt("apply_en"));
+						apply.setCheck_uid(rs.getInt("check_uid"));
+						apply.setCheck_en(rs.getInt("check_en"));
+						apply.setCheck_uname((new User_infImpl()).changeUidToUname(apply.getCheck_en()));
+						apply.setApply_date(rs.getTimestamp("apply_date"));
+						apply.setApply_note(rs.getString("apply_note"));
+						
+						BattInf binf=new BattInf();
+						binf.setStationId(rs.getString("stationId"));
+						binf.setStationName(rs.getString("stationName"));
+						binf.setStationName1(rs.getString("stationName1"));
+						binf.setStationName2(rs.getString("stationName2"));
+						binf.setStationName3(rs.getString("stationName3"));
+						binf.setStationName4(rs.getString("stationName4"));
+						binf.setStationName5(rs.getString("stationName5"));
+						binf.setStationIp(rs.getString("stationIp"));
+						binf.setFBSDeviceId(rs.getInt("fBSDeviceId"));
+						
+						binf.setFbsDeviceIp(rs.getString("fbsDeviceIp"));
+						binf.setFbsDeviceIp_YM(rs.getString("fbsDeviceIp_YM"));
+						binf.setFbsDeviceIp_WG(rs.getString("fbsDeviceIp_WG"));
+						binf.setFBSDeviceName(rs.getString("fBSDeviceName"));
+						binf.setGroupIndexInFBSDevice(rs.getInt("groupIndexInFBSDevice"));
+						binf.setBattGroupId(rs.getInt("battGroupId"));
+						binf.setBattGroupNum(rs.getInt("battGroupNum"));
+						binf.setBattGroupName(rs.getString("battGroupName"));
+						binf.setFloatVolLevel(rs.getFloat("floatVolLevel"));
+						binf.setOfflineVolLevel(rs.getFloat("offlineVolLevel"));
+						binf.setBattFloatCurrent(rs.getFloat("battFloatCurrent"));
+						binf.setMonCount(rs.getInt("monCount"));
+						binf.setMonCapStd(rs.getFloat("monCapStd"));
+						binf.setMonVolStd(rs.getFloat("monVolStd"));
+						binf.setMonResStd(rs.getFloat("monResStd"));
+						binf.setMonSerStd(rs.getFloat("monSerStd"));
+						binf.setMonVolLowToAvg(rs.getFloat("monVolLowToAvg"));
+						binf.setBattProducer(rs.getString("battProducer"));
+						binf.setBattModel(rs.getString("battModel"));
+						binf.setBattProductDate(rs.getDate("battProductDate"));
+						binf.setBattInUseDate(rs.getDate("battInUseDate"));
+						binf.setLoad_curr(rs.getFloat("load_curr"));
+						binf.setInstall_user(rs.getString("install_user"));
+                        binf.setDisCurrMax(rs.getFloat("disCurrMax"));
+                        binf.setStation_phone(rs.getString("station_phone"));
+                        
+						apply.setBinf(binf);
+						list.add(apply);
+					}
+				} catch (SQLException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
+				return list;
+			}
+		});
+		return list;
+	}
+	
     //鏌ヨ鍑哄鏍稿畬鐨勭敵璇峰拰寰呭鏍哥殑鐢宠
 	public List serchByInfo(Object obj) {
 		Battinf_apply bapply=(Battinf_apply) obj;
@@ -669,7 +744,7 @@
 		Battinf_applyImpl bimpl=new Battinf_applyImpl();
 		Battinf_apply bapply=new Battinf_apply();
 		bapply.setApply_date(ActionUtil.getSimpDate(date2));
-		bapply.setApply_uid(1002);
+		bapply.setApply_uid(1004);
 		
 		
 		BattInf binf=new BattInf();
@@ -680,7 +755,7 @@
 		binf.setStationName4("BTS璁惧");
 		binf.setStationName5("娌欐磱鍘�");
 		
-		binf.setStationId("4011100");
+		binf.setStationId("42000626");
 		binf.setStationIp("");
 		binf.setFBSDeviceId(910001000);
 		binf.setFbsDeviceIp("127.0.0.1");
@@ -732,5 +807,7 @@
 		for (Fbs9100_state f : list) {
 			System.out.println(f.getDev_id()+"   "+f.getDev_commcount());
 		}*/
+		List list=bimpl.serchById(bapply);
+		System.err.println(list.size());
 	}
 }
diff --git a/gx_tieta/src/com/fgkj/services/Battinf_applyService.java b/gx_tieta/src/com/fgkj/services/Battinf_applyService.java
index 82d2899..16ec177 100644
--- a/gx_tieta/src/com/fgkj/services/Battinf_applyService.java
+++ b/gx_tieta/src/com/fgkj/services/Battinf_applyService.java
@@ -152,4 +152,18 @@
 		}
 		return model;
 	}
+    
+	//鏍规嵁鏈烘埧id鏌ヨ鍑虹敵璇蜂汉宸插鎵归�氳繃鐨勭數姹犵粍淇℃伅
+	public ServiceModel serchById(Object obj) {
+		List list=((Battinf_applyImpl)dao).serchById(obj);
+		if(list!=null&&list.size()>0){
+			model.setCode(1);
+			model.setData(list);
+			model.setMsg("鏌ヨ鎴愬姛!");
+		}else{
+			model.setCode(0);
+			model.setMsg("鏌ヨ澶辫触!");
+		}
+		return model;
+	}
 }

--
Gitblit v1.9.1