| | |
| | | return R.status(examScoreService.updateById(examScore)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 缺考标记修改 |
| | | * |
| | | * @param examScore 考试成绩信息对象 |
| | | */ |
| | | @PostMapping("/updateAbsent") |
| | | public R updateAbsent(@RequestBody ExamScore examScore) { |
| | | examScore.setQualified(3); |
| | | boolean status = examScoreService.updateByIdAndQualifiee(examScore); |
| | | |
| | | //内网数据推送 |
| | | String s1 = |
| | | "update exam_score set qualified = " + "'" + examScore.getQualified() + "'" + |
| | | " " + "where id = " + "'" + examScore.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | return R.status(status); |
| | | } |
| | | |
| | | /** |
| | | * 修改总成绩 |
| | | * |
| | |
| | | //格式化 |
| | | DecimalFormat decimalFormat = new DecimalFormat("00000"); |
| | | max++; |
| | | System.out.println("max = " + max); |
| | | result = pre + (decimalFormat.format(max)); |
| | | } |
| | | user.setSecuritynumber(result); |
| | |
| | | cjhz.put("sccj",sccj); |
| | | return R.data(cjhz); |
| | | } |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param query page,size |
| | | */ |
| | | @GetMapping("/score-page") |
| | | public R<IPage<ExamScoreVO>> scorePage(Query query, String deptid, String jurisdiction) { |
| | | IPage<ExamScoreVO> pages = examScoreService.scorePage(Condition.getPage(query),deptid,jurisdiction); |
| | | return R.data(pages); |
| | | } |
| | | } |