| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | | * @param examPaperVO 查询参数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getList") |
| | | public R getList(ExamPaperVO examPaperVO) { |
| | | List<ExamPaperVO>list = examPaperService.getList(examPaperVO); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | | * @param examPaperVO 查询参数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getLatest") |
| | | public R getLatest(ExamPaperVO examPaperVO) { |
| | | ExamPaperVO latest= examPaperService.getLatest(examPaperVO); |
| | | return R.data(latest); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增 |
| | |
| | | "'" + "," + "'" + examPaper.getExamType() + |
| | | "'" + "," + "'" + format + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | } |
| | | return R.status(save); |
| | | } |
| | |
| | | ",start_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getStartTime()) + "'" + |
| | | " " + "where id = " + "'" + exam.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | return R.status(b); |
| | | } |
| | |
| | | //内网同步 |
| | | String s1 = "delete from ksxt_exam where id = " + "'" + id + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | }); |
| | | boolean temp = examPaperService.removeByIds(Func.toLongList(ids)); |
| | | return R.status(temp); |
| | |
| | | */ |
| | | @PostMapping("/getExamDetail") |
| | | public R getExamDetail(@RequestBody ExamPaperVO examPaper) { |
| | | System.out.println("examPaper = " + examPaper); |
| | | // System.out.println("examPaper = " + examPaper); |
| | | return R.data(examPaperService.getExamDetail(examPaper)); |
| | | } |
| | | |
| | |
| | | + ",confirm_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getConfirmTime()) + "'" |
| | | + " " + "where id = " + "'" + exam.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | //返回数据 |
| | | return R.data(status); |
| | |
| | | * |
| | | * @param examPaper 报名培训申请信息对象 |
| | | */ |
| | | @PostMapping("/update-audit") |
| | | @PostMapping(value = "/update-audit",produces = "application/json;charset=UTF-8") |
| | | public R updateAudit(@RequestBody ExamPaper examPaper) { |
| | | //查询之前的审核状态,如果审核状态没有发生改变,则不会去修改审核信息 |
| | | ExamPaper paper = examPaperService.getById(examPaper.getId()); |
| | |
| | | + ",audit_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(examPaper.getAuditTime()) + "'" |
| | | + " " + "where id = " + "'" + examPaper.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | //查询当前考试已报名的人员培训报名数据集合 |
| | | List<TrainingRegistration> trainingRegistrations = examPaperService.getTrainList(examPaper.getId()); |
| | |
| | | + ",audit_status = " + "'" + trainingRegistration.getAuditStatus() + "'" |
| | | + " " + "where id = " + "'" + trainingRegistration.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s2); |
| | | myAsyncService.FTP(s2); |
| | | myAsyncService.dataSync(s2); |
| | | } |
| | | }); |
| | | } |