From 0b2f4a97fab7d325fdf3e228bcab940f861954c7 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期四, 01 十一月 2018 13:50:26 +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..95ea981 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.getBattGroupId()==brinf.getOld_battgroupid()){
+ sdata.setMon_num(-1);
+ break;
+ }
+ if(sdata.getMon_num()==brinf.getNew_monum()&&sdata.getBattGroupId()==brinf.getNew_battgroupid()){
+ sdata.setNote(brinf.getOld_battproducer());
+ break;
+ }
+ }
STDAH=binf.getMonCapStd();
MonomerVolType=binf.getMonVolStd();
--
Gitblit v1.9.1