| | |
| | | Long sid = examScore.getId(); |
| | | String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(examScore.getExamTime()); |
| | | String s = "insert into exam_score(id,exam_time) " + |
| | | "values(" + "'" + sid + "'" + "," + "'" + |
| | | format + "'" + "," + "'" + ")"; |
| | | "values(" + "'" + sid + "'" + |
| | | "," + "'" +format + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //返回 |
| | | return R.status(save); |
| | |
| | | examScore.setAllGrade(Math.round((examScore.getLearnGrade() + examScore1.getTheoryGrade()) / 2)); |
| | | } |
| | | if (user.getAge()>50) { |
| | | examScore.setAllGrade(Integer.parseInt(String.valueOf(Math.round(examScore1.getTheoryGrade()*0.3))) |
| | | + Integer.parseInt(String.valueOf(Math.round(examScore1.getLearnGrade()*0.7)))); |
| | | examScore.setAllGrade(Integer.parseInt(String.valueOf(Math.round(examScore1.getTheoryGrade()*0.5))) |
| | | + Integer.parseInt(String.valueOf(Math.round(examScore1.getLearnGrade()*0.5)))); |
| | | } |
| | | } |
| | | //内网同步 |
| | |
| | | */ |
| | | @GetMapping("score-statistics") |
| | | @ApiOperation(value = "分数统计") |
| | | public R<List> scoreStatistics(HttpServletResponse response) { |
| | | return R.data(examScoreService.scoreStatistics()); |
| | | public R<List> scoreStatistics(HttpServletResponse response,String deptid,String jurisdiction) { |
| | | return R.data(examScoreService.scoreStatistics(deptid,jurisdiction)); |
| | | } |
| | | } |