zengh
2021-07-17 5cd15844ea0017f2b42fafbe59fd35d943df2230
src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
@@ -28,11 +28,14 @@
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.exam.entity.ExamPaper;
import org.springblade.modules.exam.service.ExamPaperService;
import org.springblade.modules.exam.vo.ExamPaperSubjectVO;
import org.springblade.modules.exam.vo.ExamPaperVO;
import org.springblade.modules.exam.wrapper.ExamPaperWrapper;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
/**
@@ -46,6 +49,7 @@
public class ExamPaperController extends BladeController {
   private final ExamPaperService examPaperService;
   /**
    * 详情
@@ -128,9 +132,22 @@
   @GetMapping("/queryPagerSubject")
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "考试题目绑定", notes = "传入exam")
   public R<ExamPaperVO> queryPagerSubject(@ApiParam(value = "主键集合") ExamPaper exam) {
      ExamPaperVO subject = examPaperService.queryPagerSubject(exam);
   public R<ExamPaperSubjectVO> queryPagerSubject(@ApiParam(value = "主键集合") ExamPaper exam) {
      ExamPaperSubjectVO subject = examPaperService.queryPagerSubject(exam);
      return R.data(subject);
   }
   /**
    * 返回当前时间
    */
   @GetMapping("/getdate")
   @ApiOperationSupport(order = 9)
   public R getdate() {
      Date date = new Date();
      String strDateFormat = "yyyy-MM-dd HH:mm:ss";
      SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
      System.out.println(sdf.format(date));
      return R.data(sdf.format(date));
   }
}