From 2c592928efe30b98538befb7f12471a2f95741b5 Mon Sep 17 00:00:00 2001
From: 星伟 <星伟@192.168.10.34>
Date: 星期三, 10 十月 2018 10:35:23 +0800
Subject: [PATCH] 电池配组

---
 gx_tieta/src/com/fgkj/dao/impl/BatttestdatastopDAOImpl.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/gx_tieta/src/com/fgkj/dao/impl/BatttestdatastopDAOImpl.java b/gx_tieta/src/com/fgkj/dao/impl/BatttestdatastopDAOImpl.java
index 9edaba7..a13256c 100644
--- a/gx_tieta/src/com/fgkj/dao/impl/BatttestdatastopDAOImpl.java
+++ b/gx_tieta/src/com/fgkj/dao/impl/BatttestdatastopDAOImpl.java
@@ -17,6 +17,7 @@
 import com.fgkj.db.IDatabaseName;
 import com.fgkj.dto.Alarm_param;
 import com.fgkj.dto.BattInf;
+import com.fgkj.dto.BattInf_Rebuild;
 import com.fgkj.dto.Batt_Maint_Dealarm;
 import com.fgkj.dto.Batttestdata;
 import com.fgkj.dto.Batttestdata_inf;
@@ -423,6 +424,7 @@
  	//鐢垫睜閰嶇粍绠$悊(閲嶈)
  	public List serchMakeGroup(Object obj1,Object obj2){
  		    BattInf binf=(BattInf) obj1;
+ 		    List listr=(List) binf.getObj();
 	 		Batttestdata_inf tinf=(Batttestdata_inf) obj2;
 	 		String sql="select num,BattGroupId,test_record_count,test_type,data_new,data_available,record_num,test_starttime,record_time,test_timelong,group_vol," +
 					" test_curr,test_cap,mon_num,mon_vol " +
@@ -475,6 +477,18 @@
 			if(list!=null&&list.size()>0){
 	    		for(int i=0;i<list.size();i++){
 	    			Batttestdatastop sdata=list.get(i);
+	    			sdata.setNote(binf.getBattProducer());
+	    			for (int j = 0; j < listr.size(); j++) {
+	    				BattInf_Rebuild brinf=(BattInf_Rebuild) listr.get(j);
+						if(sdata.getMon_num()==brinf.getOld_monum()){
+							sdata.setMon_num(-1);
+							break;
+						}
+						if(sdata.getMon_num()==brinf.getNew_monum()){
+							sdata.setNote(brinf.getOld_battproducer());
+							break;
+						}
+					}
 	    			STDAH=binf.getMonCapStd();
 	    			MonomerVolType=binf.getMonVolStd();
 	    			

--
Gitblit v1.9.1