Commit dec964f0b91c15497e007239061b7e2840f0a9c7
1 parent
78353cf9
1.修复bug
Showing
1 changed file
with
4 additions
and
2 deletions
src/com/fh/controller/sunvote/paper/PaperController.java
... | ... | @@ -257,7 +257,8 @@ public class PaperController extends BaseController { |
257 | 257 | Integer liang = 0; |
258 | 258 | Integer jige = 0; |
259 | 259 | Integer difen = 0; |
260 | - Float total = Float.valueOf(list.get(i).get("TOTAL_SCORE") | |
260 | + Float total = list.get(i).get("TOTAL_SCORE") | |
261 | + .toString().isEmpty()?0:Float.valueOf(list.get(i).get("TOTAL_SCORE") | |
261 | 262 | .toString()); |
262 | 263 | |
263 | 264 | for (int j = 0; j < l.size(); j++) { |
... | ... | @@ -281,7 +282,8 @@ public class PaperController extends BaseController { |
281 | 282 | jige_sum += jige; |
282 | 283 | difen_sum += difen; |
283 | 284 | num_sum += studentlist.size(); |
284 | - avg_sum += Float.valueOf(list.get(i).get("AVG_SCORE") | |
285 | + avg_sum += list.get(i).get("AVG_SCORE") | |
286 | + .toString().isEmpty()?0:Float.valueOf(list.get(i).get("AVG_SCORE") | |
285 | 287 | .toString()); |
286 | 288 | |
287 | 289 | data.put("you", you); | ... | ... |