diff --git a/module-examine/src/main/java/ink/wgink/module/examine/controller/route/paper/question/PaperQuestionRouteController.java b/module-examine/src/main/java/ink/wgink/module/examine/controller/route/paper/question/PaperQuestionRouteController.java new file mode 100644 index 00000000..a6b8371e --- /dev/null +++ b/module-examine/src/main/java/ink/wgink/module/examine/controller/route/paper/question/PaperQuestionRouteController.java @@ -0,0 +1,28 @@ +package ink.wgink.module.examine.controller.route.paper.question; + +import ink.wgink.interfaces.consts.ISystemConstant; +import io.swagger.annotations.Api; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +/** + * @ClassName: PaperQuestionRouteController + * @Description: 试卷试题 + * @Author: wanggeng + * @Date: 2022/5/17 10:13 + * @Version: 1.0 + */ +@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "试卷试题路由") +@Controller +@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/paper/question") +public class PaperQuestionRouteController { + + @GetMapping("list") + public ModelAndView list() { + ModelAndView modelAndView = new ModelAndView("paper/question/list"); + return modelAndView; + } + +} diff --git a/module-examine/src/main/resources/mybatis/mapper/paper/paper-mapper.xml b/module-examine/src/main/resources/mybatis/mapper/paper/paper-mapper.xml index b67c7709..ded484fd 100644 --- a/module-examine/src/main/resources/mybatis/mapper/paper/paper-mapper.xml +++ b/module-examine/src/main/resources/mybatis/mapper/paper/paper-mapper.xml @@ -50,7 +50,7 @@ `gmt_modified` datetime DEFAULT NULL, `is_delete` int(1) DEFAULT '0', PRIMARY KEY (`id`,`paper_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷'; diff --git a/module-examine/src/main/resources/mybatis/mapper/paper/paper-question-mapper.xml b/module-examine/src/main/resources/mybatis/mapper/paper/paper-question-mapper.xml index ae69fbc3..a23f6be1 100644 --- a/module-examine/src/main/resources/mybatis/mapper/paper/paper-question-mapper.xml +++ b/module-examine/src/main/resources/mybatis/mapper/paper/paper-question-mapper.xml @@ -20,9 +20,9 @@ `paper_question_id` char(36) NOT NULL COMMENT '主键', `paper_id` char(36) DEFAULT NULL COMMENT '试卷ID', `question_id` varchar(255) DEFAULT NULL COMMENT '试题ID', - `question_sort` varchar(255) DEFAULT 'ZZZ-000' COMMENT '试题排序' - PRIMARY KEY (`id`,`paper_question_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + `question_sort` varchar(255) DEFAULT 'ZZZ-000' COMMENT '试题排序', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷试题'; diff --git a/module-examine/src/main/resources/mybatis/mapper/question/question-mapper.xml b/module-examine/src/main/resources/mybatis/mapper/question/question-mapper.xml index e47a9c39..59081b21 100644 --- a/module-examine/src/main/resources/mybatis/mapper/question/question-mapper.xml +++ b/module-examine/src/main/resources/mybatis/mapper/question/question-mapper.xml @@ -49,7 +49,7 @@ `gmt_modified` datetime DEFAULT NULL, `is_delete` int(1) DEFAULT '0', PRIMARY KEY (`id`,`question_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试题'; diff --git a/module-examine/src/main/resources/mybatis/mapper/question/question-options-mapper.xml b/module-examine/src/main/resources/mybatis/mapper/question/question-options-mapper.xml index e9f5f0d6..a991d26c 100644 --- a/module-examine/src/main/resources/mybatis/mapper/question/question-options-mapper.xml +++ b/module-examine/src/main/resources/mybatis/mapper/question/question-options-mapper.xml @@ -18,7 +18,7 @@ `question_option` varchar(2) DEFAULT NULL COMMENT '标识', `content` text COMMENT '内容', PRIMARY KEY (`id`,`question_options_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试题选项'; diff --git a/module-examine/src/main/resources/templates/paper/list.html b/module-examine/src/main/resources/templates/paper/list.html index 6e0a4517..c0ac1a13 100644 --- a/module-examine/src/main/resources/templates/paper/list.html +++ b/module-examine/src/main/resources/templates/paper/list.html @@ -281,7 +281,7 @@ // 试卷考题 function openPaperQuestion(title, questionType, data, count) { top.dialog.open({ - url: top.restAjax.path('route/pager/question/list?paperId={paperId}&questionType={questionType}&selectCount={count}', [data.paperId, questionType, count]), + url: top.restAjax.path('route/paper/question/list?paperId={paperId}&questionType={questionType}&selectCount={count}', [data.paperId, questionType, count]), title: '【'+ title +'】试题列表', width: '1000px', height: '80%', diff --git a/module-examine/src/main/resources/templates/paper/question/list-select.html b/module-examine/src/main/resources/templates/paper/question/list-select.html new file mode 100644 index 00000000..0264a98d --- /dev/null +++ b/module-examine/src/main/resources/templates/paper/question/list-select.html @@ -0,0 +1,388 @@ + + + + + + + + + + + + + +
+
+
+
+
+
+
+ +
+
+ +
+ +
+ +
+
+ + +
+ + +
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/module-examine/src/main/resources/templates/question/list-select.html b/module-examine/src/main/resources/templates/question/list-select.html index e47e34f6..18407a46 100644 --- a/module-examine/src/main/resources/templates/question/list-select.html +++ b/module-examine/src/main/resources/templates/question/list-select.html @@ -1,7 +1,7 @@ - > + @@ -20,12 +20,6 @@
-
- -
-
- -
-
-
- -
- - + +