| | |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入exam") |
| | | public R save(@RequestBody ExamPaper exam) { |
| | | return R.status(examPaperService.save(exam)); |
| | | public R save(@RequestBody ExamPaper examPaper) { |
| | | boolean save = examPaperService.save(examPaper); |
| | | String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(examPaper.getStartTime()); |
| | | String s = "insert into ksxt_exam(id,exam_name,exam_type,start_time) " + |
| | | "values(" + "'" + examPaper.getId() + "'" + "," + "'" + examPaper.getExamName() + "'" + "," + "'" + examPaper.getExamType() + |
| | | "'" + "," +"'" + format + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.status(save); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "考试题目绑定", notes = "传入exam") |
| | | public R setPagerSubject(@ApiParam(value = "主键集合") ExamPaper exam) { |
| | | |
| | | return R.status(true); |
| | | } |
| | | |