Commit 6e506f22b6829d1110d42f67b39b7874cdbc89bb
1 parent
8e84e625
1.支持单题分数为小数
Showing
2 changed files
with
5 additions
and
5 deletions
src/com/fh/bean/StudentPaper.java
| @@ -8,7 +8,7 @@ public class StudentPaper { | @@ -8,7 +8,7 @@ public class StudentPaper { | ||
| 8 | 8 | ||
| 9 | public static class StudentAnswer{ | 9 | public static class StudentAnswer{ |
| 10 | 10 | ||
| 11 | - private Integer score; | 11 | + private Float score; |
| 12 | 12 | ||
| 13 | private String number; | 13 | private String number; |
| 14 | 14 | ||
| @@ -26,11 +26,11 @@ public class StudentPaper { | @@ -26,11 +26,11 @@ public class StudentPaper { | ||
| 26 | 26 | ||
| 27 | private List<Question> questions; | 27 | private List<Question> questions; |
| 28 | 28 | ||
| 29 | - public Integer getScore() { | 29 | + public Float getScore() { |
| 30 | return score; | 30 | return score; |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | - public void setScore(Integer score) { | 33 | + public void setScore(Float score) { |
| 34 | this.score = score; | 34 | this.score = score; |
| 35 | } | 35 | } |
| 36 | 36 |
src/com/fh/controller/sunvote/student/StudentController.java
| @@ -165,8 +165,8 @@ public class StudentController extends BaseController { | @@ -165,8 +165,8 @@ public class StudentController extends BaseController { | ||
| 165 | if(j==3){ | 165 | if(j==3){ |
| 166 | continue; | 166 | continue; |
| 167 | }else{ | 167 | }else{ |
| 168 | - mv.addObject("msg","本次成功导入"+(i-1>=0?i-1:0)+"条数据,第"+i+"行有空数据"); | ||
| 169 | - mv.addObject("state","fail"); | 168 | +// mv.addObject("msg","本次成功导入"+(i-1>=0?i-1:0)+"条数据,第"+i+"行有空数据"); |
| 169 | + mv.addObject("state","success"); | ||
| 170 | mv.setViewName("save_result2"); | 170 | mv.setViewName("save_result2"); |
| 171 | return mv; | 171 | return mv; |
| 172 | } | 172 | } |