| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.utils.arg; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | |
| | | * @param examScore 考试成绩信息对象 |
| | | */ |
| | | @PostMapping("/updateExamScore") |
| | | public R updateExamScore(@RequestBody ExamScore examScore) { |
| | | public R updateExamScore(@RequestBody ExamScore examScore) throws Exception { |
| | | if (null!=examScore.getLearnGrade() && null!=examScore.getTheoryGrade()){ |
| | | if (examScore.getTheoryGrade()>=60 && examScore.getLearnGrade()>=60){ |
| | | //合格 |
| | |
| | | //不合格 |
| | | examScore.setQualified(1); |
| | | } |
| | | // int totalSocre = examScore.getLearnGrade()+examScore.getTheoryGrade(); |
| | | // examScore.setAllGrade(Math.round(totalSocre/2)); |
| | | } |
| | | //内网修改 |
| | | arg.test01(arg.url+"/examScore/update",examScore); |
| | | //本地修改 |
| | | return R.status(examScoreService.updateById(examScore)); |
| | | } |
| | | |