三好学生判断 测试

This commit is contained in:
zhy
2025-10-20 00:07:17 +08:00
parent 374a508737
commit efc8c31f32

View File

@@ -708,7 +708,11 @@ public class CphGoodApplyServiceImpl extends ServiceImpl<CphGoodApplyMapper, Cph
for (Map<String,Object> course : cphStuScoreMiddleCjList) {
BigDecimal bigDecimal = new BigDecimal(course.get("cj").toString());
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("考查课没有达到中等及以上");
}
}
}