public boolean updateBathcTrackDeal(String [] idArr,String [] statusArr,String [] remarkArr,String [] sourceArr,String [] ldidArr,User user){ StringBuffer stringBuffer = new StringBuffer(); List<Object> list = new ArrayList<>(); Object[][]params = null; List<DataTrackRecord> dataTrackRecords =null; DataTrackRecord dtr = null; String vulnStage = ""; for(int i=0;i<idArr.length;i++){ dataTrackRecords = new ArrayList<DataTrackRecord>(); dtr = new DataTrackRecord(); if(Constant.UNFINISH.equals(statusArr[i])){ vulnStage = "漏洞确认"; }else if(Constant.SURE_FINISH.equals(statusArr[i])){ vulnStage = "流程结束"; }else{ vulnStage = "漏洞整改"; } list.add(ldidArr[i]); list.add(statusArr[i]); list.add(user.getStr("name")); list.add(user.getInt("id")); list.add(ToolUtil.getCurrentTime()); list.add(remarkArr[i]); list.add(vulnStage); list.add("");//设置文件名称空字符串
//二维数组赋值 if (list.size() > 0) { params = new Object[list.size()/idsArr.length][idsArr.length]; for(int i=0;i< list.size()/idsArr.length;i++) { for (int a = 0; a < idsArr.length; a++) { if(i==0) { params[i][a] = list.get(a); }else{ params[i][a] = list.get(idsArr.length*i+a); } } } }