60 |
* |
* |
61 |
*/ |
*/ |
62 |
private String udtraekIkkeDaekket() { |
private String udtraekIkkeDaekket() { |
63 |
AdressSearch search = (AdressSearch) getServletContext().getAttribute("search"); |
AddressSearch search = (AddressSearch) getServletContext().getAttribute("search"); |
64 |
if (search == null) { |
if (search == null) { |
65 |
return "data struktur ikke indlæst"; |
return "data struktur ikke indlæst"; |
66 |
} |
} |
87 |
|
|
88 |
protected String udtraekSammenligning(HttpServletRequest request) throws IOException { |
protected String udtraekSammenligning(HttpServletRequest request) throws IOException { |
89 |
|
|
90 |
AdressSearch search = (AdressSearch) getServletContext().getAttribute("search"); |
AddressSearch search = (AddressSearch) getServletContext().getAttribute("search"); |
91 |
if (search == null) { |
if (search == null) { |
92 |
return "data struktur ikke indlæst"; |
return "data struktur ikke indlæst"; |
93 |
} |
} |
98 |
antal_dage = Integer.parseInt( request.getParameter("antaldage") ); |
antal_dage = Integer.parseInt( request.getParameter("antaldage") ); |
99 |
} |
} |
100 |
|
|
101 |
|
int antal_nyfejl_glok = 0; |
102 |
|
int antal_nyfejl_glfejl = 0; |
103 |
|
int antal_nyok_glfejl = 0; |
104 |
|
int antal_nyok_glgoogle = 0; |
105 |
|
int antal_nygoogle_glgoogle = 0; |
106 |
|
int antal_nyok_glok = 0; |
107 |
|
|
108 |
try { |
try { |
109 |
StringBuilder sb = new StringBuilder(); |
StringBuilder sb = new StringBuilder(); |
110 |
sb.append("besked;postnr;adresse;gl status;ny status;ny split\n"); |
sb.append("besked;postnr;adresse;gl status;ny status;ny split;ny vej\n"); |
111 |
|
|
112 |
List<LoggedAddress> addrList = DatabaseLayer.getLoggedAdresses(antal_dage); |
List<LoggedAddress> addrList = DatabaseLayer.getLoggedAdresses(antal_dage); |
113 |
|
|
119 |
if (addr.status != 10 ) {//Hvis gl service kunne finde adressen så er vi ude i en regression |
if (addr.status != 10 ) {//Hvis gl service kunne finde adressen så er vi ude i en regression |
120 |
|
|
121 |
appendLogLine("ny fejler, gl ok", sb, addr, res); |
appendLogLine("ny fejler, gl ok", sb, addr, res); |
122 |
|
antal_nyfejl_glok++; |
123 |
|
|
124 |
} else { |
} else { |
125 |
appendLogLine("ny fejler, gl fejler !!!", sb, addr, res); |
appendLogLine("ny fejler, gl fejler !!!", sb, addr, res); |
126 |
|
antal_nyfejl_glfejl++; |
127 |
} |
} |
128 |
|
|
129 |
} else { |
} else { |
130 |
if (addr.status == 10) { |
if (addr.status == 10) { |
131 |
appendLogLine("ny OK, gl fejler", sb, addr, res); |
appendLogLine("ny OK, gl fejler", sb, addr, res); |
132 |
|
antal_nyok_glfejl++; |
133 |
|
|
134 |
} else if (addr.status == 12 ) { |
} else if (addr.status == 12 ) { |
135 |
|
|
136 |
if (res.google == false && res.osm == false) { |
if (res.google == false && res.osm == false) { |
137 |
|
|
138 |
appendLogLine("ny Direkte, gl Google", sb, addr, res); |
appendLogLine("ny Direkte, gl Google", sb, addr, res); |
139 |
} |
antal_nyok_glgoogle++; |
140 |
|
} else { |
141 |
|
appendLogLine("ny Google, gl Google", sb, addr, res); |
142 |
|
antal_nygoogle_glgoogle++; |
143 |
|
} |
144 |
|
} else { |
145 |
|
antal_nyok_glok++; |
146 |
} |
} |
147 |
} |
} |
148 |
|
|
153 |
// |
// |
154 |
} |
} |
155 |
} |
} |
156 |
|
|
157 |
} |
} |
158 |
sb.append("Antal adresser testet: ;").append(addrList.size()).append(";;;\n"); |
|
159 |
sb.append("Antal dage: ;").append( antal_dage ).append(";;;\n"); |
sb.append("Antal dage: ;").append( antal_dage ).append(";;;\n"); |
160 |
|
sb.append("Antal adresser testet: ;").append(addrList.size()).append(";;;\n"); |
161 |
|
sb.append("Antal ny ok, gl ok: ;").append( antal_nyok_glok ).append(";;;\n"); |
162 |
|
sb.append("Antal ny ok, gl google: ;").append( antal_nyok_glgoogle ).append(";;;\n"); |
163 |
|
sb.append("Antal ny ok, gl fejl: ;").append( antal_nyok_glfejl ).append(";;;\n"); |
164 |
|
sb.append("Antal ny google, gl google: ;").append( antal_nygoogle_glgoogle ).append(";;;\n"); |
165 |
|
sb.append("Antal ny fejl, gl ok: ;").append( antal_nyfejl_glok ).append(";;;\n"); |
166 |
|
sb.append("Antal ny fejl, gl fejl: ;").append( antal_nyfejl_glfejl ).append(";;;\n"); |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
return sb.toString(); |
return sb.toString(); |
184 |
.append(addr.status).append(";") |
.append(addr.status).append(";") |
185 |
.append(res.status).append(";") |
.append(res.status).append(";") |
186 |
.append(res.splitResult).append(";") |
.append(res.splitResult).append(";") |
187 |
|
.append(res.vej) |
188 |
.append("\n"); |
.append("\n"); |
189 |
|
|
190 |
} |
} |