Commit 437daa5a5b198c4791452be372a8d39d4ccbbed6
1 parent
11a67788
1.轻松考-试卷详情(teacher_report_test.jsp)学号长度过长。解决:将integer类型改为double类型
Showing
1 changed file
with
3 additions
and
1 deletions
src/com/fh/controller/sunvote/report/ReportController.java
| ... | ... | @@ -480,7 +480,9 @@ public class ReportController extends BaseController { |
| 480 | 480 | String n1 = o1.getString("NUMBER"); |
| 481 | 481 | String n2 = o2.getString("NUMBER"); |
| 482 | 482 | if(n1 != null && n2 != null){ |
| 483 | - return Integer.parseInt(n1) - Integer.parseInt(n2); | |
| 483 | + Double d= Double.parseDouble(n1) - Double.parseDouble(n2); | |
| 484 | + | |
| 485 | + return Integer.valueOf(d.intValue()); | |
| 484 | 486 | } |
| 485 | 487 | } |
| 486 | 488 | return o2score - o1score > 0 ? 1 : -1; | ... | ... |