diff --git a/pom.xml b/pom.xml index 377002f629c1dcd2b8cfafb9f529f656a54b0813..5d5dfaf7b8daee56119903a2328b212689ac016b 100644 --- a/pom.xml +++ b/pom.xml @@ -221,6 +221,7 @@ rboat-quartz rboat-generator rboat-common + rboat-exam pom diff --git a/rboat-admin/pom.xml b/rboat-admin/pom.xml index 6111dd313ab50d85c8a1e25f5ad952a88959a8aa..265a1d5f929b76bfca27873413ce07ac9fb792b0 100644 --- a/rboat-admin/pom.xml +++ b/rboat-admin/pom.xml @@ -72,6 +72,12 @@ com.rboat rboat-generator + + + com.rboat + rboat-exam + 4.0.0 + diff --git a/rboat-admin/src/main/resources/application.yml b/rboat-admin/src/main/resources/application.yml index be02d943c43ed8861c925329d25eb0d5b97eaac7..798ae25900bf12df0011d867bbd174e42474486c 100644 --- a/rboat-admin/src/main/resources/application.yml +++ b/rboat-admin/src/main/resources/application.yml @@ -16,7 +16,7 @@ rboat: # 开发环境配置 server: # 服务器的HTTP端口,默认为80 - port: 80 + port: 88 servlet: # 应用的访问路径 context-path: / @@ -127,4 +127,4 @@ xss: # 排除链接(多个用逗号分隔) excludes: /system/notice/* # 匹配链接 - urlPatterns: /system/*,/monitor/*,/tool/* + urlPatterns: /system/*,/monitor/*,/tool/*,/exam/* diff --git a/rboat-exam/pom.xml b/rboat-exam/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..11093fbabc3ccbb14d81bf2a6aafe0b8c462d40b --- /dev/null +++ b/rboat-exam/pom.xml @@ -0,0 +1,33 @@ + + + + rboat + com.rboat + 4.0.0 + + 4.0.0 + + rboat-exam + + + 考试系统 + + + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + + com.rboat + rboat-framework + + + + + \ No newline at end of file diff --git a/rboat-exam/rboat-exam.iml b/rboat-exam/rboat-exam.iml new file mode 100644 index 0000000000000000000000000000000000000000..78b2cc53b203f0b97534bb1184cdc7b474339fb4 --- /dev/null +++ b/rboat-exam/rboat-exam.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestLibraryController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestLibraryController.java new file mode 100644 index 0000000000000000000000000000000000000000..d6850b686ed3dd19e7bedd04d867ed23caed7521 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestLibraryController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestLibrary; +import com.rboat.exam.service.IExamTestLibraryService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 题库Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/library") +public class ExamTestLibraryController extends BaseController +{ + private String prefix = "exam/library"; + + @Autowired + private IExamTestLibraryService examTestLibraryService; + + @RequiresPermissions("exam:library:view") + @GetMapping() + public String library() + { + return prefix + "/library"; + } + + /** + * 查询题库列表 + */ + @RequiresPermissions("exam:library:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestLibrary examTestLibrary) + { + startPage(); + List list = examTestLibraryService.selectExamTestLibraryList(examTestLibrary); + return getDataTable(list); + } + + /** + * 导出题库列表 + */ + @RequiresPermissions("exam:library:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestLibrary examTestLibrary) + { + List list = examTestLibraryService.selectExamTestLibraryList(examTestLibrary); + ExcelUtil util = new ExcelUtil(ExamTestLibrary.class); + return util.exportExcel(list, "library"); + } + + /** + * 新增题库 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存题库 + */ + @RequiresPermissions("exam:library:add") + @Log(title = "题库", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestLibrary examTestLibrary) + { + return toAjax(examTestLibraryService.insertExamTestLibrary(examTestLibrary)); + } + + /** + * 修改题库 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestLibrary examTestLibrary = examTestLibraryService.selectExamTestLibraryById(id); + mmap.put("examTestLibrary", examTestLibrary); + return prefix + "/edit"; + } + + /** + * 修改保存题库 + */ + @RequiresPermissions("exam:library:edit") + @Log(title = "题库", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestLibrary examTestLibrary) + { + return toAjax(examTestLibraryService.updateExamTestLibrary(examTestLibrary)); + } + + /** + * 删除题库 + */ + @RequiresPermissions("exam:library:remove") + @Log(title = "题库", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestLibraryService.deleteExamTestLibraryByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperChapterController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperChapterController.java new file mode 100644 index 0000000000000000000000000000000000000000..9271b8657650695d771a1bc2a90c4ffbe823281b --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperChapterController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestPaperChapter; +import com.rboat.exam.service.IExamTestPaperChapterService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 考试试卷章节Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/chapter") +public class ExamTestPaperChapterController extends BaseController +{ + private String prefix = "exam/chapter"; + + @Autowired + private IExamTestPaperChapterService examTestPaperChapterService; + + @RequiresPermissions("exam:chapter:view") + @GetMapping() + public String chapter() + { + return prefix + "/chapter"; + } + + /** + * 查询考试试卷章节列表 + */ + @RequiresPermissions("exam:chapter:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestPaperChapter examTestPaperChapter) + { + startPage(); + List list = examTestPaperChapterService.selectExamTestPaperChapterList(examTestPaperChapter); + return getDataTable(list); + } + + /** + * 导出考试试卷章节列表 + */ + @RequiresPermissions("exam:chapter:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestPaperChapter examTestPaperChapter) + { + List list = examTestPaperChapterService.selectExamTestPaperChapterList(examTestPaperChapter); + ExcelUtil util = new ExcelUtil(ExamTestPaperChapter.class); + return util.exportExcel(list, "chapter"); + } + + /** + * 新增考试试卷章节 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存考试试卷章节 + */ + @RequiresPermissions("exam:chapter:add") + @Log(title = "考试试卷章节", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestPaperChapter examTestPaperChapter) + { + return toAjax(examTestPaperChapterService.insertExamTestPaperChapter(examTestPaperChapter)); + } + + /** + * 修改考试试卷章节 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestPaperChapter examTestPaperChapter = examTestPaperChapterService.selectExamTestPaperChapterById(id); + mmap.put("examTestPaperChapter", examTestPaperChapter); + return prefix + "/edit"; + } + + /** + * 修改保存考试试卷章节 + */ + @RequiresPermissions("exam:chapter:edit") + @Log(title = "考试试卷章节", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestPaperChapter examTestPaperChapter) + { + return toAjax(examTestPaperChapterService.updateExamTestPaperChapter(examTestPaperChapter)); + } + + /** + * 删除考试试卷章节 + */ + @RequiresPermissions("exam:chapter:remove") + @Log(title = "考试试卷章节", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestPaperChapterService.deleteExamTestPaperChapterByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperController.java new file mode 100644 index 0000000000000000000000000000000000000000..8fae822bb4f3b940a284f1f83bddae249ac7036c --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestPaper; +import com.rboat.exam.service.IExamTestPaperService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 试卷Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/paper") +public class ExamTestPaperController extends BaseController +{ + private String prefix = "exam/paper"; + + @Autowired + private IExamTestPaperService examTestPaperService; + + @RequiresPermissions("exam:paper:view") + @GetMapping() + public String paper() + { + return prefix + "/paper"; + } + + /** + * 查询试卷列表 + */ + @RequiresPermissions("exam:paper:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestPaper examTestPaper) + { + startPage(); + List list = examTestPaperService.selectExamTestPaperList(examTestPaper); + return getDataTable(list); + } + + /** + * 导出试卷列表 + */ + @RequiresPermissions("exam:paper:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestPaper examTestPaper) + { + List list = examTestPaperService.selectExamTestPaperList(examTestPaper); + ExcelUtil util = new ExcelUtil(ExamTestPaper.class); + return util.exportExcel(list, "paper"); + } + + /** + * 新增试卷 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存试卷 + */ + @RequiresPermissions("exam:paper:add") + @Log(title = "试卷", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestPaper examTestPaper) + { + return toAjax(examTestPaperService.insertExamTestPaper(examTestPaper)); + } + + /** + * 修改试卷 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestPaper examTestPaper = examTestPaperService.selectExamTestPaperById(id); + mmap.put("examTestPaper", examTestPaper); + return prefix + "/edit"; + } + + /** + * 修改保存试卷 + */ + @RequiresPermissions("exam:paper:edit") + @Log(title = "试卷", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestPaper examTestPaper) + { + return toAjax(examTestPaperService.updateExamTestPaper(examTestPaper)); + } + + /** + * 删除试卷 + */ + @RequiresPermissions("exam:paper:remove") + @Log(title = "试卷", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestPaperService.deleteExamTestPaperByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperQuestionsController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperQuestionsController.java new file mode 100644 index 0000000000000000000000000000000000000000..fdddb333bb7591d383690817e22b13a3181ff7fc --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperQuestionsController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestPaperQuestions; +import com.rboat.exam.service.IExamTestPaperQuestionsService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 试卷章节试题Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/questions") +public class ExamTestPaperQuestionsController extends BaseController +{ + private String prefix = "exam/questions"; + + @Autowired + private IExamTestPaperQuestionsService examTestPaperQuestionsService; + + @RequiresPermissions("exam:questions:view") + @GetMapping() + public String questions() + { + return prefix + "/questions"; + } + + /** + * 查询试卷章节试题列表 + */ + @RequiresPermissions("exam:questions:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestPaperQuestions examTestPaperQuestions) + { + startPage(); + List list = examTestPaperQuestionsService.selectExamTestPaperQuestionsList(examTestPaperQuestions); + return getDataTable(list); + } + + /** + * 导出试卷章节试题列表 + */ + @RequiresPermissions("exam:questions:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestPaperQuestions examTestPaperQuestions) + { + List list = examTestPaperQuestionsService.selectExamTestPaperQuestionsList(examTestPaperQuestions); + ExcelUtil util = new ExcelUtil(ExamTestPaperQuestions.class); + return util.exportExcel(list, "questions"); + } + + /** + * 新增试卷章节试题 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存试卷章节试题 + */ + @RequiresPermissions("exam:questions:add") + @Log(title = "试卷章节试题", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestPaperQuestions examTestPaperQuestions) + { + return toAjax(examTestPaperQuestionsService.insertExamTestPaperQuestions(examTestPaperQuestions)); + } + + /** + * 修改试卷章节试题 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestPaperQuestions examTestPaperQuestions = examTestPaperQuestionsService.selectExamTestPaperQuestionsById(id); + mmap.put("examTestPaperQuestions", examTestPaperQuestions); + return prefix + "/edit"; + } + + /** + * 修改保存试卷章节试题 + */ + @RequiresPermissions("exam:questions:edit") + @Log(title = "试卷章节试题", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestPaperQuestions examTestPaperQuestions) + { + return toAjax(examTestPaperQuestionsService.updateExamTestPaperQuestions(examTestPaperQuestions)); + } + + /** + * 删除试卷章节试题 + */ + @RequiresPermissions("exam:questions:remove") + @Log(title = "试卷章节试题", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestPaperQuestionsService.deleteExamTestPaperQuestionsByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperTypeController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperTypeController.java new file mode 100644 index 0000000000000000000000000000000000000000..4497e48f4095c8d61dff323ace55f9e31f81f798 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperTypeController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestPaperType; +import com.rboat.exam.service.IExamTestPaperTypeService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 试卷类型Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/type") +public class ExamTestPaperTypeController extends BaseController +{ + private String prefix = "exam/type"; + + @Autowired + private IExamTestPaperTypeService examTestPaperTypeService; + + @RequiresPermissions("exam:type:view") + @GetMapping() + public String type() + { + return prefix + "/type"; + } + + /** + * 查询试卷类型列表 + */ + @RequiresPermissions("exam:type:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestPaperType examTestPaperType) + { + startPage(); + List list = examTestPaperTypeService.selectExamTestPaperTypeList(examTestPaperType); + return getDataTable(list); + } + + /** + * 导出试卷类型列表 + */ + @RequiresPermissions("exam:type:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestPaperType examTestPaperType) + { + List list = examTestPaperTypeService.selectExamTestPaperTypeList(examTestPaperType); + ExcelUtil util = new ExcelUtil(ExamTestPaperType.class); + return util.exportExcel(list, "type"); + } + + /** + * 新增试卷类型 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存试卷类型 + */ + @RequiresPermissions("exam:type:add") + @Log(title = "试卷类型", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestPaperType examTestPaperType) + { + return toAjax(examTestPaperTypeService.insertExamTestPaperType(examTestPaperType)); + } + + /** + * 修改试卷类型 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestPaperType examTestPaperType = examTestPaperTypeService.selectExamTestPaperTypeById(id); + mmap.put("examTestPaperType", examTestPaperType); + return prefix + "/edit"; + } + + /** + * 修改保存试卷类型 + */ + @RequiresPermissions("exam:type:edit") + @Log(title = "试卷类型", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestPaperType examTestPaperType) + { + return toAjax(examTestPaperTypeService.updateExamTestPaperType(examTestPaperType)); + } + + /** + * 删除试卷类型 + */ + @RequiresPermissions("exam:type:remove") + @Log(title = "试卷类型", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestPaperTypeService.deleteExamTestPaperTypeByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperUserController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperUserController.java new file mode 100644 index 0000000000000000000000000000000000000000..c3d338562e57c10e0c20b0b678517f1e45143ba4 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestPaperUserController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestPaperUser; +import com.rboat.exam.service.IExamTestPaperUserService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 试卷考生Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/user") +public class ExamTestPaperUserController extends BaseController +{ + private String prefix = "exam/user"; + + @Autowired + private IExamTestPaperUserService examTestPaperUserService; + + @RequiresPermissions("exam:user:view") + @GetMapping() + public String user() + { + return prefix + "/user"; + } + + /** + * 查询试卷考生列表 + */ + @RequiresPermissions("exam:user:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestPaperUser examTestPaperUser) + { + startPage(); + List list = examTestPaperUserService.selectExamTestPaperUserList(examTestPaperUser); + return getDataTable(list); + } + + /** + * 导出试卷考生列表 + */ + @RequiresPermissions("exam:user:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestPaperUser examTestPaperUser) + { + List list = examTestPaperUserService.selectExamTestPaperUserList(examTestPaperUser); + ExcelUtil util = new ExcelUtil(ExamTestPaperUser.class); + return util.exportExcel(list, "user"); + } + + /** + * 新增试卷考生 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存试卷考生 + */ + @RequiresPermissions("exam:user:add") + @Log(title = "试卷考生", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestPaperUser examTestPaperUser) + { + return toAjax(examTestPaperUserService.insertExamTestPaperUser(examTestPaperUser)); + } + + /** + * 修改试卷考生 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestPaperUser examTestPaperUser = examTestPaperUserService.selectExamTestPaperUserById(id); + mmap.put("examTestPaperUser", examTestPaperUser); + return prefix + "/edit"; + } + + /** + * 修改保存试卷考生 + */ + @RequiresPermissions("exam:user:edit") + @Log(title = "试卷考生", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestPaperUser examTestPaperUser) + { + return toAjax(examTestPaperUserService.updateExamTestPaperUser(examTestPaperUser)); + } + + /** + * 删除试卷考生 + */ + @RequiresPermissions("exam:user:remove") + @Log(title = "试卷考生", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestPaperUserService.deleteExamTestPaperUserByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestQuestionsController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestQuestionsController.java new file mode 100644 index 0000000000000000000000000000000000000000..f67fb5c89c2f39b16912b62e7e9ea4b86c6b2001 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestQuestionsController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestQuestions; +import com.rboat.exam.service.IExamTestQuestionsService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 试题Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/questions") +public class ExamTestQuestionsController extends BaseController +{ + private String prefix = "exam/questions"; + + @Autowired + private IExamTestQuestionsService examTestQuestionsService; + + @RequiresPermissions("exam:questions:view") + @GetMapping() + public String questions() + { + return prefix + "/questions"; + } + + /** + * 查询试题列表 + */ + @RequiresPermissions("exam:questions:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestQuestions examTestQuestions) + { + startPage(); + List list = examTestQuestionsService.selectExamTestQuestionsList(examTestQuestions); + return getDataTable(list); + } + + /** + * 导出试题列表 + */ + @RequiresPermissions("exam:questions:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestQuestions examTestQuestions) + { + List list = examTestQuestionsService.selectExamTestQuestionsList(examTestQuestions); + ExcelUtil util = new ExcelUtil(ExamTestQuestions.class); + return util.exportExcel(list, "questions"); + } + + /** + * 新增试题 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存试题 + */ + @RequiresPermissions("exam:questions:add") + @Log(title = "试题", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestQuestions examTestQuestions) + { + return toAjax(examTestQuestionsService.insertExamTestQuestions(examTestQuestions)); + } + + /** + * 修改试题 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestQuestions examTestQuestions = examTestQuestionsService.selectExamTestQuestionsById(id); + mmap.put("examTestQuestions", examTestQuestions); + return prefix + "/edit"; + } + + /** + * 修改保存试题 + */ + @RequiresPermissions("exam:questions:edit") + @Log(title = "试题", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestQuestions examTestQuestions) + { + return toAjax(examTestQuestionsService.updateExamTestQuestions(examTestQuestions)); + } + + /** + * 删除试题 + */ + @RequiresPermissions("exam:questions:remove") + @Log(title = "试题", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestQuestionsService.deleteExamTestQuestionsByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestUserAnswerController.java b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestUserAnswerController.java new file mode 100644 index 0000000000000000000000000000000000000000..6e6f3e0c2ab2b4fc746ac52cb1452326c06f7578 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/controller/ExamTestUserAnswerController.java @@ -0,0 +1,125 @@ +package com.rboat.exam.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.rboat.common.annotation.Log; +import com.rboat.common.enums.BusinessType; +import com.rboat.exam.domain.ExamTestUserAnswer; +import com.rboat.exam.service.IExamTestUserAnswerService; +import com.rboat.common.core.controller.BaseController; +import com.rboat.common.core.domain.AjaxResult; +import com.rboat.common.utils.poi.ExcelUtil; +import com.rboat.common.core.page.TableDataInfo; + +/** + * 考生答题Controller + * + * @author rboat + * @date 2019-09-02 + */ +@Controller +@RequestMapping("/exam/answer") +public class ExamTestUserAnswerController extends BaseController +{ + private String prefix = "exam/answer"; + + @Autowired + private IExamTestUserAnswerService examTestUserAnswerService; + + @RequiresPermissions("exam:answer:view") + @GetMapping() + public String answer() + { + return prefix + "/answer"; + } + + /** + * 查询考生答题列表 + */ + @RequiresPermissions("exam:answer:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ExamTestUserAnswer examTestUserAnswer) + { + startPage(); + List list = examTestUserAnswerService.selectExamTestUserAnswerList(examTestUserAnswer); + return getDataTable(list); + } + + /** + * 导出考生答题列表 + */ + @RequiresPermissions("exam:answer:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ExamTestUserAnswer examTestUserAnswer) + { + List list = examTestUserAnswerService.selectExamTestUserAnswerList(examTestUserAnswer); + ExcelUtil util = new ExcelUtil(ExamTestUserAnswer.class); + return util.exportExcel(list, "answer"); + } + + /** + * 新增考生答题 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存考生答题 + */ + @RequiresPermissions("exam:answer:add") + @Log(title = "考生答题", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ExamTestUserAnswer examTestUserAnswer) + { + return toAjax(examTestUserAnswerService.insertExamTestUserAnswer(examTestUserAnswer)); + } + + /** + * 修改考生答题 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") String id, ModelMap mmap) + { + ExamTestUserAnswer examTestUserAnswer = examTestUserAnswerService.selectExamTestUserAnswerById(id); + mmap.put("examTestUserAnswer", examTestUserAnswer); + return prefix + "/edit"; + } + + /** + * 修改保存考生答题 + */ + @RequiresPermissions("exam:answer:edit") + @Log(title = "考生答题", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ExamTestUserAnswer examTestUserAnswer) + { + return toAjax(examTestUserAnswerService.updateExamTestUserAnswer(examTestUserAnswer)); + } + + /** + * 删除考生答题 + */ + @RequiresPermissions("exam:answer:remove") + @Log(title = "考生答题", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(examTestUserAnswerService.deleteExamTestUserAnswerByIds(ids)); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestLibrary.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestLibrary.java new file mode 100644 index 0000000000000000000000000000000000000000..70e4cac13f86a07c8ad38779dd32fb8a4d023dc8 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestLibrary.java @@ -0,0 +1,139 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; + +/** + * 题库对象 exam_test_library + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestLibrary extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 题库名称 */ + @Excel(name = "题库名称") + private String name; + + /** 题库说明备注信息 */ + @Excel(name = "题库说明备注信息") + private String comment; + + /** 操作者用户ID */ + @Excel(name = "操作者用户ID") + private String userId; + + /** 题库状态(1:正常;2:关闭) */ + @Excel(name = "题库状态", readConverterExp = "1=:正常;2:关闭") + private String status; + + /** 创建者 */ + @Excel(name = "创建者") + private String createByUser; + + /** 创建部门 */ + @Excel(name = "创建部门") + private String createByDept; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setComment(String comment) + { + this.comment = comment; + } + + public String getComment() + { + return comment; + } + public void setUserId(String userId) + { + this.userId = userId; + } + + public String getUserId() + { + return userId; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + public void setCreateByUser(String createByUser) + { + this.createByUser = createByUser; + } + + public String getCreateByUser() + { + return createByUser; + } + public void setCreateByDept(String createByDept) + { + this.createByDept = createByDept; + } + + public String getCreateByDept() + { + return createByDept; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("comment", getComment()) + .append("userId", getUserId()) + .append("status", getStatus()) + .append("remark", getRemark()) + .append("createByUser", getCreateByUser()) + .append("createByDept", getCreateByDept()) + .append("updateBy", getUpdateBy()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaper.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaper.java new file mode 100644 index 0000000000000000000000000000000000000000..fd5630b1631fd4fe45575ccb437c8d4fb7930186 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaper.java @@ -0,0 +1,223 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; +import java.util.Date; + +/** + * 试卷对象 exam_test_paper + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestPaper extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 试卷类型ID */ + @Excel(name = "试卷类型ID") + private String testPaperTypeId; + + /** 试卷名称 */ + @Excel(name = "试卷名称") + private String name; + + /** 开考时间 */ + @Excel(name = "开考时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date beginTime; + + /** 考试结束时间 */ + @Excel(name = "考试结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date endTime; + + /** 考试时长单位分钟 */ + @Excel(name = "考试时长单位分钟") + private Long duration; + + /** 试卷总分值 */ + @Excel(name = "试卷总分值") + private Long score; + + /** 试卷试题生成方式 1:配置 2:机选 */ + @Excel(name = "试卷试题生成方式 1:配置 2:机选") + private String paperMake; + + /** 试题排序(1:正常;2:随机) */ + @Excel(name = "试题排序", readConverterExp = "1=:正常;2:随机") + private String testOrder; + + /** 试卷说明 */ + @Excel(name = "试卷说明") + private String comment; + + /** 试卷的难度1:容易;2:常规;3:困难; */ + @Excel(name = "试卷的难度1:容易;2:常规;3:困难;") + private String level; + + /** 创建者 */ + @Excel(name = "创建者") + private String createByUser; + + /** 创建部门 */ + @Excel(name = "创建部门") + private String createByDept; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestPaperTypeId(String testPaperTypeId) + { + this.testPaperTypeId = testPaperTypeId; + } + + public String getTestPaperTypeId() + { + return testPaperTypeId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setBeginTime(Date beginTime) + { + this.beginTime = beginTime; + } + + public Date getBeginTime() + { + return beginTime; + } + public void setEndTime(Date endTime) + { + this.endTime = endTime; + } + + public Date getEndTime() + { + return endTime; + } + public void setDuration(Long duration) + { + this.duration = duration; + } + + public Long getDuration() + { + return duration; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setPaperMake(String paperMake) + { + this.paperMake = paperMake; + } + + public String getPaperMake() + { + return paperMake; + } + public void setTestOrder(String testOrder) + { + this.testOrder = testOrder; + } + + public String getTestOrder() + { + return testOrder; + } + public void setComment(String comment) + { + this.comment = comment; + } + + public String getComment() + { + return comment; + } + public void setLevel(String level) + { + this.level = level; + } + + public String getLevel() + { + return level; + } + public void setCreateByUser(String createByUser) + { + this.createByUser = createByUser; + } + + public String getCreateByUser() + { + return createByUser; + } + public void setCreateByDept(String createByDept) + { + this.createByDept = createByDept; + } + + public String getCreateByDept() + { + return createByDept; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testPaperTypeId", getTestPaperTypeId()) + .append("name", getName()) + .append("beginTime", getBeginTime()) + .append("endTime", getEndTime()) + .append("duration", getDuration()) + .append("score", getScore()) + .append("paperMake", getPaperMake()) + .append("testOrder", getTestOrder()) + .append("comment", getComment()) + .append("level", getLevel()) + .append("createByUser", getCreateByUser()) + .append("createByDept", getCreateByDept()) + .append("updateBy", getUpdateBy()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperChapter.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperChapter.java new file mode 100644 index 0000000000000000000000000000000000000000..0a36e5520bc9e4d6b1ce0b064206d2c327c08378 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperChapter.java @@ -0,0 +1,192 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; +import java.util.Date; + +/** + * 考试试卷章节对象 exam_test_paper_chapter + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestPaperChapter extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 试卷ID:t_exam_test_paper:id */ + @Excel(name = "试卷ID:t_exam_test_paper:id") + private String testPaperId; + + /** 章节名称 */ + @Excel(name = "章节名称") + private String name; + + /** 章节的描述 */ + @Excel(name = "章节的描述") + private String comment; + + /** 排序 */ + @Excel(name = "排序") + private Long sort; + + /** 创建时间 */ + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date operTime; + + /** 题库id */ + @Excel(name = "题库id") + private String libraryid; + + /** 问题类型 */ + @Excel(name = "问题类型") + private String questiontype; + + /** 问题难度 */ + @Excel(name = "问题难度") + private String questionlevel; + + /** 试题数量 */ + @Excel(name = "试题数量") + private Integer number; + + /** 每题分值 */ + @Excel(name = "每题分值") + private Integer score; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestPaperId(String testPaperId) + { + this.testPaperId = testPaperId; + } + + public String getTestPaperId() + { + return testPaperId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setComment(String comment) + { + this.comment = comment; + } + + public String getComment() + { + return comment; + } + public void setSort(Long sort) + { + this.sort = sort; + } + + public Long getSort() + { + return sort; + } + public void setOperTime(Date operTime) + { + this.operTime = operTime; + } + + public Date getOperTime() + { + return operTime; + } + public void setLibraryid(String libraryid) + { + this.libraryid = libraryid; + } + + public String getLibraryid() + { + return libraryid; + } + public void setQuestiontype(String questiontype) + { + this.questiontype = questiontype; + } + + public String getQuestiontype() + { + return questiontype; + } + public void setQuestionlevel(String questionlevel) + { + this.questionlevel = questionlevel; + } + + public String getQuestionlevel() + { + return questionlevel; + } + public void setNumber(Integer number) + { + this.number = number; + } + + public Integer getNumber() + { + return number; + } + public void setScore(Integer score) + { + this.score = score; + } + + public Integer getScore() + { + return score; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testPaperId", getTestPaperId()) + .append("name", getName()) + .append("comment", getComment()) + .append("sort", getSort()) + .append("operTime", getOperTime()) + .append("libraryid", getLibraryid()) + .append("questiontype", getQuestiontype()) + .append("questionlevel", getQuestionlevel()) + .append("number", getNumber()) + .append("score", getScore()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperQuestions.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperQuestions.java new file mode 100644 index 0000000000000000000000000000000000000000..0afd925e73c92b3b1a74393cc3e4e539d7921233 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperQuestions.java @@ -0,0 +1,121 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; + +/** + * 试卷章节试题对象 exam_test_paper_questions + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestPaperQuestions extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 试卷ID */ + @Excel(name = "试卷ID") + private String testPaperId; + + /** 试卷章节ID */ + @Excel(name = "试卷章节ID") + private String testPaperChapterId; + + /** 试题ID */ + @Excel(name = "试题ID") + private String testQuestionsId; + + /** 试题的分值(如果不填则应该取试题库中的分值) */ + @Excel(name = "试题的分值", readConverterExp = "如=果不填则应该取试题库中的分值") + private Long score; + + /** 排序 */ + @Excel(name = "排序") + private Long sort; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestPaperId(String testPaperId) + { + this.testPaperId = testPaperId; + } + + public String getTestPaperId() + { + return testPaperId; + } + public void setTestPaperChapterId(String testPaperChapterId) + { + this.testPaperChapterId = testPaperChapterId; + } + + public String getTestPaperChapterId() + { + return testPaperChapterId; + } + public void setTestQuestionsId(String testQuestionsId) + { + this.testQuestionsId = testQuestionsId; + } + + public String getTestQuestionsId() + { + return testQuestionsId; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setSort(Long sort) + { + this.sort = sort; + } + + public Long getSort() + { + return sort; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testPaperId", getTestPaperId()) + .append("testPaperChapterId", getTestPaperChapterId()) + .append("testQuestionsId", getTestQuestionsId()) + .append("score", getScore()) + .append("sort", getSort()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperType.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperType.java new file mode 100644 index 0000000000000000000000000000000000000000..d5ce9bc6fddcae467b742520ea2fc6730fbbb71f --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperType.java @@ -0,0 +1,110 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; + +/** + * 试卷类型对象 exam_test_paper_type + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestPaperType extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 试卷类型名称 */ + @Excel(name = "试卷类型名称") + private String name; + + /** 备注信息 */ + @Excel(name = "备注信息") + private String comment; + + /** 创建者 */ + @Excel(name = "创建者") + private String createByUser; + + /** 创建部门 */ + @Excel(name = "创建部门") + private String createByDept; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setComment(String comment) + { + this.comment = comment; + } + + public String getComment() + { + return comment; + } + public void setCreateByUser(String createByUser) + { + this.createByUser = createByUser; + } + + public String getCreateByUser() + { + return createByUser; + } + public void setCreateByDept(String createByDept) + { + this.createByDept = createByDept; + } + + public String getCreateByDept() + { + return createByDept; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("comment", getComment()) + .append("createByUser", getCreateByUser()) + .append("createByDept", getCreateByDept()) + .append("updateBy", getUpdateBy()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperUser.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperUser.java new file mode 100644 index 0000000000000000000000000000000000000000..66fd68b56ccdbf31184b1d356c3cc0aefb9d1dab --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestPaperUser.java @@ -0,0 +1,150 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; +import java.util.Date; + +/** + * 试卷考生对象 exam_test_paper_user + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestPaperUser extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 考卷ID:t_exam_test_paper:id */ + @Excel(name = "考卷ID:t_exam_test_paper:id") + private String testPaperId; + + /** 考生ID */ + @Excel(name = "考生ID") + private String userId; + + /** 考试开始时间 */ + @Excel(name = "考试开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date beginTime; + + /** 考试结束时间 */ + @Excel(name = "考试结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date endTime; + + /** 考试耗时时长(分钟) */ + @Excel(name = "考试耗时时长", readConverterExp = "分=钟") + private Long duration; + + /** 得分 */ + @Excel(name = "得分") + private Long score; + + /** 状态:0:未开始考试;1:正在考试;2:已交卷 3:缺考 */ + @Excel(name = "状态:0:未开始考试;1:正在考试;2:已交卷 3:缺考") + private String state; + + /** 批阅状态:0未批阅;1:部分批阅(针对填空问题题才有的状态)2:已批阅 */ + @Excel(name = "批阅状态:0未批阅;1:部分批阅", readConverterExp = "针=对填空问题题才有的状态") + private String checkState; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestPaperId(String testPaperId) + { + this.testPaperId = testPaperId; + } + + public String getTestPaperId() + { + return testPaperId; + } + public void setUserId(String userId) + { + this.userId = userId; + } + + public String getUserId() + { + return userId; + } + public void setBeginTime(Date beginTime) + { + this.beginTime = beginTime; + } + + public Date getBeginTime() + { + return beginTime; + } + public void setEndTime(Date endTime) + { + this.endTime = endTime; + } + + public Date getEndTime() + { + return endTime; + } + public void setDuration(Long duration) + { + this.duration = duration; + } + + public Long getDuration() + { + return duration; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setState(String state) + { + this.state = state; + } + + public String getState() + { + return state; + } + public void setCheckState(String checkState) + { + this.checkState = checkState; + } + + public String getCheckState() + { + return checkState; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testPaperId", getTestPaperId()) + .append("userId", getUserId()) + .append("beginTime", getBeginTime()) + .append("endTime", getEndTime()) + .append("duration", getDuration()) + .append("score", getScore()) + .append("state", getState()) + .append("checkState", getCheckState()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestQuestions.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestQuestions.java new file mode 100644 index 0000000000000000000000000000000000000000..e0e32117def2c212b361da3dd3abaa05c52682ff --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestQuestions.java @@ -0,0 +1,306 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; + +/** + * 试题对象 exam_test_questions + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestQuestions extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 所属题库ID t_exam_test_library:id */ + @Excel(name = "所属题库ID t_exam_test_library:id") + private String testLibraryId; + + /** 题干;如果是填空题则多个题干以||分隔 */ + @Excel(name = "题干;如果是填空题则多个题干以||分隔") + private String questionStem; + + /** 题型1:判断题;2:单选题;3:多选题;4:问答题;5:填空题 */ + @Excel(name = "题型1:判断题;2:单选题;3:多选题;4:问答题;5:填空题") + private String questionType; + + /** 题库的难度1:容易;2:常规;3:困难; */ + @Excel(name = "题库的难度1:容易;2:常规;3:困难;") + private String level; + + /** 题库解析分析 */ + @Excel(name = "题库解析分析") + private String questionAnalysis; + + /** 题库状态1:正常;2;关闭 */ + @Excel(name = "题库状态1:正常;2;关闭") + private String state; + + /** 正确答案;(判断题1:正确,0:错误;)如果是填空题多个答案以||分隔 */ + @Excel(name = "正确答案;(判断题1:正确,0:错误;)如果是填空题多个答案以||分隔") + private String answer; + + /** 试题分数 */ + @Excel(name = "试题分数") + private Long score; + + /** 第1个选项 */ + @Excel(name = "第1个选项") + private String a; + + /** 第2个选项 */ + @Excel(name = "第2个选项") + private String b; + + /** 第3个选项 */ + @Excel(name = "第3个选项") + private String c; + + /** 第4个选项 */ + @Excel(name = "第4个选项") + private String d; + + /** 第5个选项 */ + @Excel(name = "第5个选项") + private String e; + + /** 第6个选项 */ + @Excel(name = "第6个选项") + private String f; + + /** 第7个选项 */ + @Excel(name = "第7个选项") + private String g; + + /** 第8个选项 */ + @Excel(name = "第8个选项") + private String h; + + /** 创建者 */ + @Excel(name = "创建者") + private String createByUser; + + /** 创建部门 */ + @Excel(name = "创建部门") + private String createByDept; + + /** 状态(0正常 1:删除) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=:删除") + private String isDel; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestLibraryId(String testLibraryId) + { + this.testLibraryId = testLibraryId; + } + + public String getTestLibraryId() + { + return testLibraryId; + } + public void setQuestionStem(String questionStem) + { + this.questionStem = questionStem; + } + + public String getQuestionStem() + { + return questionStem; + } + public void setQuestionType(String questionType) + { + this.questionType = questionType; + } + + public String getQuestionType() + { + return questionType; + } + public void setLevel(String level) + { + this.level = level; + } + + public String getLevel() + { + return level; + } + public void setQuestionAnalysis(String questionAnalysis) + { + this.questionAnalysis = questionAnalysis; + } + + public String getQuestionAnalysis() + { + return questionAnalysis; + } + public void setState(String state) + { + this.state = state; + } + + public String getState() + { + return state; + } + public void setAnswer(String answer) + { + this.answer = answer; + } + + public String getAnswer() + { + return answer; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setA(String a) + { + this.a = a; + } + + public String getA() + { + return a; + } + public void setB(String b) + { + this.b = b; + } + + public String getB() + { + return b; + } + public void setC(String c) + { + this.c = c; + } + + public String getC() + { + return c; + } + public void setD(String d) + { + this.d = d; + } + + public String getD() + { + return d; + } + public void setE(String e) + { + this.e = e; + } + + public String getE() + { + return e; + } + public void setF(String f) + { + this.f = f; + } + + public String getF() + { + return f; + } + public void setG(String g) + { + this.g = g; + } + + public String getG() + { + return g; + } + public void setH(String h) + { + this.h = h; + } + + public String getH() + { + return h; + } + public void setCreateByUser(String createByUser) + { + this.createByUser = createByUser; + } + + public String getCreateByUser() + { + return createByUser; + } + public void setCreateByDept(String createByDept) + { + this.createByDept = createByDept; + } + + public String getCreateByDept() + { + return createByDept; + } + public void setIsDel(String isDel) + { + this.isDel = isDel; + } + + public String getIsDel() + { + return isDel; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testLibraryId", getTestLibraryId()) + .append("questionStem", getQuestionStem()) + .append("questionType", getQuestionType()) + .append("level", getLevel()) + .append("questionAnalysis", getQuestionAnalysis()) + .append("state", getState()) + .append("answer", getAnswer()) + .append("score", getScore()) + .append("a", getA()) + .append("b", getB()) + .append("c", getC()) + .append("d", getD()) + .append("e", getE()) + .append("f", getF()) + .append("g", getG()) + .append("h", getH()) + .append("createByUser", getCreateByUser()) + .append("createByDept", getCreateByDept()) + .append("updateBy", getUpdateBy()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("isDel", getIsDel()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestUserAnswer.java b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestUserAnswer.java new file mode 100644 index 0000000000000000000000000000000000000000..bbb0a2900ae1941c8e8f478310d733a6c5352d21 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/domain/ExamTestUserAnswer.java @@ -0,0 +1,163 @@ +package com.rboat.exam.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.rboat.common.annotation.Excel; +import com.rboat.common.core.domain.BaseEntity; + +/** + * 考生答题对象 exam_test_user_answer + * + * @author rboat + * @date 2019-09-02 + */ +public class ExamTestUserAnswer extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private String id; + + /** 考卷ID:t_exam_test_paper:id */ + @Excel(name = "考卷ID:t_exam_test_paper:id") + private String testPaperId; + + /** 章节id */ + @Excel(name = "章节id") + private String chapterId; + + /** 试题id */ + @Excel(name = "试题id") + private String questionId; + + /** 考生ID */ + @Excel(name = "考生ID") + private String userId; + + /** 考生答案 */ + @Excel(name = "考生答案") + private String answer; + + /** 1:正确 2:错误 */ + @Excel(name = "1:正确 2:错误") + private String result; + + /** 分数 */ + @Excel(name = "分数") + private Long score; + + /** 0:未批改 1:已批改 */ + @Excel(name = "0:未批改 1:已批改") + private String state; + + /** 排序 */ + @Excel(name = "排序") + private Integer sort; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setTestPaperId(String testPaperId) + { + this.testPaperId = testPaperId; + } + + public String getTestPaperId() + { + return testPaperId; + } + public void setChapterId(String chapterId) + { + this.chapterId = chapterId; + } + + public String getChapterId() + { + return chapterId; + } + public void setQuestionId(String questionId) + { + this.questionId = questionId; + } + + public String getQuestionId() + { + return questionId; + } + public void setUserId(String userId) + { + this.userId = userId; + } + + public String getUserId() + { + return userId; + } + public void setAnswer(String answer) + { + this.answer = answer; + } + + public String getAnswer() + { + return answer; + } + public void setResult(String result) + { + this.result = result; + } + + public String getResult() + { + return result; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setState(String state) + { + this.state = state; + } + + public String getState() + { + return state; + } + public void setSort(Integer sort) + { + this.sort = sort; + } + + public Integer getSort() + { + return sort; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("testPaperId", getTestPaperId()) + .append("chapterId", getChapterId()) + .append("questionId", getQuestionId()) + .append("userId", getUserId()) + .append("answer", getAnswer()) + .append("result", getResult()) + .append("score", getScore()) + .append("state", getState()) + .append("sort", getSort()) + .toString(); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestLibraryMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestLibraryMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..4de308a344641e91d4a7893f60ef6018196e0dc8 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestLibraryMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestLibrary; +import java.util.List; + +/** + * 题库Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestLibraryMapper +{ + /** + * 查询题库 + * + * @param id 题库ID + * @return 题库 + */ + public ExamTestLibrary selectExamTestLibraryById(String id); + + /** + * 查询题库列表 + * + * @param examTestLibrary 题库 + * @return 题库集合 + */ + public List selectExamTestLibraryList(ExamTestLibrary examTestLibrary); + + /** + * 新增题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + public int insertExamTestLibrary(ExamTestLibrary examTestLibrary); + + /** + * 修改题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + public int updateExamTestLibrary(ExamTestLibrary examTestLibrary); + + /** + * 删除题库 + * + * @param id 题库ID + * @return 结果 + */ + public int deleteExamTestLibraryById(String id); + + /** + * 批量删除题库 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestLibraryByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperChapterMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperChapterMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..e164b88b38d4494f35d9ea958a1cf55fffdc8468 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperChapterMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestPaperChapter; +import java.util.List; + +/** + * 考试试卷章节Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestPaperChapterMapper +{ + /** + * 查询考试试卷章节 + * + * @param id 考试试卷章节ID + * @return 考试试卷章节 + */ + public ExamTestPaperChapter selectExamTestPaperChapterById(String id); + + /** + * 查询考试试卷章节列表 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 考试试卷章节集合 + */ + public List selectExamTestPaperChapterList(ExamTestPaperChapter examTestPaperChapter); + + /** + * 新增考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + public int insertExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter); + + /** + * 修改考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + public int updateExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter); + + /** + * 删除考试试卷章节 + * + * @param id 考试试卷章节ID + * @return 结果 + */ + public int deleteExamTestPaperChapterById(String id); + + /** + * 批量删除考试试卷章节 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperChapterByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..779218b7db6ac90c109a8ddce0872538ea022a21 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestPaper; +import java.util.List; + +/** + * 试卷Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestPaperMapper +{ + /** + * 查询试卷 + * + * @param id 试卷ID + * @return 试卷 + */ + public ExamTestPaper selectExamTestPaperById(String id); + + /** + * 查询试卷列表 + * + * @param examTestPaper 试卷 + * @return 试卷集合 + */ + public List selectExamTestPaperList(ExamTestPaper examTestPaper); + + /** + * 新增试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + public int insertExamTestPaper(ExamTestPaper examTestPaper); + + /** + * 修改试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + public int updateExamTestPaper(ExamTestPaper examTestPaper); + + /** + * 删除试卷 + * + * @param id 试卷ID + * @return 结果 + */ + public int deleteExamTestPaperById(String id); + + /** + * 批量删除试卷 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperQuestionsMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperQuestionsMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..e1e38ac4e2189587a71ef8bfb3b4f517fe32c40a --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperQuestionsMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestPaperQuestions; +import java.util.List; + +/** + * 试卷章节试题Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestPaperQuestionsMapper +{ + /** + * 查询试卷章节试题 + * + * @param id 试卷章节试题ID + * @return 试卷章节试题 + */ + public ExamTestPaperQuestions selectExamTestPaperQuestionsById(String id); + + /** + * 查询试卷章节试题列表 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 试卷章节试题集合 + */ + public List selectExamTestPaperQuestionsList(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 新增试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + public int insertExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 修改试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + public int updateExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 删除试卷章节试题 + * + * @param id 试卷章节试题ID + * @return 结果 + */ + public int deleteExamTestPaperQuestionsById(String id); + + /** + * 批量删除试卷章节试题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperQuestionsByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperTypeMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperTypeMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..988e98e58cb88a1d723d726be752e99701663a90 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperTypeMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestPaperType; +import java.util.List; + +/** + * 试卷类型Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestPaperTypeMapper +{ + /** + * 查询试卷类型 + * + * @param id 试卷类型ID + * @return 试卷类型 + */ + public ExamTestPaperType selectExamTestPaperTypeById(String id); + + /** + * 查询试卷类型列表 + * + * @param examTestPaperType 试卷类型 + * @return 试卷类型集合 + */ + public List selectExamTestPaperTypeList(ExamTestPaperType examTestPaperType); + + /** + * 新增试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + public int insertExamTestPaperType(ExamTestPaperType examTestPaperType); + + /** + * 修改试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + public int updateExamTestPaperType(ExamTestPaperType examTestPaperType); + + /** + * 删除试卷类型 + * + * @param id 试卷类型ID + * @return 结果 + */ + public int deleteExamTestPaperTypeById(String id); + + /** + * 批量删除试卷类型 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperTypeByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperUserMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperUserMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..92fff5eacd83fd01e05c1ea969d9f23522398ee1 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestPaperUserMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestPaperUser; +import java.util.List; + +/** + * 试卷考生Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestPaperUserMapper +{ + /** + * 查询试卷考生 + * + * @param id 试卷考生ID + * @return 试卷考生 + */ + public ExamTestPaperUser selectExamTestPaperUserById(String id); + + /** + * 查询试卷考生列表 + * + * @param examTestPaperUser 试卷考生 + * @return 试卷考生集合 + */ + public List selectExamTestPaperUserList(ExamTestPaperUser examTestPaperUser); + + /** + * 新增试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + public int insertExamTestPaperUser(ExamTestPaperUser examTestPaperUser); + + /** + * 修改试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + public int updateExamTestPaperUser(ExamTestPaperUser examTestPaperUser); + + /** + * 删除试卷考生 + * + * @param id 试卷考生ID + * @return 结果 + */ + public int deleteExamTestPaperUserById(String id); + + /** + * 批量删除试卷考生 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperUserByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestQuestionsMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestQuestionsMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..da252ef9e2eab87a7bd5502883c029368ac8a584 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestQuestionsMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestQuestions; +import java.util.List; + +/** + * 试题Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestQuestionsMapper +{ + /** + * 查询试题 + * + * @param id 试题ID + * @return 试题 + */ + public ExamTestQuestions selectExamTestQuestionsById(String id); + + /** + * 查询试题列表 + * + * @param examTestQuestions 试题 + * @return 试题集合 + */ + public List selectExamTestQuestionsList(ExamTestQuestions examTestQuestions); + + /** + * 新增试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + public int insertExamTestQuestions(ExamTestQuestions examTestQuestions); + + /** + * 修改试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + public int updateExamTestQuestions(ExamTestQuestions examTestQuestions); + + /** + * 删除试题 + * + * @param id 试题ID + * @return 结果 + */ + public int deleteExamTestQuestionsById(String id); + + /** + * 批量删除试题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestQuestionsByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestUserAnswerMapper.java b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestUserAnswerMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..9736a076945f88b556fdd6b688c3e83fc242759b --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/mapper/ExamTestUserAnswerMapper.java @@ -0,0 +1,61 @@ +package com.rboat.exam.mapper; + +import com.rboat.exam.domain.ExamTestUserAnswer; +import java.util.List; + +/** + * 考生答题Mapper接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface ExamTestUserAnswerMapper +{ + /** + * 查询考生答题 + * + * @param id 考生答题ID + * @return 考生答题 + */ + public ExamTestUserAnswer selectExamTestUserAnswerById(String id); + + /** + * 查询考生答题列表 + * + * @param examTestUserAnswer 考生答题 + * @return 考生答题集合 + */ + public List selectExamTestUserAnswerList(ExamTestUserAnswer examTestUserAnswer); + + /** + * 新增考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + public int insertExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer); + + /** + * 修改考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + public int updateExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer); + + /** + * 删除考生答题 + * + * @param id 考生答题ID + * @return 结果 + */ + public int deleteExamTestUserAnswerById(String id); + + /** + * 批量删除考生答题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestUserAnswerByIds(String[] ids); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestLibraryService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestLibraryService.java new file mode 100644 index 0000000000000000000000000000000000000000..6d1c4bb34f8861d0de4ef23e7df43623ac3d1e19 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestLibraryService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestLibrary; +import java.util.List; + +/** + * 题库Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestLibraryService +{ + /** + * 查询题库 + * + * @param id 题库ID + * @return 题库 + */ + public ExamTestLibrary selectExamTestLibraryById(String id); + + /** + * 查询题库列表 + * + * @param examTestLibrary 题库 + * @return 题库集合 + */ + public List selectExamTestLibraryList(ExamTestLibrary examTestLibrary); + + /** + * 新增题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + public int insertExamTestLibrary(ExamTestLibrary examTestLibrary); + + /** + * 修改题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + public int updateExamTestLibrary(ExamTestLibrary examTestLibrary); + + /** + * 批量删除题库 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestLibraryByIds(String ids); + + /** + * 删除题库信息 + * + * @param id 题库ID + * @return 结果 + */ + public int deleteExamTestLibraryById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperChapterService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperChapterService.java new file mode 100644 index 0000000000000000000000000000000000000000..5817702aa26850cf4f0c0f703d4ba0fe9653176e --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperChapterService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestPaperChapter; +import java.util.List; + +/** + * 考试试卷章节Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestPaperChapterService +{ + /** + * 查询考试试卷章节 + * + * @param id 考试试卷章节ID + * @return 考试试卷章节 + */ + public ExamTestPaperChapter selectExamTestPaperChapterById(String id); + + /** + * 查询考试试卷章节列表 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 考试试卷章节集合 + */ + public List selectExamTestPaperChapterList(ExamTestPaperChapter examTestPaperChapter); + + /** + * 新增考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + public int insertExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter); + + /** + * 修改考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + public int updateExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter); + + /** + * 批量删除考试试卷章节 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperChapterByIds(String ids); + + /** + * 删除考试试卷章节信息 + * + * @param id 考试试卷章节ID + * @return 结果 + */ + public int deleteExamTestPaperChapterById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperQuestionsService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperQuestionsService.java new file mode 100644 index 0000000000000000000000000000000000000000..7af7a6d75dcc7f4d17cebec6765f2c9368cac953 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperQuestionsService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestPaperQuestions; +import java.util.List; + +/** + * 试卷章节试题Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestPaperQuestionsService +{ + /** + * 查询试卷章节试题 + * + * @param id 试卷章节试题ID + * @return 试卷章节试题 + */ + public ExamTestPaperQuestions selectExamTestPaperQuestionsById(String id); + + /** + * 查询试卷章节试题列表 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 试卷章节试题集合 + */ + public List selectExamTestPaperQuestionsList(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 新增试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + public int insertExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 修改试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + public int updateExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions); + + /** + * 批量删除试卷章节试题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperQuestionsByIds(String ids); + + /** + * 删除试卷章节试题信息 + * + * @param id 试卷章节试题ID + * @return 结果 + */ + public int deleteExamTestPaperQuestionsById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperService.java new file mode 100644 index 0000000000000000000000000000000000000000..9e420495fe54af2d6a4adc37ce9e7de8e3421224 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestPaper; +import java.util.List; + +/** + * 试卷Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestPaperService +{ + /** + * 查询试卷 + * + * @param id 试卷ID + * @return 试卷 + */ + public ExamTestPaper selectExamTestPaperById(String id); + + /** + * 查询试卷列表 + * + * @param examTestPaper 试卷 + * @return 试卷集合 + */ + public List selectExamTestPaperList(ExamTestPaper examTestPaper); + + /** + * 新增试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + public int insertExamTestPaper(ExamTestPaper examTestPaper); + + /** + * 修改试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + public int updateExamTestPaper(ExamTestPaper examTestPaper); + + /** + * 批量删除试卷 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperByIds(String ids); + + /** + * 删除试卷信息 + * + * @param id 试卷ID + * @return 结果 + */ + public int deleteExamTestPaperById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperTypeService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperTypeService.java new file mode 100644 index 0000000000000000000000000000000000000000..e9767903d820f55fc717239bdbd3985e6c6dbede --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperTypeService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestPaperType; +import java.util.List; + +/** + * 试卷类型Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestPaperTypeService +{ + /** + * 查询试卷类型 + * + * @param id 试卷类型ID + * @return 试卷类型 + */ + public ExamTestPaperType selectExamTestPaperTypeById(String id); + + /** + * 查询试卷类型列表 + * + * @param examTestPaperType 试卷类型 + * @return 试卷类型集合 + */ + public List selectExamTestPaperTypeList(ExamTestPaperType examTestPaperType); + + /** + * 新增试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + public int insertExamTestPaperType(ExamTestPaperType examTestPaperType); + + /** + * 修改试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + public int updateExamTestPaperType(ExamTestPaperType examTestPaperType); + + /** + * 批量删除试卷类型 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperTypeByIds(String ids); + + /** + * 删除试卷类型信息 + * + * @param id 试卷类型ID + * @return 结果 + */ + public int deleteExamTestPaperTypeById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperUserService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperUserService.java new file mode 100644 index 0000000000000000000000000000000000000000..56eb8f1c95be56ce41903d1bd4f9e8bd8ef22c75 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestPaperUserService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestPaperUser; +import java.util.List; + +/** + * 试卷考生Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestPaperUserService +{ + /** + * 查询试卷考生 + * + * @param id 试卷考生ID + * @return 试卷考生 + */ + public ExamTestPaperUser selectExamTestPaperUserById(String id); + + /** + * 查询试卷考生列表 + * + * @param examTestPaperUser 试卷考生 + * @return 试卷考生集合 + */ + public List selectExamTestPaperUserList(ExamTestPaperUser examTestPaperUser); + + /** + * 新增试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + public int insertExamTestPaperUser(ExamTestPaperUser examTestPaperUser); + + /** + * 修改试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + public int updateExamTestPaperUser(ExamTestPaperUser examTestPaperUser); + + /** + * 批量删除试卷考生 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestPaperUserByIds(String ids); + + /** + * 删除试卷考生信息 + * + * @param id 试卷考生ID + * @return 结果 + */ + public int deleteExamTestPaperUserById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestQuestionsService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestQuestionsService.java new file mode 100644 index 0000000000000000000000000000000000000000..3bc49e5cd36475d68baa2f8d12dd06494067ce10 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestQuestionsService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestQuestions; +import java.util.List; + +/** + * 试题Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestQuestionsService +{ + /** + * 查询试题 + * + * @param id 试题ID + * @return 试题 + */ + public ExamTestQuestions selectExamTestQuestionsById(String id); + + /** + * 查询试题列表 + * + * @param examTestQuestions 试题 + * @return 试题集合 + */ + public List selectExamTestQuestionsList(ExamTestQuestions examTestQuestions); + + /** + * 新增试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + public int insertExamTestQuestions(ExamTestQuestions examTestQuestions); + + /** + * 修改试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + public int updateExamTestQuestions(ExamTestQuestions examTestQuestions); + + /** + * 批量删除试题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestQuestionsByIds(String ids); + + /** + * 删除试题信息 + * + * @param id 试题ID + * @return 结果 + */ + public int deleteExamTestQuestionsById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestUserAnswerService.java b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestUserAnswerService.java new file mode 100644 index 0000000000000000000000000000000000000000..2b23e7377b1b7d21eeb5d49f6ff0c82ee6826b58 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/IExamTestUserAnswerService.java @@ -0,0 +1,61 @@ +package com.rboat.exam.service; + +import com.rboat.exam.domain.ExamTestUserAnswer; +import java.util.List; + +/** + * 考生答题Service接口 + * + * @author rboat + * @date 2019-09-02 + */ +public interface IExamTestUserAnswerService +{ + /** + * 查询考生答题 + * + * @param id 考生答题ID + * @return 考生答题 + */ + public ExamTestUserAnswer selectExamTestUserAnswerById(String id); + + /** + * 查询考生答题列表 + * + * @param examTestUserAnswer 考生答题 + * @return 考生答题集合 + */ + public List selectExamTestUserAnswerList(ExamTestUserAnswer examTestUserAnswer); + + /** + * 新增考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + public int insertExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer); + + /** + * 修改考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + public int updateExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer); + + /** + * 批量删除考生答题 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteExamTestUserAnswerByIds(String ids); + + /** + * 删除考生答题信息 + * + * @param id 考生答题ID + * @return 结果 + */ + public int deleteExamTestUserAnswerById(String id); +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestLibraryServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestLibraryServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..8fd7a7bfc1598a56b21b31172590cfbb1a8d4268 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestLibraryServiceImpl.java @@ -0,0 +1,96 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import com.rboat.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestLibraryMapper; +import com.rboat.exam.domain.ExamTestLibrary; +import com.rboat.exam.service.IExamTestLibraryService; +import com.rboat.common.core.text.Convert; + +/** + * 题库Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestLibraryServiceImpl implements IExamTestLibraryService +{ + @Autowired + private ExamTestLibraryMapper examTestLibraryMapper; + + /** + * 查询题库 + * + * @param id 题库ID + * @return 题库 + */ + @Override + public ExamTestLibrary selectExamTestLibraryById(String id) + { + return examTestLibraryMapper.selectExamTestLibraryById(id); + } + + /** + * 查询题库列表 + * + * @param examTestLibrary 题库 + * @return 题库 + */ + @Override + public List selectExamTestLibraryList(ExamTestLibrary examTestLibrary) + { + return examTestLibraryMapper.selectExamTestLibraryList(examTestLibrary); + } + + /** + * 新增题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + @Override + public int insertExamTestLibrary(ExamTestLibrary examTestLibrary) + { + examTestLibrary.setCreateTime(DateUtils.getNowDate()); + return examTestLibraryMapper.insertExamTestLibrary(examTestLibrary); + } + + /** + * 修改题库 + * + * @param examTestLibrary 题库 + * @return 结果 + */ + @Override + public int updateExamTestLibrary(ExamTestLibrary examTestLibrary) + { + examTestLibrary.setUpdateTime(DateUtils.getNowDate()); + return examTestLibraryMapper.updateExamTestLibrary(examTestLibrary); + } + + /** + * 删除题库对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestLibraryByIds(String ids) + { + return examTestLibraryMapper.deleteExamTestLibraryByIds(Convert.toStrArray(ids)); + } + + /** + * 删除题库信息 + * + * @param id 题库ID + * @return 结果 + */ + public int deleteExamTestLibraryById(String id) + { + return examTestLibraryMapper.deleteExamTestLibraryById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperChapterServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperChapterServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..13b8ded0c3d958a2e81176a34800e7ca0da77cb4 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperChapterServiceImpl.java @@ -0,0 +1,93 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestPaperChapterMapper; +import com.rboat.exam.domain.ExamTestPaperChapter; +import com.rboat.exam.service.IExamTestPaperChapterService; +import com.rboat.common.core.text.Convert; + +/** + * 考试试卷章节Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestPaperChapterServiceImpl implements IExamTestPaperChapterService +{ + @Autowired + private ExamTestPaperChapterMapper examTestPaperChapterMapper; + + /** + * 查询考试试卷章节 + * + * @param id 考试试卷章节ID + * @return 考试试卷章节 + */ + @Override + public ExamTestPaperChapter selectExamTestPaperChapterById(String id) + { + return examTestPaperChapterMapper.selectExamTestPaperChapterById(id); + } + + /** + * 查询考试试卷章节列表 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 考试试卷章节 + */ + @Override + public List selectExamTestPaperChapterList(ExamTestPaperChapter examTestPaperChapter) + { + return examTestPaperChapterMapper.selectExamTestPaperChapterList(examTestPaperChapter); + } + + /** + * 新增考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + @Override + public int insertExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter) + { + return examTestPaperChapterMapper.insertExamTestPaperChapter(examTestPaperChapter); + } + + /** + * 修改考试试卷章节 + * + * @param examTestPaperChapter 考试试卷章节 + * @return 结果 + */ + @Override + public int updateExamTestPaperChapter(ExamTestPaperChapter examTestPaperChapter) + { + return examTestPaperChapterMapper.updateExamTestPaperChapter(examTestPaperChapter); + } + + /** + * 删除考试试卷章节对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestPaperChapterByIds(String ids) + { + return examTestPaperChapterMapper.deleteExamTestPaperChapterByIds(Convert.toStrArray(ids)); + } + + /** + * 删除考试试卷章节信息 + * + * @param id 考试试卷章节ID + * @return 结果 + */ + public int deleteExamTestPaperChapterById(String id) + { + return examTestPaperChapterMapper.deleteExamTestPaperChapterById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperQuestionsServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperQuestionsServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..e7959b623614109edcc8400bd16b3345835fc8f4 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperQuestionsServiceImpl.java @@ -0,0 +1,93 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestPaperQuestionsMapper; +import com.rboat.exam.domain.ExamTestPaperQuestions; +import com.rboat.exam.service.IExamTestPaperQuestionsService; +import com.rboat.common.core.text.Convert; + +/** + * 试卷章节试题Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestPaperQuestionsServiceImpl implements IExamTestPaperQuestionsService +{ + @Autowired + private ExamTestPaperQuestionsMapper examTestPaperQuestionsMapper; + + /** + * 查询试卷章节试题 + * + * @param id 试卷章节试题ID + * @return 试卷章节试题 + */ + @Override + public ExamTestPaperQuestions selectExamTestPaperQuestionsById(String id) + { + return examTestPaperQuestionsMapper.selectExamTestPaperQuestionsById(id); + } + + /** + * 查询试卷章节试题列表 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 试卷章节试题 + */ + @Override + public List selectExamTestPaperQuestionsList(ExamTestPaperQuestions examTestPaperQuestions) + { + return examTestPaperQuestionsMapper.selectExamTestPaperQuestionsList(examTestPaperQuestions); + } + + /** + * 新增试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + @Override + public int insertExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions) + { + return examTestPaperQuestionsMapper.insertExamTestPaperQuestions(examTestPaperQuestions); + } + + /** + * 修改试卷章节试题 + * + * @param examTestPaperQuestions 试卷章节试题 + * @return 结果 + */ + @Override + public int updateExamTestPaperQuestions(ExamTestPaperQuestions examTestPaperQuestions) + { + return examTestPaperQuestionsMapper.updateExamTestPaperQuestions(examTestPaperQuestions); + } + + /** + * 删除试卷章节试题对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestPaperQuestionsByIds(String ids) + { + return examTestPaperQuestionsMapper.deleteExamTestPaperQuestionsByIds(Convert.toStrArray(ids)); + } + + /** + * 删除试卷章节试题信息 + * + * @param id 试卷章节试题ID + * @return 结果 + */ + public int deleteExamTestPaperQuestionsById(String id) + { + return examTestPaperQuestionsMapper.deleteExamTestPaperQuestionsById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..b7de50cdd51ef2176a867290f1a56e872d6e439a --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperServiceImpl.java @@ -0,0 +1,96 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import com.rboat.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestPaperMapper; +import com.rboat.exam.domain.ExamTestPaper; +import com.rboat.exam.service.IExamTestPaperService; +import com.rboat.common.core.text.Convert; + +/** + * 试卷Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestPaperServiceImpl implements IExamTestPaperService +{ + @Autowired + private ExamTestPaperMapper examTestPaperMapper; + + /** + * 查询试卷 + * + * @param id 试卷ID + * @return 试卷 + */ + @Override + public ExamTestPaper selectExamTestPaperById(String id) + { + return examTestPaperMapper.selectExamTestPaperById(id); + } + + /** + * 查询试卷列表 + * + * @param examTestPaper 试卷 + * @return 试卷 + */ + @Override + public List selectExamTestPaperList(ExamTestPaper examTestPaper) + { + return examTestPaperMapper.selectExamTestPaperList(examTestPaper); + } + + /** + * 新增试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + @Override + public int insertExamTestPaper(ExamTestPaper examTestPaper) + { + examTestPaper.setCreateTime(DateUtils.getNowDate()); + return examTestPaperMapper.insertExamTestPaper(examTestPaper); + } + + /** + * 修改试卷 + * + * @param examTestPaper 试卷 + * @return 结果 + */ + @Override + public int updateExamTestPaper(ExamTestPaper examTestPaper) + { + examTestPaper.setUpdateTime(DateUtils.getNowDate()); + return examTestPaperMapper.updateExamTestPaper(examTestPaper); + } + + /** + * 删除试卷对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestPaperByIds(String ids) + { + return examTestPaperMapper.deleteExamTestPaperByIds(Convert.toStrArray(ids)); + } + + /** + * 删除试卷信息 + * + * @param id 试卷ID + * @return 结果 + */ + public int deleteExamTestPaperById(String id) + { + return examTestPaperMapper.deleteExamTestPaperById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperTypeServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperTypeServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..9530d29c6424ac6d7430670e7afd6d30604660b0 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperTypeServiceImpl.java @@ -0,0 +1,96 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import com.rboat.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestPaperTypeMapper; +import com.rboat.exam.domain.ExamTestPaperType; +import com.rboat.exam.service.IExamTestPaperTypeService; +import com.rboat.common.core.text.Convert; + +/** + * 试卷类型Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestPaperTypeServiceImpl implements IExamTestPaperTypeService +{ + @Autowired + private ExamTestPaperTypeMapper examTestPaperTypeMapper; + + /** + * 查询试卷类型 + * + * @param id 试卷类型ID + * @return 试卷类型 + */ + @Override + public ExamTestPaperType selectExamTestPaperTypeById(String id) + { + return examTestPaperTypeMapper.selectExamTestPaperTypeById(id); + } + + /** + * 查询试卷类型列表 + * + * @param examTestPaperType 试卷类型 + * @return 试卷类型 + */ + @Override + public List selectExamTestPaperTypeList(ExamTestPaperType examTestPaperType) + { + return examTestPaperTypeMapper.selectExamTestPaperTypeList(examTestPaperType); + } + + /** + * 新增试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + @Override + public int insertExamTestPaperType(ExamTestPaperType examTestPaperType) + { + examTestPaperType.setCreateTime(DateUtils.getNowDate()); + return examTestPaperTypeMapper.insertExamTestPaperType(examTestPaperType); + } + + /** + * 修改试卷类型 + * + * @param examTestPaperType 试卷类型 + * @return 结果 + */ + @Override + public int updateExamTestPaperType(ExamTestPaperType examTestPaperType) + { + examTestPaperType.setUpdateTime(DateUtils.getNowDate()); + return examTestPaperTypeMapper.updateExamTestPaperType(examTestPaperType); + } + + /** + * 删除试卷类型对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestPaperTypeByIds(String ids) + { + return examTestPaperTypeMapper.deleteExamTestPaperTypeByIds(Convert.toStrArray(ids)); + } + + /** + * 删除试卷类型信息 + * + * @param id 试卷类型ID + * @return 结果 + */ + public int deleteExamTestPaperTypeById(String id) + { + return examTestPaperTypeMapper.deleteExamTestPaperTypeById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperUserServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperUserServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..bb69e30fe7a9e55904c03213ecf4ab9357b7342c --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestPaperUserServiceImpl.java @@ -0,0 +1,93 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestPaperUserMapper; +import com.rboat.exam.domain.ExamTestPaperUser; +import com.rboat.exam.service.IExamTestPaperUserService; +import com.rboat.common.core.text.Convert; + +/** + * 试卷考生Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestPaperUserServiceImpl implements IExamTestPaperUserService +{ + @Autowired + private ExamTestPaperUserMapper examTestPaperUserMapper; + + /** + * 查询试卷考生 + * + * @param id 试卷考生ID + * @return 试卷考生 + */ + @Override + public ExamTestPaperUser selectExamTestPaperUserById(String id) + { + return examTestPaperUserMapper.selectExamTestPaperUserById(id); + } + + /** + * 查询试卷考生列表 + * + * @param examTestPaperUser 试卷考生 + * @return 试卷考生 + */ + @Override + public List selectExamTestPaperUserList(ExamTestPaperUser examTestPaperUser) + { + return examTestPaperUserMapper.selectExamTestPaperUserList(examTestPaperUser); + } + + /** + * 新增试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + @Override + public int insertExamTestPaperUser(ExamTestPaperUser examTestPaperUser) + { + return examTestPaperUserMapper.insertExamTestPaperUser(examTestPaperUser); + } + + /** + * 修改试卷考生 + * + * @param examTestPaperUser 试卷考生 + * @return 结果 + */ + @Override + public int updateExamTestPaperUser(ExamTestPaperUser examTestPaperUser) + { + return examTestPaperUserMapper.updateExamTestPaperUser(examTestPaperUser); + } + + /** + * 删除试卷考生对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestPaperUserByIds(String ids) + { + return examTestPaperUserMapper.deleteExamTestPaperUserByIds(Convert.toStrArray(ids)); + } + + /** + * 删除试卷考生信息 + * + * @param id 试卷考生ID + * @return 结果 + */ + public int deleteExamTestPaperUserById(String id) + { + return examTestPaperUserMapper.deleteExamTestPaperUserById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestQuestionsServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestQuestionsServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..07f665ea4c0d02e13b5a7db0a241a82472981268 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestQuestionsServiceImpl.java @@ -0,0 +1,96 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import com.rboat.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestQuestionsMapper; +import com.rboat.exam.domain.ExamTestQuestions; +import com.rboat.exam.service.IExamTestQuestionsService; +import com.rboat.common.core.text.Convert; + +/** + * 试题Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestQuestionsServiceImpl implements IExamTestQuestionsService +{ + @Autowired + private ExamTestQuestionsMapper examTestQuestionsMapper; + + /** + * 查询试题 + * + * @param id 试题ID + * @return 试题 + */ + @Override + public ExamTestQuestions selectExamTestQuestionsById(String id) + { + return examTestQuestionsMapper.selectExamTestQuestionsById(id); + } + + /** + * 查询试题列表 + * + * @param examTestQuestions 试题 + * @return 试题 + */ + @Override + public List selectExamTestQuestionsList(ExamTestQuestions examTestQuestions) + { + return examTestQuestionsMapper.selectExamTestQuestionsList(examTestQuestions); + } + + /** + * 新增试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + @Override + public int insertExamTestQuestions(ExamTestQuestions examTestQuestions) + { + examTestQuestions.setCreateTime(DateUtils.getNowDate()); + return examTestQuestionsMapper.insertExamTestQuestions(examTestQuestions); + } + + /** + * 修改试题 + * + * @param examTestQuestions 试题 + * @return 结果 + */ + @Override + public int updateExamTestQuestions(ExamTestQuestions examTestQuestions) + { + examTestQuestions.setUpdateTime(DateUtils.getNowDate()); + return examTestQuestionsMapper.updateExamTestQuestions(examTestQuestions); + } + + /** + * 删除试题对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestQuestionsByIds(String ids) + { + return examTestQuestionsMapper.deleteExamTestQuestionsByIds(Convert.toStrArray(ids)); + } + + /** + * 删除试题信息 + * + * @param id 试题ID + * @return 结果 + */ + public int deleteExamTestQuestionsById(String id) + { + return examTestQuestionsMapper.deleteExamTestQuestionsById(id); + } +} diff --git a/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestUserAnswerServiceImpl.java b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestUserAnswerServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..4f87127404710025af8271aa149e5e31b646c0d5 --- /dev/null +++ b/rboat-exam/src/main/java/com/rboat/exam/service/impl/ExamTestUserAnswerServiceImpl.java @@ -0,0 +1,93 @@ +package com.rboat.exam.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.rboat.exam.mapper.ExamTestUserAnswerMapper; +import com.rboat.exam.domain.ExamTestUserAnswer; +import com.rboat.exam.service.IExamTestUserAnswerService; +import com.rboat.common.core.text.Convert; + +/** + * 考生答题Service业务层处理 + * + * @author rboat + * @date 2019-09-02 + */ +@Service +public class ExamTestUserAnswerServiceImpl implements IExamTestUserAnswerService +{ + @Autowired + private ExamTestUserAnswerMapper examTestUserAnswerMapper; + + /** + * 查询考生答题 + * + * @param id 考生答题ID + * @return 考生答题 + */ + @Override + public ExamTestUserAnswer selectExamTestUserAnswerById(String id) + { + return examTestUserAnswerMapper.selectExamTestUserAnswerById(id); + } + + /** + * 查询考生答题列表 + * + * @param examTestUserAnswer 考生答题 + * @return 考生答题 + */ + @Override + public List selectExamTestUserAnswerList(ExamTestUserAnswer examTestUserAnswer) + { + return examTestUserAnswerMapper.selectExamTestUserAnswerList(examTestUserAnswer); + } + + /** + * 新增考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + @Override + public int insertExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer) + { + return examTestUserAnswerMapper.insertExamTestUserAnswer(examTestUserAnswer); + } + + /** + * 修改考生答题 + * + * @param examTestUserAnswer 考生答题 + * @return 结果 + */ + @Override + public int updateExamTestUserAnswer(ExamTestUserAnswer examTestUserAnswer) + { + return examTestUserAnswerMapper.updateExamTestUserAnswer(examTestUserAnswer); + } + + /** + * 删除考生答题对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteExamTestUserAnswerByIds(String ids) + { + return examTestUserAnswerMapper.deleteExamTestUserAnswerByIds(Convert.toStrArray(ids)); + } + + /** + * 删除考生答题信息 + * + * @param id 考生答题ID + * @return 结果 + */ + public int deleteExamTestUserAnswerById(String id) + { + return examTestUserAnswerMapper.deleteExamTestUserAnswerById(id); + } +} diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestLibraryMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestLibraryMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..b63d5efd2a2304944d9c8aa020c3013d710ed244 --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestLibraryMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + select id, name, comment, user_id, status, remark, create_by_user, create_by_dept, update_by, create_time, update_time, is_del from exam_test_library + + + + + + + + insert into exam_test_library + + id, + name, + comment, + user_id, + status, + remark, + create_by_user, + create_by_dept, + update_by, + create_time, + update_time, + is_del, + + + #{id}, + #{name}, + #{comment}, + #{userId}, + #{status}, + #{remark}, + #{createByUser}, + #{createByDept}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{isDel}, + + + + + update exam_test_library + + name = #{name}, + comment = #{comment}, + user_id = #{userId}, + status = #{status}, + remark = #{remark}, + create_by_user = #{createByUser}, + create_by_dept = #{createByDept}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_library where id = #{id} + + + + delete from exam_test_library where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperChapterMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperChapterMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..f21ecae678699eead1e3672810eb0fa74ea1c790 --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperChapterMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + select id, test_paper_id, name, comment, sort, oper_time, libraryId, questionType, questionLevel, number, score, is_del from exam_test_paper_chapter + + + + + + + + insert into exam_test_paper_chapter + + id, + test_paper_id, + name, + comment, + sort, + oper_time, + libraryId, + questionType, + questionLevel, + number, + score, + is_del, + + + #{id}, + #{testPaperId}, + #{name}, + #{comment}, + #{sort}, + #{operTime}, + #{libraryid}, + #{questiontype}, + #{questionlevel}, + #{number}, + #{score}, + #{isDel}, + + + + + update exam_test_paper_chapter + + test_paper_id = #{testPaperId}, + name = #{name}, + comment = #{comment}, + sort = #{sort}, + oper_time = #{operTime}, + libraryId = #{libraryid}, + questionType = #{questiontype}, + questionLevel = #{questionlevel}, + number = #{number}, + score = #{score}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_paper_chapter where id = #{id} + + + + delete from exam_test_paper_chapter where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0598568879814b0c159651e6f3cd6feb85d4e56 --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperMapper.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select id, test_paper_type_id, name, begin_time, end_time, duration, score, paper_make, test_order, comment, level, create_by_user, create_by_dept, update_by, create_time, update_time, is_del from exam_test_paper + + + + + + + + insert into exam_test_paper + + id, + test_paper_type_id, + name, + begin_time, + end_time, + duration, + score, + paper_make, + test_order, + comment, + level, + create_by_user, + create_by_dept, + update_by, + create_time, + update_time, + is_del, + + + #{id}, + #{testPaperTypeId}, + #{name}, + #{beginTime}, + #{endTime}, + #{duration}, + #{score}, + #{paperMake}, + #{testOrder}, + #{comment}, + #{level}, + #{createByUser}, + #{createByDept}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{isDel}, + + + + + update exam_test_paper + + test_paper_type_id = #{testPaperTypeId}, + name = #{name}, + begin_time = #{beginTime}, + end_time = #{endTime}, + duration = #{duration}, + score = #{score}, + paper_make = #{paperMake}, + test_order = #{testOrder}, + comment = #{comment}, + level = #{level}, + create_by_user = #{createByUser}, + create_by_dept = #{createByDept}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_paper where id = #{id} + + + + delete from exam_test_paper where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperQuestionsMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperQuestionsMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..57ec69e6ec4285d6164b78b4b129141e5ce884db --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperQuestionsMapper.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + select id, test_paper_id, test_paper_chapter_id, test_questions_id, score, sort, is_del from exam_test_paper_questions + + + + + + + + insert into exam_test_paper_questions + + id, + test_paper_id, + test_paper_chapter_id, + test_questions_id, + score, + sort, + is_del, + + + #{id}, + #{testPaperId}, + #{testPaperChapterId}, + #{testQuestionsId}, + #{score}, + #{sort}, + #{isDel}, + + + + + update exam_test_paper_questions + + test_paper_id = #{testPaperId}, + test_paper_chapter_id = #{testPaperChapterId}, + test_questions_id = #{testQuestionsId}, + score = #{score}, + sort = #{sort}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_paper_questions where id = #{id} + + + + delete from exam_test_paper_questions where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperTypeMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperTypeMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..a0c83c4d053068d8032fb0fe100221fa859c28b8 --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperTypeMapper.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + select id, name, comment, create_by_user, create_by_dept, update_by, create_time, update_time, is_del from exam_test_paper_type + + + + + + + + insert into exam_test_paper_type + + id, + name, + comment, + create_by_user, + create_by_dept, + update_by, + create_time, + update_time, + is_del, + + + #{id}, + #{name}, + #{comment}, + #{createByUser}, + #{createByDept}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{isDel}, + + + + + update exam_test_paper_type + + name = #{name}, + comment = #{comment}, + create_by_user = #{createByUser}, + create_by_dept = #{createByDept}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_paper_type where id = #{id} + + + + delete from exam_test_paper_type where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperUserMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperUserMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..0479d091f6a46d59e2d28c2699ba3c0e0b1b84a0 --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestPaperUserMapper.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + select id, test_paper_id, user_id, begin_time, end_time, duration, score, state, check_state from exam_test_paper_user + + + + + + + + insert into exam_test_paper_user + + id, + test_paper_id, + user_id, + begin_time, + end_time, + duration, + score, + state, + check_state, + + + #{id}, + #{testPaperId}, + #{userId}, + #{beginTime}, + #{endTime}, + #{duration}, + #{score}, + #{state}, + #{checkState}, + + + + + update exam_test_paper_user + + test_paper_id = #{testPaperId}, + user_id = #{userId}, + begin_time = #{beginTime}, + end_time = #{endTime}, + duration = #{duration}, + score = #{score}, + state = #{state}, + check_state = #{checkState}, + + where id = #{id} + + + + delete from exam_test_paper_user where id = #{id} + + + + delete from exam_test_paper_user where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestQuestionsMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestQuestionsMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..a754dbb7c3c4a7f9e1d298d3b017366aedcf4f8c --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestQuestionsMapper.xml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, test_library_id, question_stem, question_type, level, question_analysis, state, answer, score, A, B, C, D, E, F, G, H, create_by_user, create_by_dept, update_by, create_time, update_time, is_del from exam_test_questions + + + + + + + + insert into exam_test_questions + + id, + test_library_id, + question_stem, + question_type, + level, + question_analysis, + state, + answer, + score, + A, + B, + C, + D, + E, + F, + G, + H, + create_by_user, + create_by_dept, + update_by, + create_time, + update_time, + is_del, + + + #{id}, + #{testLibraryId}, + #{questionStem}, + #{questionType}, + #{level}, + #{questionAnalysis}, + #{state}, + #{answer}, + #{score}, + #{a}, + #{b}, + #{c}, + #{d}, + #{e}, + #{f}, + #{g}, + #{h}, + #{createByUser}, + #{createByDept}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{isDel}, + + + + + update exam_test_questions + + test_library_id = #{testLibraryId}, + question_stem = #{questionStem}, + question_type = #{questionType}, + level = #{level}, + question_analysis = #{questionAnalysis}, + state = #{state}, + answer = #{answer}, + score = #{score}, + A = #{a}, + B = #{b}, + C = #{c}, + D = #{d}, + E = #{e}, + F = #{f}, + G = #{g}, + H = #{h}, + create_by_user = #{createByUser}, + create_by_dept = #{createByDept}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + is_del = #{isDel}, + + where id = #{id} + + + + delete from exam_test_questions where id = #{id} + + + + delete from exam_test_questions where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/mapper/exam/ExamTestUserAnswerMapper.xml b/rboat-exam/src/main/resources/mapper/exam/ExamTestUserAnswerMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..7399a14bd4a69e7896e94973443dea824d07042a --- /dev/null +++ b/rboat-exam/src/main/resources/mapper/exam/ExamTestUserAnswerMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + select id, test_paper_id, chapter_id, question_id, user_id, answer, result, score, state, sort from exam_test_user_answer + + + + + + + + insert into exam_test_user_answer + + id, + test_paper_id, + chapter_id, + question_id, + user_id, + answer, + result, + score, + state, + sort, + + + #{id}, + #{testPaperId}, + #{chapterId}, + #{questionId}, + #{userId}, + #{answer}, + #{result}, + #{score}, + #{state}, + #{sort}, + + + + + update exam_test_user_answer + + test_paper_id = #{testPaperId}, + chapter_id = #{chapterId}, + question_id = #{questionId}, + user_id = #{userId}, + answer = #{answer}, + result = #{result}, + score = #{score}, + state = #{state}, + sort = #{sort}, + + where id = #{id} + + + + delete from exam_test_user_answer where id = #{id} + + + + delete from exam_test_user_answer where id in + + #{id} + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/answer/add.html b/rboat-exam/src/main/resources/templates/exam/answer/add.html new file mode 100644 index 0000000000000000000000000000000000000000..cbf9fd0bb030104e778d0bd69fe51c25df474ae4 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/answer/add.html @@ -0,0 +1,79 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/answer/answer.html b/rboat-exam/src/main/resources/templates/exam/answer/answer.html new file mode 100644 index 0000000000000000000000000000000000000000..b58c86141e53a195b5427f326ce99da46bbff994 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/answer/answer.html @@ -0,0 +1,150 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    考卷ID:t_exam_test_paper:id:

    + +
  • +
  • +

    章节id:

    + +
  • +
  • +

    试题id:

    + +
  • +
  • +

    考生ID:

    + +
  • +
  • +

    考生答案:

    + +
  • +
  • +

    1:正确 2:错误:

    + +
  • +
  • +

    分数:

    + +
  • +
  • +

    0:未批改 1:已批改:

    + +
  • +
  • +

    排序:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/answer/edit.html b/rboat-exam/src/main/resources/templates/exam/answer/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..a931b56646a1ff1f5bcf2dd30407f41292b754a1 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/answer/edit.html @@ -0,0 +1,80 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/chapter/add.html b/rboat-exam/src/main/resources/templates/exam/chapter/add.html new file mode 100644 index 0000000000000000000000000000000000000000..b145fdc587c4e0b87730b57875cf5ee04dfa05dd --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/chapter/add.html @@ -0,0 +1,105 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/chapter/chapter.html b/rboat-exam/src/main/resources/templates/exam/chapter/chapter.html new file mode 100644 index 0000000000000000000000000000000000000000..793350c33fbfb0c0b7978d5f0656cfe49021263a --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/chapter/chapter.html @@ -0,0 +1,163 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    试卷ID:t_exam_test_paper:id:

    + +
  • +
  • +

    排序:

    + +
  • +
  • +

    创建时间:

    + + - + +
  • +
  • +

    题库id:

    + +
  • +
  • +

    问题类型:

    + +
  • +
  • +

    问题难度:

    + +
  • +
  • +

    试题数量:

    + +
  • +
  • +

    每题分值:

    + +
  • +
  • +

    状态:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/chapter/edit.html b/rboat-exam/src/main/resources/templates/exam/chapter/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..1a133e7096d2f52c850684cc787d30ba9dfeb4ae --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/chapter/edit.html @@ -0,0 +1,106 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/library/add.html b/rboat-exam/src/main/resources/templates/exam/library/add.html new file mode 100644 index 0000000000000000000000000000000000000000..00d02ef3cbb27215d2b15c744376897403e96469 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/library/add.html @@ -0,0 +1,71 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/library/edit.html b/rboat-exam/src/main/resources/templates/exam/library/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..41a108b90c2612360989961792af226f0a7126ee --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/library/edit.html @@ -0,0 +1,72 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/library/library.html b/rboat-exam/src/main/resources/templates/exam/library/library.html new file mode 100644 index 0000000000000000000000000000000000000000..7ef96d0612af616fd9176e014eb1d92c3037189d --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/library/library.html @@ -0,0 +1,136 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    题库名称:

    + +
  • +
  • +

    操作者用户ID:

    + +
  • +
  • +

    题库状态:

    + +
  • +
  • +

    创建者:

    + +
  • +
  • +

    创建部门:

    + +
  • +
  • +

    状态:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/paper/add.html b/rboat-exam/src/main/resources/templates/exam/paper/add.html new file mode 100644 index 0000000000000000000000000000000000000000..3768a6376185d41794d3cc2b3a82b024b042fef0 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/paper/add.html @@ -0,0 +1,117 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/paper/edit.html b/rboat-exam/src/main/resources/templates/exam/paper/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..1d3147b8613c76e35ad198a8eb9f81b9e6e0ab9c --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/paper/edit.html @@ -0,0 +1,118 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/paper/paper.html b/rboat-exam/src/main/resources/templates/exam/paper/paper.html new file mode 100644 index 0000000000000000000000000000000000000000..5b2ddb82444b54a80edfd6702b416ee7ed7ea216 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/paper/paper.html @@ -0,0 +1,182 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    试卷类型ID:

    + +
  • +
  • +

    试卷名称:

    + +
  • +
  • +

    开考时间:

    + + - + +
  • +
  • +

    考试结束时间:

    + + - + +
  • +
  • +

    考试时长单位分钟:

    + +
  • +
  • +

    试卷总分值:

    + +
  • +
  • +

    试卷试题生成方式 1:配置 2:机选:

    + +
  • +
  • +

    试题排序:

    + +
  • +
  • +

    试卷的难度1:容易;2:常规;3:困难;:

    + +
  • +
  • +

    创建者:

    + +
  • +
  • +

    创建部门:

    + +
  • +
  • +

    状态:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/questions/add.html b/rboat-exam/src/main/resources/templates/exam/questions/add.html new file mode 100644 index 0000000000000000000000000000000000000000..1687d060d19f1d2a2c15b7a13f6ccea45faac92b --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/questions/add.html @@ -0,0 +1,61 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/questions/edit.html b/rboat-exam/src/main/resources/templates/exam/questions/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..1383fd2c584eec11db20ed3a7211cbcbf2987502 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/questions/edit.html @@ -0,0 +1,62 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/questions/questions.html b/rboat-exam/src/main/resources/templates/exam/questions/questions.html new file mode 100644 index 0000000000000000000000000000000000000000..68c970c4a2522348eaade042f8c1e61474f7dafe --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/questions/questions.html @@ -0,0 +1,126 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    试卷ID:

    + +
  • +
  • +

    试卷章节ID:

    + +
  • +
  • +

    试题ID:

    + +
  • +
  • +

    试题的分值:

    + +
  • +
  • +

    排序:

    + +
  • +
  • +

    状态:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/type/add.html b/rboat-exam/src/main/resources/templates/exam/type/add.html new file mode 100644 index 0000000000000000000000000000000000000000..496e3a331350acadac3286932442b495d74a5821 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/type/add.html @@ -0,0 +1,55 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/type/edit.html b/rboat-exam/src/main/resources/templates/exam/type/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..fb55297be95924eeda629d1e1b8d2375dd66d0c4 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/type/edit.html @@ -0,0 +1,56 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/type/type.html b/rboat-exam/src/main/resources/templates/exam/type/type.html new file mode 100644 index 0000000000000000000000000000000000000000..30a33dff64db5a57118772761bfa810cfb3b2f5b --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/type/type.html @@ -0,0 +1,114 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    试卷类型名称:

    + +
  • +
  • +

    创建者:

    + +
  • +
  • +

    创建部门:

    + +
  • +
  • +

    状态:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/user/add.html b/rboat-exam/src/main/resources/templates/exam/user/add.html new file mode 100644 index 0000000000000000000000000000000000000000..150d3c1b94919e084c7536c6ecb1f3cc4b705320 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/user/add.html @@ -0,0 +1,87 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/user/edit.html b/rboat-exam/src/main/resources/templates/exam/user/edit.html new file mode 100644 index 0000000000000000000000000000000000000000..4ed367cd2fb55c365d83dfdfaae57283026e54cc --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/user/edit.html @@ -0,0 +1,88 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/rboat-exam/src/main/resources/templates/exam/user/user.html b/rboat-exam/src/main/resources/templates/exam/user/user.html new file mode 100644 index 0000000000000000000000000000000000000000..36cf094f8d0e833c3d34e59b4b677bc903c9c3e7 --- /dev/null +++ b/rboat-exam/src/main/resources/templates/exam/user/user.html @@ -0,0 +1,146 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    考卷ID:t_exam_test_paper:id:

    + +
  • +
  • +

    考生ID:

    + +
  • +
  • +

    考试开始时间:

    + + - + +
  • +
  • +

    考试结束时间:

    + + - + +
  • +
  • +

    考试耗时时长:

    + +
  • +
  • +

    得分:

    + +
  • +
  • +

    状态:0:未开始考试;1:正在考试;2:已交卷 3:缺考:

    + +
  • +
  • +

    批阅状态:0未批阅;1:部分批阅:

    + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/rboat-generator/src/main/resources/generator.yml b/rboat-generator/src/main/resources/generator.yml index 56df37f88381c6ff766d0acc3a2b43b2689f6e41..31b6488058f8846a442fe8f14824db50015d140e 100644 --- a/rboat-generator/src/main/resources/generator.yml +++ b/rboat-generator/src/main/resources/generator.yml @@ -4,8 +4,8 @@ gen: # 作者 author: rboat # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool - packageName: com.rboat.system + packageName: com.rboat.exam # 自动去除表前缀,默认是false autoRemovePre: false # 表前缀(类名不会包含表前缀) - tablePrefix: sys_ \ No newline at end of file + tablePrefix: exam_ \ No newline at end of file diff --git a/sql/t_exam.sql b/sql/t_exam.sql new file mode 100644 index 0000000000000000000000000000000000000000..a9c478d9f4f6efb1260b20d3007eafa465e66e9d --- /dev/null +++ b/sql/t_exam.sql @@ -0,0 +1,290 @@ +/* +Navicat MySQL Data Transfer + +Source Server : root +Source Server Version : 50719 +Source Host : 192.168.1.88:3306 +Source Database : mine_db + +Target Server Type : MYSQL +Target Server Version : 50719 +File Encoding : 65001 + +Date: 2019-09-02 11:22:04 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for t_exam_test_library +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_library`; +CREATE TABLE `t_exam_test_library` ( + `id` varchar(32) NOT NULL, + `name` varchar(255) DEFAULT NULL COMMENT '题库名称', + `comment` varchar(500) DEFAULT NULL COMMENT '题库说明备注信息', + `user_id` varchar(32) DEFAULT NULL COMMENT '操作者用户ID', + `oper_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + `state` varchar(1) NOT NULL DEFAULT '1' COMMENT '题库状态(0:删除;1:正常;2:关闭)', + `corp_id` varchar(32) DEFAULT NULL COMMENT '所属公司ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='题库表'; + +-- ---------------------------- +-- Records of t_exam_test_library +-- ---------------------------- +INSERT INTO `t_exam_test_library` VALUES ('0d9eb25207fc4b38afecdd6dbf97b404', '工厂', '工厂', 'esst_admin', '2018-03-08 09:55:03', '1', '0'); +INSERT INTO `t_exam_test_library` VALUES ('2e07a2e123334c459e19a1a8637eecd5', '调卷问查', '调卷问查', '1', '2018-07-30 10:46:56', '0', '0'); +INSERT INTO `t_exam_test_library` VALUES ('32c86ed2d86646d6a3e957233ec36fd9', '测试', '测试题库', '0', '2019-08-22 10:50:30', '1', null); +INSERT INTO `t_exam_test_library` VALUES ('49fbcdd950a24a2ca800d26181734719', '交通', '交通', 'esst_admin', '2018-03-08 09:56:17', '1', '0'); +INSERT INTO `t_exam_test_library` VALUES ('8582b145900f415488ef0fc3121e6771', 'java', '请求', '2', '2017-08-09 15:00:12', '1', '0'); +INSERT INTO `t_exam_test_library` VALUES ('e1a39e339b514d3d8626f3e5d7088a98', '安全知识', '', '2', '2017-08-09 16:54:36', '1', '0'); +INSERT INTO `t_exam_test_library` VALUES ('ed30cd202a33458da23c2def33f88e70', '调卷问查', '调卷问查的所有问题', '1', '2018-07-30 10:41:27', '1', '0'); +INSERT INTO `t_exam_test_library` VALUES ('f98b1094b5834cd5a9534d06d4f5a800', '旅游', '', 'esst_admin', '2018-03-08 09:54:40', '1', '0'); + +-- ---------------------------- +-- Table structure for t_exam_test_paper +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_paper`; +CREATE TABLE `t_exam_test_paper` ( + `id` varchar(32) NOT NULL, + `test_paper_type_id` varchar(32) DEFAULT NULL COMMENT '试卷类型ID', + `name` varchar(200) DEFAULT NULL COMMENT '试卷名称', + `begin_time` timestamp NULL DEFAULT NULL COMMENT '开考时间', + `end_time` timestamp NULL DEFAULT NULL COMMENT '考试结束时间', + `duration` int(11) DEFAULT NULL COMMENT '考试时长单位分钟', + `score` int(11) DEFAULT NULL COMMENT '试卷总分值', + `paper_make` varchar(1) DEFAULT '1' COMMENT '试卷试题生成方式 1:配置 2:机选', + `test_order` varchar(1) DEFAULT NULL COMMENT '试题排序(1:正常;2:随机)', + `comment` varchar(1000) DEFAULT NULL COMMENT '试卷说明', + `level` varchar(1) DEFAULT NULL COMMENT '试卷的难度1:容易;2:常规;3:困难;', + `state` varchar(1) DEFAULT '1' COMMENT '状态(1:正常;0:删除)', + `user_id` varchar(32) DEFAULT NULL COMMENT '用户ID', + `oper_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + `corp_id` varchar(32) DEFAULT NULL COMMENT '所属公司ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷表'; + +-- ---------------------------- +-- Records of t_exam_test_paper +-- ---------------------------- +INSERT INTO `t_exam_test_paper` VALUES ('294cdecbca5f45719c5b63228330aadb', '397dcf1e620c48b199ef5010b62fac2d', '人员配置测试1', '2018-08-30 15:25:00', '2018-09-30 15:47:22', '20', '20', '1', '1', '', null, '1', '0', '2018-08-30 15:26:04', '0'); +INSERT INTO `t_exam_test_paper` VALUES ('326fe50971bf4dce94d91ccee5f203ef', '7fb566271c6f4312a84d102a88166fe6', '问答题测试', '2018-09-29 14:48:00', '2018-10-02 14:48:00', '12', '5', '1', '1', '', null, '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-09-29 14:48:37', '0'); +INSERT INTO `t_exam_test_paper` VALUES ('77ce178e4d0443daba98dd5a9a78677d', '397dcf1e620c48b199ef5010b62fac2d', '常识测试', '2018-08-28 17:02:00', '2018-08-29 17:07:00', '20', '15', '2', '2', '', null, '1', '0', '2018-08-28 17:03:30', '0'); +INSERT INTO `t_exam_test_paper` VALUES ('792dcc7ddc1447e9bd3db12c331e8bdf', '397dcf1e620c48b199ef5010b62fac2d', '测试试卷', '2019-08-22 10:51:00', '2019-08-22 19:51:00', '120', '10', '1', '1', '水电费', null, '1', '0', '2019-08-22 10:51:57', null); +INSERT INTO `t_exam_test_paper` VALUES ('8749c09bdab0464ca032d79c7b5e869d', '397dcf1e620c48b199ef5010b62fac2d', 'test', '2019-04-04 16:20:00', '2019-04-19 16:20:00', '10', null, '1', '1', '', null, '1', '1', '2019-04-04 16:20:23', '0'); +INSERT INTO `t_exam_test_paper` VALUES ('becf70126e554f52a4b2c530df92a78e', '397dcf1e620c48b199ef5010b62fac2d', '培训测试', '2018-12-12 15:00:00', '2019-02-09 15:00:00', '12', null, '2', '2', '', null, '1', '1', '2018-12-12 15:00:21', '0'); +INSERT INTO `t_exam_test_paper` VALUES ('e4c169c12cda41e8b9d1ba64f9d37e2d', '7fb566271c6f4312a84d102a88166fe6', '高级安全工程师', '2018-11-29 17:59:00', '2018-12-08 17:59:00', '60', '10', '1', '1', '', null, '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-11-29 17:58:37', '0'); + +-- ---------------------------- +-- Table structure for t_exam_test_paper_chapter +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_paper_chapter`; +CREATE TABLE `t_exam_test_paper_chapter` ( + `id` varchar(32) NOT NULL, + `test_paper_id` varchar(32) DEFAULT NULL COMMENT '试卷ID:t_exam_test_paper:id', + `name` varchar(500) DEFAULT NULL COMMENT '章节名称', + `comment` varchar(500) DEFAULT NULL COMMENT '章节的描述', + `sort` int(11) DEFAULT NULL COMMENT '排序', + `oper_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `libraryId` varchar(32) DEFAULT NULL COMMENT '题库id', + `questionType` varchar(1) DEFAULT NULL COMMENT '问题类型', + `questionLevel` varchar(1) DEFAULT NULL COMMENT '问题难度', + `number` int(5) DEFAULT NULL COMMENT '试题数量', + `score` int(5) DEFAULT NULL COMMENT '每题分值', + `state` varchar(1) DEFAULT '1' COMMENT '状态0:删除;1:正常', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考试试卷章节表'; + +-- ---------------------------- +-- Records of t_exam_test_paper_chapter +-- ---------------------------- +INSERT INTO `t_exam_test_paper_chapter` VALUES ('0601e604012d4265bed9d9f4653650a6', '326fe50971bf4dce94d91ccee5f203ef', '问答题', null, '0', '2018-09-29 14:48:59', null, null, null, null, '5', '1'); +INSERT INTO `t_exam_test_paper_chapter` VALUES ('1cdd9e738b914389a2e5d3c01511a5e4', '294cdecbca5f45719c5b63228330aadb', '12', null, '0', '2018-09-27 15:54:48', null, null, null, null, '20', '1'); +INSERT INTO `t_exam_test_paper_chapter` VALUES ('3adf2ab90f9c420f8e99248417cb5c71', '792dcc7ddc1447e9bd3db12c331e8bdf', '第一章节', null, '0', '2019-08-22 10:53:09', null, null, null, null, '10', '1'); +INSERT INTO `t_exam_test_paper_chapter` VALUES ('3ecfe2a116a142b0849b654ac21f0280', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '吃冰淇淋不解渴主要是因为它;5;40b1428d13c441998bb5167bf240ed44', null, '0', '2018-11-29 17:59:36', null, null, null, null, '10', '1'); +INSERT INTO `t_exam_test_paper_chapter` VALUES ('be15c04e72bd44658638a2eff41197ff', '77ce178e4d0443daba98dd5a9a78677d', '选择题', '测试', '0', '2018-08-28 17:05:53', '0d9eb25207fc4b38afecdd6dbf97b404', '2', '2', '4', '5', '1'); + +-- ---------------------------- +-- Table structure for t_exam_test_paper_questions +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_paper_questions`; +CREATE TABLE `t_exam_test_paper_questions` ( + `id` varchar(32) NOT NULL, + `test_paper_id` varchar(32) DEFAULT NULL COMMENT '试卷ID', + `test_paper_chapter_id` varchar(32) DEFAULT NULL COMMENT '试卷章节ID', + `test_questions_id` varchar(32) DEFAULT NULL COMMENT '试题ID', + `score` int(11) DEFAULT NULL COMMENT '试题的分值(如果不填则应该取试题库中的分值)', + `sort` int(11) DEFAULT NULL COMMENT '排序', + `state` varchar(1) DEFAULT '1' COMMENT '状态:0:删除;1:正常', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷章节试题表'; + +-- ---------------------------- +-- Records of t_exam_test_paper_questions +-- ---------------------------- +INSERT INTO `t_exam_test_paper_questions` VALUES ('06e83646409d480194529c2da9a12ddd', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '3ecfe2a116a142b0849b654ac21f0280', '43bb9e7080b9443e972706eeeab67ec3', '5', '0', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('0afb8329e1a14b8dab77c171cf4832d9', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '71bcd260fcc24928ae2597a9a8bc25fa', '5', '0', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('13b55e84f11744b281eef3981a99ee02', '792dcc7ddc1447e9bd3db12c331e8bdf', '3adf2ab90f9c420f8e99248417cb5c71', '40b1428d13c441998bb5167bf240ed44', '5', '1', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('3f479204ed0e4300860f0921a88465e1', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', 'ffa59f2f6fc643bd88a923d0f394bcaa', '5', '2', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('57f6d938e0f9493ba54fb58ce2bbbf46', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '43bb9e7080b9443e972706eeeab67ec3', '5', '3', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('5c0c272c1fc142ebb929391df976aa3d', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '38b526ec49e14823a79651e69bed494c', '5', '0', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('5e131b9f44724184a221f0fdf7661464', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', 'ffa59f2f6fc643bd88a923d0f394bcaa', '5', '2', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('a665b96176a749399cbdf210c8519d68', '326fe50971bf4dce94d91ccee5f203ef', '0601e604012d4265bed9d9f4653650a6', '38b526ec49e14823a79651e69bed494c', '5', '0', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('b3883f9dbb9645e1bcbde5a6016b3531', '792dcc7ddc1447e9bd3db12c331e8bdf', '3adf2ab90f9c420f8e99248417cb5c71', '71bcd260fcc24928ae2597a9a8bc25fa', '5', '0', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('b44b3046ff0543bebc5eb417ce74a5fa', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '40b1428d13c441998bb5167bf240ed44', '5', '1', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('baee7012f67a43419b02ff8b7211b4b3', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '3ecfe2a116a142b0849b654ac21f0280', '40b1428d13c441998bb5167bf240ed44', '5', '1', '1'); +INSERT INTO `t_exam_test_paper_questions` VALUES ('fb7c38c7d7554b41abb2d7e62300040f', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '40b1428d13c441998bb5167bf240ed44', '5', '1', '1'); + +-- ---------------------------- +-- Table structure for t_exam_test_paper_type +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_paper_type`; +CREATE TABLE `t_exam_test_paper_type` ( + `id` varchar(32) NOT NULL COMMENT '主键', + `name` varchar(200) DEFAULT NULL COMMENT '试卷类型名称', + `comment` varchar(500) DEFAULT NULL COMMENT '备注信息', + `state` varchar(1) DEFAULT '1' COMMENT '类型状态(1:正常;0:删除)', + `user_id` varchar(32) DEFAULT NULL COMMENT '操作用户ID', + `oper_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + `corp_id` varchar(32) DEFAULT NULL COMMENT '所属公司ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷类型表'; + +-- ---------------------------- +-- Records of t_exam_test_paper_type +-- ---------------------------- +INSERT INTO `t_exam_test_paper_type` VALUES ('397dcf1e620c48b199ef5010b62fac2d', '选择题模块', '全部是选择题', '1', '0', '2018-08-28 16:59:35', '0'); +INSERT INTO `t_exam_test_paper_type` VALUES ('7fb566271c6f4312a84d102a88166fe6', '文字问题', '文字问题的试卷', '1', '0', '2018-08-28 17:02:18', '0'); +INSERT INTO `t_exam_test_paper_type` VALUES ('d3bb40ca07bd45a0a788035c0dd4bce6', '员工测试', '员工测试,如果通过则转正,否,变成学习岗', '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-29 09:43:40', '0'); + +-- ---------------------------- +-- Table structure for t_exam_test_paper_user +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_paper_user`; +CREATE TABLE `t_exam_test_paper_user` ( + `id` varchar(32) NOT NULL, + `test_paper_id` varchar(32) DEFAULT NULL COMMENT '考卷ID:t_exam_test_paper:id', + `user_id` varchar(32) DEFAULT NULL COMMENT '考生ID', + `begin_time` timestamp NULL DEFAULT NULL COMMENT '考试开始时间', + `end_time` timestamp NULL DEFAULT NULL COMMENT '考试结束时间', + `duration` int(11) DEFAULT NULL COMMENT '考试耗时时长(分钟)', + `score` int(11) DEFAULT '0' COMMENT '得分', + `state` varchar(1) DEFAULT '0' COMMENT '状态:0:未开始考试;1:正在考试;2:已交卷 3:缺考', + `check_state` varchar(1) DEFAULT '0' COMMENT '批阅状态:0未批阅;1:部分批阅(针对填空问题题才有的状态)2:已批阅', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试卷考生表'; + +-- ---------------------------- +-- Records of t_exam_test_paper_user +-- ---------------------------- +INSERT INTO `t_exam_test_paper_user` VALUES ('0d5fde091ff7452399f638480b8d73e3', 'becf70126e554f52a4b2c530df92a78e', '0e71cc9733d94aab8707c7b50e901f01', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('129f6c0a5c494a9da82f22e7bfb0f674', 'becf70126e554f52a4b2c530df92a78e', '51529b85e946453e9b0dfb87454d240c', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('169a0bef90314ffaabd8b743e07bfedd', '326fe50971bf4dce94d91ccee5f203ef', 'd3c9abad7e624ed996611ddd19b640cf', '2018-09-29 15:30:09', '2018-09-29 15:31:02', '0', '0', '2', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('16f6bf152dd242a08cf1df8e3ef4f59f', '294cdecbca5f45719c5b63228330aadb', 'a20e00026e674d7095e8802dac901892', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('1d742ddac38449dc8f652c7e201acdef', '294cdecbca5f45719c5b63228330aadb', '18cffee33a7642769028eb89faaf1579', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('23291e04163d41cea3c8e351a2390025', 'becf70126e554f52a4b2c530df92a78e', 'a07091c32eaa4fa3a0feeaaae5998b25', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('2987e56cca8c486599d57299d7fd3273', '294cdecbca5f45719c5b63228330aadb', '9600d71ec3d845cbb4decaaaf5996f94', '2018-09-29 14:45:12', '2018-09-29 14:46:13', '1', '0', '2', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('2bec1182fdb643c3a1c512013aa5c9d1', '77ce178e4d0443daba98dd5a9a78677d', '058c174443c3479e8a72f636a776307f', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('2c70075a7460471faa5184d91e0cb9aa', '294cdecbca5f45719c5b63228330aadb', '88b40b1964d34ec696bc0d3e4467b7e0', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('2d2d67e3682f4c93bba9820a4831c34b', 'becf70126e554f52a4b2c530df92a78e', '18cffee33a7642769028eb89faaf1579', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('38f26e65eaca44518a43cab57d1b69e0', '294cdecbca5f45719c5b63228330aadb', '8166e03fa56f4c1288b39ec784d4324b', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('3aa9b5af98ee48f0857ae16ebedc808b', 'becf70126e554f52a4b2c530df92a78e', '0e71cc9733d94aab8707c7b50e901f01', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('43dbd6ca58664b95a8085dc672a4779d', '77ce178e4d0443daba98dd5a9a78677d', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-28 17:09:01', '2018-08-28 17:09:10', '0', '15', '2', '2'); +INSERT INTO `t_exam_test_paper_user` VALUES ('52edeaa7665746e6b3dd3ddc25167adf', '294cdecbca5f45719c5b63228330aadb', 'e8d5b9a03b1547b7a0a079ba5a3a988d', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('59382efe30d44bf785336166c3af260b', '792dcc7ddc1447e9bd3db12c331e8bdf', '2', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('5ea5957fd93641068121ea4d1673e28d', '294cdecbca5f45719c5b63228330aadb', 'd0f96f7b27dd4ba3924294efb3f8b192', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('5f3e24c46e77488e8e208009a5249020', '326fe50971bf4dce94d91ccee5f203ef', '9600d71ec3d845cbb4decaaaf5996f94', '2018-09-29 14:49:22', '2018-09-29 15:01:27', '12', '0', '2', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('7bc3da431c494115b1421acf02cbdd51', '77ce178e4d0443daba98dd5a9a78677d', 'c9df71e3825e4a06b354b19a6f7076e3', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('7bd65e42ecf649efa3dbe17f1803410b', '294cdecbca5f45719c5b63228330aadb', 'd0f96f7b27dd4ba3924294efb3f8b192', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('83a49d27be4b4c748d7cdf3bbcaecc3d', '294cdecbca5f45719c5b63228330aadb', 'edbf3d82f43f45f4865e59adc3fb0def', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('83c66f7c1cb04d13bfda84400e1430b3', '294cdecbca5f45719c5b63228330aadb', 'd3c9abad7e624ed996611ddd19b640cf', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('8959ea360bf9425796b69f828b1431c3', 'becf70126e554f52a4b2c530df92a78e', 'a07091c32eaa4fa3a0feeaaae5998b25', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('9621b3c01bde4e2786a3b9ce84bab8da', '294cdecbca5f45719c5b63228330aadb', '74fd53a255264df99b7c018debaa1aef', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('a169179ba11240968f8af4b6aeefad0c', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '9600d71ec3d845cbb4decaaaf5996f94', '2018-11-29 18:05:35', '2018-11-30 10:24:51', '979', '0', '2', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('a8d8a4ce650f4ed8becf390e5516e0c2', '294cdecbca5f45719c5b63228330aadb', '9600d71ec3d845cbb4decaaaf5996f94', '2018-09-10 10:44:26', null, null, '0', '1', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('adfefcf6cb644100b256b24a5ef57468', 'becf70126e554f52a4b2c530df92a78e', '18cffee33a7642769028eb89faaf1579', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('b82cf0e7a61d4160be9b6d08e0c977ee', 'becf70126e554f52a4b2c530df92a78e', '0e71cc9733d94aab8707c7b50e901f01', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('b9186f0006f8424a877cfa064937b57d', '294cdecbca5f45719c5b63228330aadb', '598564bd8ffc4af49389713e8a2657a6', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('c2c1321587264c5eaabe238a6f23ce47', '294cdecbca5f45719c5b63228330aadb', 'e8d5b9a03b1547b7a0a079ba5a3a988d', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('c3f95082f3714d8d9746981c9b0b7fdf', '294cdecbca5f45719c5b63228330aadb', 'bd18a87033174496a3d98a19b5c0ae14', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('d9d81c16285b448194bf48de2788b2a4', '294cdecbca5f45719c5b63228330aadb', '9600d71ec3d845cbb4decaaaf5996f94', '2018-09-07 16:42:34', null, null, '0', '1', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('da94bca82c7f497283a02ed8c7f1a33b', '294cdecbca5f45719c5b63228330aadb', '96adaf0a20c14ae98e79c67455e5bbea', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('e5fea37b0c49443981e9ff3e92ba5177', '77ce178e4d0443daba98dd5a9a78677d', 'd3c9abad7e624ed996611ddd19b640cf', '2018-08-28 17:16:37', '2018-08-28 17:16:48', '0', '5', '2', '2'); +INSERT INTO `t_exam_test_paper_user` VALUES ('f8d568b671314d8e9f70e3fbcf5226cd', '792dcc7ddc1447e9bd3db12c331e8bdf', '0282678293174aaa963d77053f39428c', null, null, null, '0', '0', '0'); +INSERT INTO `t_exam_test_paper_user` VALUES ('fb2c4b0f9b1b4d0997f5098bfa9e43a8', 'becf70126e554f52a4b2c530df92a78e', '18cffee33a7642769028eb89faaf1579', null, null, null, '0', '0', '0'); + +-- ---------------------------- +-- Table structure for t_exam_test_questions +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_questions`; +CREATE TABLE `t_exam_test_questions` ( + `id` varchar(32) NOT NULL, + `test_library_id` varchar(32) DEFAULT NULL COMMENT '所属题库ID t_exam_test_library:id', + `question_stem` varchar(4000) DEFAULT NULL COMMENT '题干;如果是填空题则多个题干以||分隔', + `question_type` varchar(1) DEFAULT NULL COMMENT '题型1:判断题;2:单选题;3:多选题;4:问答题;5:填空题', + `level` varchar(1) DEFAULT NULL COMMENT '题库的难度1:容易;2:常规;3:困难;', + `question_analysis` varchar(1000) DEFAULT NULL COMMENT '题库解析分析', + `state` varchar(1) DEFAULT '1' COMMENT '题库状态0:删除;1:正常;2;关闭', + `user_id` varchar(32) DEFAULT NULL COMMENT '创建用户ID', + `oper_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间', + `corp_id` varchar(32) DEFAULT NULL COMMENT '所属公司ID', + `answer` varchar(2000) DEFAULT NULL COMMENT '正确答案;(判断题1:正确,0:错误;)如果是填空题多个答案以||分隔', + `score` int(11) DEFAULT '0' COMMENT '试题分数', + `A` varchar(255) DEFAULT NULL COMMENT '第1个选项', + `B` varchar(255) DEFAULT NULL COMMENT '第2个选项', + `C` varchar(255) DEFAULT NULL COMMENT '第3个选项', + `D` varchar(255) DEFAULT NULL COMMENT '第4个选项', + `E` varchar(255) DEFAULT NULL COMMENT '第5个选项', + `F` varchar(255) DEFAULT NULL COMMENT '第6个选项', + `G` varchar(255) DEFAULT NULL COMMENT '第7个选项', + `H` varchar(255) DEFAULT NULL COMMENT '第8个选项', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='试题表'; + +-- ---------------------------- +-- Records of t_exam_test_questions +-- ---------------------------- +INSERT INTO `t_exam_test_questions` VALUES ('38b526ec49e14823a79651e69bed494c', '0d9eb25207fc4b38afecdd6dbf97b404', '

