teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

SQLの取得元を記載

2017/08/03 10:00

投稿

pilepierce
pilepierce

スコア13

title CHANGED
File without changes
body CHANGED
@@ -18,15 +18,15 @@
18
18
  String keyAddress = null;
19
19
  String keyWebId = null;
20
20
 
21
- String[] Recs = StringUtil.extractArrayString(Result, "\n");
21
+ String[] Recs = StringUtil.extractArrayString(Result, "\n"); //SQLから取得
22
22
 
23
23
  for(String rec : Recs) {
24
24
 
25
- String[] Columns = StringUtil.extractArrayString(rec, "\t");
25
+ String[] Columns = StringUtil.extractArrayString(rec, "\t"); //SQLから取得
26
-
26
+ keyWebId = resultSqlMailList[RESULT_SQL_WEBSITE_ID]; //SQLから取得
27
27
  for(int i=0; i<3; i++) {
28
28
 
29
- keyAddress = Columns[i+1];
29
+ keyAddress = Columns[i+1]; // SQLから取得
30
30
 
31
31
  if(StringUtil.isNull(keyAddress)) {
32
32
  continue;
@@ -36,9 +36,8 @@
36
36
 
37
37
  if(Map.containsKey(KeyInfo)) {
38
38
 
39
- // Map更新
40
39
  Map.put(KeyInfo, List);
41
- }
40
+ }
42
41
  } // End for
43
42
  } // End for
44
43
  // 出力データ整形