| | |
| | | import org.springblade.modules.exam.service.ExamScoreService; |
| | | import org.springblade.modules.exam.util.SecurityPaperUtil; |
| | | import org.springblade.modules.exam.vo.ExamScoreVO; |
| | | import org.springblade.modules.exam.vo.UpdateParamVo; |
| | | import org.springblade.modules.system.entity.Role; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.service.IRoleService; |
| | |
| | | int max = userService.getSecurityPaperCount(pre); |
| | | String result = null; |
| | | if (max == 0) { |
| | | result = pre + "00000"; |
| | | result = pre + "00001"; |
| | | } else { |
| | | //格式化 |
| | | DecimalFormat decimalFormat = new DecimalFormat("00000"); |
| | |
| | | IPage<ExamScoreVO> pages = examScoreService.scorePage(Condition.getPage(query),deptid,jurisdiction); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 考试成绩及状态修改 |
| | | * @param updateParamVo |
| | | */ |
| | | @GetMapping("/update-exam-score") |
| | | public R updateExamScores(UpdateParamVo updateParamVo) { |
| | | boolean status = examScoreService.updateExamScore(updateParamVo); |
| | | return R.status(status); |
| | | } |
| | | |
| | | |
| | | } |