世界上最长的河是什么河?

', '5', '2', '', '1', '1', '2018-09-27 15:50:44', '0', '尼罗河', '5', null, null, null, null, null, null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('40b1428d13c441998bb5167bf240ed44', '0d9eb25207fc4b38afecdd6dbf97b404', '

吃冰淇淋不解渴主要是因为它

', '2', '2', '', '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-28 16:42:47', '0', 'A', '5', '含蛋白质', '含脂肪', '含糖', null, null, null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('43bb9e7080b9443e972706eeeab67ec3', '0d9eb25207fc4b38afecdd6dbf97b404', '

大煮干丝”是哪个菜系的代表菜之一( )

', '2', '1', '', '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-28 16:25:29', '0', 'A', '5', '四川菜系', '山东菜系 ', '广东菜系', '淮扬菜系', null, null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('71bcd260fcc24928ae2597a9a8bc25fa', '0d9eb25207fc4b38afecdd6dbf97b404', '

下列哪项是人体的造血器官?

', '2', '2', '', '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-28 16:43:29', '0', 'A', '5', '心脏', '骨髓', '肾脏', null, null, null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('85af721b7a674ace9b36dcd0351243cc', '32c86ed2d86646d6a3e957233ec36fd9', '

时代

', '2', '2', '点点滴滴', '1', '0', '2019-08-22 10:50:59', null, 'A', '6', '点点', '公共', '噶', '的', null, null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('d904f12ad8b0403d8e07a6bce2c7d054', '0d9eb25207fc4b38afecdd6dbf97b404', '

