三好学生判断 测试
This commit is contained in:
@@ -708,7 +708,11 @@ public class CphGoodApplyServiceImpl extends ServiceImpl<CphGoodApplyMapper, Cph
|
|||||||
for (Map<String,Object> course : cphStuScoreMiddleCjList) {
|
for (Map<String,Object> course : cphStuScoreMiddleCjList) {
|
||||||
BigDecimal bigDecimal = new BigDecimal(course.get("cj").toString());
|
BigDecimal bigDecimal = new BigDecimal(course.get("cj").toString());
|
||||||
if (bigDecimal.compareTo(new BigDecimal("70.00")) < 0) {
|
if (bigDecimal.compareTo(new BigDecimal("70.00")) < 0) {
|
||||||
throw new RuntimeException("考查课"+course.get("course_name").toString()+"没有达到中等及以上");
|
if(course.get("course_name")!= null){
|
||||||
|
throw new RuntimeException("考查课"+course.get("course_name").toString()+"没有达到中等及以上");
|
||||||
|
}else{
|
||||||
|
throw new RuntimeException("考查课没有达到中等及以上");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user