满汉全席起兴于

', '3', '2', '', '1', '1', '2018-09-27 15:49:42', '0', 'A', '5', '清代 ', '唐代 ', '宋代', ' 两汉', '民国', null, null, null); +INSERT INTO `t_exam_test_questions` VALUES ('ffa59f2f6fc643bd88a923d0f394bcaa', '0d9eb25207fc4b38afecdd6dbf97b404', '

红茶属于( )茶。

', '2', '2', '', '1', '9600d71ec3d845cbb4decaaaf5996f94', '2018-08-28 16:32:25', '0', 'A', '5', '半发酵', '发酵', '不发酵 ', '微发酵', null, null, null, null); + +-- ---------------------------- +-- Table structure for t_exam_test_user_answer +-- ---------------------------- +DROP TABLE IF EXISTS `t_exam_test_user_answer`; +CREATE TABLE `t_exam_test_user_answer` ( + `id` varchar(32) NOT NULL, + `test_paper_id` varchar(32) DEFAULT NULL COMMENT '考卷ID:t_exam_test_paper:id', + `chapter_id` varchar(32) DEFAULT NULL COMMENT '章节id', + `question_id` varchar(32) DEFAULT NULL COMMENT '试题id', + `user_id` varchar(32) DEFAULT NULL COMMENT '考生ID', + `answer` text COMMENT '考生答案', + `result` varchar(1) DEFAULT NULL COMMENT '1:正确 2:错误', + `score` int(11) DEFAULT '0' COMMENT '分数', + `state` varchar(1) DEFAULT '0' COMMENT '0:未批改 1:已批改', + `sort` int(10) DEFAULT '0' COMMENT '排序', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考生答题表'; + +-- ---------------------------- +-- Records of t_exam_test_user_answer +-- ---------------------------- +INSERT INTO `t_exam_test_user_answer` VALUES ('154a4d64ab874bd0bc81e6f12125e29e', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', 'ffa59f2f6fc643bd88a923d0f394bcaa', '9600d71ec3d845cbb4decaaaf5996f94', 'A', '1', '5', '1', '1'); +INSERT INTO `t_exam_test_user_answer` VALUES ('1f068ab163804fccb0223d0fbd24c3cc', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '3ecfe2a116a142b0849b654ac21f0280', '40b1428d13c441998bb5167bf240ed44', '9600d71ec3d845cbb4decaaaf5996f94', null, null, null, null, '1'); +INSERT INTO `t_exam_test_user_answer` VALUES ('239f5adce6b0497a83ad9a455220c2d6', '326fe50971bf4dce94d91ccee5f203ef', '0601e604012d4265bed9d9f4653650a6', '38b526ec49e14823a79651e69bed494c', '9600d71ec3d845cbb4decaaaf5996f94', '11111', null, null, null, '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('4219007880a54c559773d923d9158faf', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '43bb9e7080b9443e972706eeeab67ec3', '9600d71ec3d845cbb4decaaaf5996f94', 'C', null, null, null, '3'); +INSERT INTO `t_exam_test_user_answer` VALUES ('5137cdf82ad0448c9334e9782e1eb9d7', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '40b1428d13c441998bb5167bf240ed44', 'd3c9abad7e624ed996611ddd19b640cf', 'B', '2', null, '1', '2'); +INSERT INTO `t_exam_test_user_answer` VALUES ('58cd1cc0688c4ae29bb5b131cc8fba6f', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '71bcd260fcc24928ae2597a9a8bc25fa', '9600d71ec3d845cbb4decaaaf5996f94', 'A', '1', '5', '1', '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('73bfbc168a0844baaf9078f5a6947155', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '40b1428d13c441998bb5167bf240ed44', '9600d71ec3d845cbb4decaaaf5996f94', 'A', '1', '5', '1', '2'); +INSERT INTO `t_exam_test_user_answer` VALUES ('a770f7ebe25b4612979591d95e0d4a99', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', 'ffa59f2f6fc643bd88a923d0f394bcaa', '9600d71ec3d845cbb4decaaaf5996f94', 'B', null, null, null, '2'); +INSERT INTO `t_exam_test_user_answer` VALUES ('aab11c63bd7444548c46247b8948904d', 'e4c169c12cda41e8b9d1ba64f9d37e2d', '3ecfe2a116a142b0849b654ac21f0280', '43bb9e7080b9443e972706eeeab67ec3', '9600d71ec3d845cbb4decaaaf5996f94', null, null, null, null, '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('b507641b13574406bb8ec0e381ae5d4c', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '38b526ec49e14823a79651e69bed494c', '9600d71ec3d845cbb4decaaaf5996f94', '黄河', null, null, null, '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('d974caf1b74849e7b05294b77d3fb944', '326fe50971bf4dce94d91ccee5f203ef', '0601e604012d4265bed9d9f4653650a6', '38b526ec49e14823a79651e69bed494c', 'd3c9abad7e624ed996611ddd19b640cf', '', null, null, null, '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('dc5718c83bd64157b6853661b3b40f11', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', '71bcd260fcc24928ae2597a9a8bc25fa', 'd3c9abad7e624ed996611ddd19b640cf', 'A', '1', '5', '1', '0'); +INSERT INTO `t_exam_test_user_answer` VALUES ('ddaad8745f1d4e3e98be143a8f302f5d', '294cdecbca5f45719c5b63228330aadb', '1cdd9e738b914389a2e5d3c01511a5e4', '40b1428d13c441998bb5167bf240ed44', '9600d71ec3d845cbb4decaaaf5996f94', 'B', null, null, null, '1'); +INSERT INTO `t_exam_test_user_answer` VALUES ('e0527618728d485ea16667e3bfbe4b08', '77ce178e4d0443daba98dd5a9a78677d', 'be15c04e72bd44658638a2eff41197ff', 'ffa59f2f6fc643bd88a923d0f394bcaa', 'd3c9abad7e624ed996611ddd19b640cf', 'B', '2', null, '1', '1');