通用优化
This commit is contained in:
parent
95073743b4
commit
0e4943de0e
|
|
@ -127,7 +127,7 @@ gen:
|
|||
# 作者
|
||||
author: zhujj
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.ruoyi.test
|
||||
packageName: com.ruoyi.exam
|
||||
# 自动去除表前缀,默认是true
|
||||
autoRemovePre: false
|
||||
# 表前缀(类名不会包含表前缀)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
package com.ruoyi.exam.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -21,26 +21,26 @@ import com.ruoyi.common.utils.ExcelUtil;
|
|||
|
||||
/**
|
||||
* 试题分类 信息操作处理
|
||||
*
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/examQuestionCategory")
|
||||
public class ExamQuestionCategoryController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/examQuestionCategory";
|
||||
|
||||
private String prefix = "exam/examQuestionCategory";
|
||||
|
||||
@Autowired
|
||||
private IExamQuestionCategoryService examQuestionCategoryService;
|
||||
|
||||
|
||||
@RequiresPermissions("exam:examQuestionCategory:view")
|
||||
@GetMapping()
|
||||
public String examQuestionCategory()
|
||||
{
|
||||
return prefix + "/examQuestionCategory";
|
||||
return prefix + "/examQuestionCategory";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询试题分类列表
|
||||
*/
|
||||
|
|
@ -49,34 +49,33 @@ public class ExamQuestionCategoryController extends BaseController
|
|||
@ResponseBody
|
||||
public TableDataInfo list(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
|
||||
List<ExamQuestionCategory> list = examQuestionCategoryService.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
List<ExamQuestionCategory> list = examQuestionCategoryService.selectExamQuestionCategoryPage(examQuestionCategory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 导出试题分类列表
|
||||
*/
|
||||
@RequiresPermissions("exam:examQuestionCategory:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
List<ExamQuestionCategory> list = examQuestionCategoryService.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
ExcelUtil<ExamQuestionCategory> util = new ExcelUtil<ExamQuestionCategory>(ExamQuestionCategory.class);
|
||||
return util.exportExcel(list, "examQuestionCategory");
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
List<ExamQuestionCategory> list = examQuestionCategoryService.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
ExcelUtil<ExamQuestionCategory> util = new ExcelUtil<ExamQuestionCategory>(ExamQuestionCategory.class);
|
||||
return util.exportExcel(list, "examQuestionCategory");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增试题分类
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增保存试题分类
|
||||
*/
|
||||
|
|
@ -85,7 +84,7 @@ public class ExamQuestionCategoryController extends BaseController
|
|||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
{
|
||||
return toAjax(examQuestionCategoryService.insert(examQuestionCategory));
|
||||
}
|
||||
|
||||
|
|
@ -95,11 +94,11 @@ public class ExamQuestionCategoryController extends BaseController
|
|||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
ExamQuestionCategory examQuestionCategory = examQuestionCategoryService.selectExamQuestionCategoryById(id);
|
||||
ExamQuestionCategory examQuestionCategory = examQuestionCategoryService.selectById(id);
|
||||
mmap.put("examQuestionCategory", examQuestionCategory);
|
||||
return prefix + "/edit";
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改保存试题分类
|
||||
*/
|
||||
|
|
@ -108,10 +107,10 @@ public class ExamQuestionCategoryController extends BaseController
|
|||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
return toAjax(examQuestionCategoryService.updateExamQuestionCategory(examQuestionCategory));
|
||||
{
|
||||
return toAjax(examQuestionCategoryService.updateById(examQuestionCategory));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除试题分类
|
||||
*/
|
||||
|
|
@ -120,8 +119,8 @@ public class ExamQuestionCategoryController extends BaseController
|
|||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
{
|
||||
return toAjax(examQuestionCategoryService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
package com.ruoyi.exam.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -23,7 +23,7 @@ import com.ruoyi.common.utils.ExcelUtil;
|
|||
* 问题点评 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/examQuestionComment")
|
||||
|
|
@ -49,7 +49,7 @@ public class ExamQuestionCommentController extends BaseController
|
|||
@ResponseBody
|
||||
public TableDataInfo list(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
List<ExamQuestionComment> list = examQuestionCommentService.selectExamQuestionCommentList(examQuestionComment);
|
||||
List<ExamQuestionComment> list = examQuestionCommentService.selectExamQuestionCommentPage(examQuestionComment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ public class ExamQuestionCommentController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult addSave(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
return toAjax(examQuestionCommentService.insertExamQuestionComment(examQuestionComment));
|
||||
return toAjax(examQuestionCommentService.insert(examQuestionComment));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -94,7 +94,7 @@ public class ExamQuestionCommentController extends BaseController
|
|||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
ExamQuestionComment examQuestionComment = examQuestionCommentService.selectExamQuestionCommentById(id);
|
||||
ExamQuestionComment examQuestionComment = examQuestionCommentService.selectById(id);
|
||||
mmap.put("examQuestionComment", examQuestionComment);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ public class ExamQuestionCommentController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult editSave(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
return toAjax(examQuestionCommentService.updateExamQuestionComment(examQuestionComment));
|
||||
return toAjax(examQuestionCommentService.updateById(examQuestionComment));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +120,7 @@ public class ExamQuestionCommentController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(examQuestionCommentService.deleteExamQuestionCommentByIds(ids));
|
||||
return toAjax(examQuestionCommentService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
package com.ruoyi.exam.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -23,7 +23,7 @@ import com.ruoyi.common.utils.ExcelUtil;
|
|||
* 问题 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/examQuestion")
|
||||
|
|
@ -49,7 +49,7 @@ public class ExamQuestionController extends BaseController
|
|||
@ResponseBody
|
||||
public TableDataInfo list(ExamQuestion examQuestion)
|
||||
{
|
||||
List<ExamQuestion> list = examQuestionService.selectExamQuestionList(examQuestion);
|
||||
List<ExamQuestion> list = examQuestionService.selectExamQuestionPage(examQuestion);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ public class ExamQuestionController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult addSave(ExamQuestion examQuestion)
|
||||
{
|
||||
return toAjax(examQuestionService.insertExamQuestion(examQuestion));
|
||||
return toAjax(examQuestionService.insert(examQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -94,7 +94,7 @@ public class ExamQuestionController extends BaseController
|
|||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
ExamQuestion examQuestion = examQuestionService.selectExamQuestionById(id);
|
||||
ExamQuestion examQuestion = examQuestionService.selectById(id);
|
||||
mmap.put("examQuestion", examQuestion);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ public class ExamQuestionController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult editSave(ExamQuestion examQuestion)
|
||||
{
|
||||
return toAjax(examQuestionService.updateExamQuestion(examQuestion));
|
||||
return toAjax(examQuestionService.updateById(examQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +120,7 @@ public class ExamQuestionController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(examQuestionService.deleteExamQuestionByIds(ids));
|
||||
return toAjax(examQuestionService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
package com.ruoyi.exam.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -23,7 +23,7 @@ import com.ruoyi.common.utils.ExcelUtil;
|
|||
* 问题选项 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/examQuestionItem")
|
||||
|
|
@ -49,7 +49,7 @@ public class ExamQuestionItemController extends BaseController
|
|||
@ResponseBody
|
||||
public TableDataInfo list(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
List<ExamQuestionItem> list = examQuestionItemService.selectExamQuestionItemList(examQuestionItem);
|
||||
List<ExamQuestionItem> list = examQuestionItemService.selectExamQuestionItemPage(examQuestionItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ public class ExamQuestionItemController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult addSave(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
return toAjax(examQuestionItemService.insertExamQuestionItem(examQuestionItem));
|
||||
return toAjax(examQuestionItemService.insert(examQuestionItem));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -94,7 +94,7 @@ public class ExamQuestionItemController extends BaseController
|
|||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
ExamQuestionItem examQuestionItem = examQuestionItemService.selectExamQuestionItemById(id);
|
||||
ExamQuestionItem examQuestionItem = examQuestionItemService.selectById(id);
|
||||
mmap.put("examQuestionItem", examQuestionItem);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ public class ExamQuestionItemController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult editSave(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
return toAjax(examQuestionItemService.updateExamQuestionItem(examQuestionItem));
|
||||
return toAjax(examQuestionItemService.updateById(examQuestionItem));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +120,7 @@ public class ExamQuestionItemController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(examQuestionItemService.deleteExamQuestionItemByIds(ids));
|
||||
return toAjax(examQuestionItemService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.ruoyi.exam.domain;
|
|||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
|
|
@ -10,142 +10,177 @@ import java.util.Date;
|
|||
* 问题表 exam_question
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public class ExamQuestion
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
@Id
|
||||
@Id
|
||||
private String id;
|
||||
/** 问题标题 */
|
||||
|
||||
private String title;
|
||||
/** 问题答案 */
|
||||
|
||||
private String answer;
|
||||
/** 问题类型 */
|
||||
|
||||
private String type;
|
||||
/** 标签 */
|
||||
|
||||
private String label;
|
||||
/** 类别 */
|
||||
|
||||
private String categoryId;
|
||||
/** 创建者 */
|
||||
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
|
||||
private Date createDate;
|
||||
/** 更新者 */
|
||||
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
|
||||
private Date updateDate;
|
||||
/** 备注信息 */
|
||||
|
||||
private String remarks;
|
||||
/** 删除标记 */
|
||||
|
||||
private String delFlag;
|
||||
|
||||
/** 设置 */
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置问题标题 */
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/** 获取问题标题 */
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
/** 设置问题答案 */
|
||||
public void setAnswer(String answer)
|
||||
{
|
||||
this.answer = answer;
|
||||
}
|
||||
|
||||
/** 获取问题答案 */
|
||||
public String getAnswer()
|
||||
{
|
||||
return answer;
|
||||
}
|
||||
/** 设置问题类型 */
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/** 获取问题类型 */
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
/** 设置标签 */
|
||||
public void setLabel(String label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
/** 获取标签 */
|
||||
public String getLabel()
|
||||
{
|
||||
return label;
|
||||
}
|
||||
/** 设置类别 */
|
||||
public void setCategoryId(String categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
/** 获取类别 */
|
||||
public String getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateDate(Date updateDate)
|
||||
{
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateDate()
|
||||
{
|
||||
return updateDate;
|
||||
}
|
||||
/** 设置备注信息 */
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** 获取备注信息 */
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
/** 设置删除标记 */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标记 */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
|
|
|
|||
|
|
@ -10,120 +10,149 @@ import java.util.Date;
|
|||
* 试题分类表 exam_question_category
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public class ExamQuestionCategory
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
@Id
|
||||
@Id
|
||||
private String id;
|
||||
/** 分类 */
|
||||
|
||||
private String name;
|
||||
/** */
|
||||
|
||||
private String parentId;
|
||||
/** */
|
||||
|
||||
private String parentIds;
|
||||
/** 创建者 */
|
||||
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
|
||||
private Date createDate;
|
||||
/** 更新者 */
|
||||
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
|
||||
private Date updateDate;
|
||||
/** 备注信息 */
|
||||
|
||||
private String remarks;
|
||||
/** 删除标记 */
|
||||
|
||||
private String delFlag;
|
||||
|
||||
/** 设置 */
|
||||
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 setParentId(String parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
/** 设置 */
|
||||
public void setParentIds(String parentIds)
|
||||
{
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getParentIds()
|
||||
{
|
||||
return parentIds;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateDate(Date updateDate)
|
||||
{
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateDate()
|
||||
{
|
||||
return updateDate;
|
||||
}
|
||||
/** 设置备注信息 */
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** 获取备注信息 */
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
/** 设置删除标记 */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标记 */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.ruoyi.exam.domain;
|
|||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* 问题点评表 exam_question_comment
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public class ExamQuestionComment
|
||||
{
|
||||
|
|
@ -20,121 +20,153 @@ public class ExamQuestionComment
|
|||
@Id
|
||||
private String id;
|
||||
/** 点评内容 */
|
||||
|
||||
private Integer content;
|
||||
/** 问题 */
|
||||
|
||||
private String examQuestionId;
|
||||
/** 点赞数量 */
|
||||
|
||||
private Integer praiseCount;
|
||||
/** 类型(0 学生点评 1 老师点评) */
|
||||
|
||||
private String commentType;
|
||||
/** 创建者 */
|
||||
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
|
||||
private Date createDate;
|
||||
/** 更新者 */
|
||||
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
|
||||
private Date updateDate;
|
||||
/** 备注信息 */
|
||||
|
||||
private String remarks;
|
||||
/** 删除标记 */
|
||||
|
||||
private String delFlag;
|
||||
|
||||
/** 设置 */
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置点评内容 */
|
||||
public void setContent(Integer content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/** 获取点评内容 */
|
||||
public Integer getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
/** 设置问题 */
|
||||
public void setExamQuestionId(String examQuestionId)
|
||||
{
|
||||
this.examQuestionId = examQuestionId;
|
||||
}
|
||||
|
||||
/** 获取问题 */
|
||||
public String getExamQuestionId()
|
||||
{
|
||||
return examQuestionId;
|
||||
}
|
||||
/** 设置点赞数量 */
|
||||
public void setPraiseCount(Integer praiseCount)
|
||||
{
|
||||
this.praiseCount = praiseCount;
|
||||
}
|
||||
|
||||
/** 获取点赞数量 */
|
||||
public Integer getPraiseCount()
|
||||
{
|
||||
return praiseCount;
|
||||
}
|
||||
/** 设置类型(0 学生点评 1 老师点评) */
|
||||
public void setCommentType(String commentType)
|
||||
{
|
||||
this.commentType = commentType;
|
||||
}
|
||||
|
||||
/** 获取类型(0 学生点评 1 老师点评) */
|
||||
public String getCommentType()
|
||||
{
|
||||
return commentType;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateDate(Date updateDate)
|
||||
{
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateDate()
|
||||
{
|
||||
return updateDate;
|
||||
}
|
||||
/** 设置备注信息 */
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** 获取备注信息 */
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
/** 设置删除标记 */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标记 */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.ruoyi.exam.domain;
|
|||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* 问题选项表 exam_question_item
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public class ExamQuestionItem
|
||||
{
|
||||
|
|
@ -20,110 +20,139 @@ public class ExamQuestionItem
|
|||
@Id
|
||||
private String id;
|
||||
/** 选项内容 */
|
||||
|
||||
private String content;
|
||||
/** 选项 */
|
||||
|
||||
private String number;
|
||||
/** 题目 */
|
||||
|
||||
private String examQuestionId;
|
||||
/** 创建者 */
|
||||
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
|
||||
private Date createDate;
|
||||
/** 更新者 */
|
||||
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
|
||||
private Date updateDate;
|
||||
/** 备注信息 */
|
||||
|
||||
private String remarks;
|
||||
/** 删除标记 */
|
||||
|
||||
private String delFlag;
|
||||
|
||||
/** 设置 */
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置选项内容 */
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/** 获取选项内容 */
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
/** 设置选项 */
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
/** 获取选项 */
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
/** 设置题目 */
|
||||
public void setExamQuestionId(String examQuestionId)
|
||||
{
|
||||
this.examQuestionId = examQuestionId;
|
||||
}
|
||||
|
||||
/** 获取题目 */
|
||||
public String getExamQuestionId()
|
||||
{
|
||||
return examQuestionId;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateDate(Date updateDate)
|
||||
{
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateDate()
|
||||
{
|
||||
return updateDate;
|
||||
}
|
||||
/** 设置备注信息 */
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** 获取备注信息 */
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
/** 设置删除标记 */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标记 */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
|
|
|
|||
|
|
@ -8,18 +8,11 @@ import com.ruoyi.framework.web.base.MyMapper;
|
|||
* 试题分类 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface ExamQuestionCategoryMapper extends MyMapper<ExamQuestionCategory>
|
||||
{
|
||||
/**
|
||||
* 查询试题分类信息
|
||||
*
|
||||
* @param id 试题分类ID
|
||||
* @return 试题分类信息
|
||||
*/
|
||||
public ExamQuestionCategory selectExamQuestionCategoryById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 查询试题分类列表
|
||||
*
|
||||
|
|
@ -28,36 +21,4 @@ public interface ExamQuestionCategoryMapper extends MyMapper<ExamQuestionCatego
|
|||
*/
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryList(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 新增试题分类
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExamQuestionCategory(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 修改试题分类
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionCategory(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 删除试题分类
|
||||
*
|
||||
* @param id 试题分类ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCategoryById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除试题分类
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCategoryByIds(String[] ids);
|
||||
|
||||
}
|
||||
|
|
@ -8,18 +8,11 @@ import com.ruoyi.framework.web.base.MyMapper;
|
|||
* 问题点评 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface ExamQuestionCommentMapper extends MyMapper<ExamQuestionComment>
|
||||
{
|
||||
/**
|
||||
* 查询问题点评信息
|
||||
*
|
||||
* @param id 问题点评ID
|
||||
* @return 问题点评信息
|
||||
*/
|
||||
public ExamQuestionComment selectExamQuestionCommentById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 查询问题点评列表
|
||||
*
|
||||
|
|
@ -28,36 +21,4 @@ public interface ExamQuestionCommentMapper extends MyMapper<ExamQuestionComment
|
|||
*/
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentList(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 新增问题点评
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExamQuestionComment(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 修改问题点评
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionComment(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 删除问题点评
|
||||
*
|
||||
* @param id 问题点评ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCommentById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除问题点评
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCommentByIds(String[] ids);
|
||||
|
||||
}
|
||||
|
|
@ -8,18 +8,11 @@ import com.ruoyi.framework.web.base.MyMapper;
|
|||
* 问题选项 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface ExamQuestionItemMapper extends MyMapper<ExamQuestionItem>
|
||||
{
|
||||
/**
|
||||
* 查询问题选项信息
|
||||
*
|
||||
* @param id 问题选项ID
|
||||
* @return 问题选项信息
|
||||
*/
|
||||
public ExamQuestionItem selectExamQuestionItemById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 查询问题选项列表
|
||||
*
|
||||
|
|
@ -28,36 +21,4 @@ public interface ExamQuestionItemMapper extends MyMapper<ExamQuestionItem>
|
|||
*/
|
||||
public List<ExamQuestionItem> selectExamQuestionItemList(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 新增问题选项
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExamQuestionItem(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 修改问题选项
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionItem(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 删除问题选项
|
||||
*
|
||||
* @param id 问题选项ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionItemById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除问题选项
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionItemByIds(String[] ids);
|
||||
|
||||
}
|
||||
|
|
@ -8,18 +8,11 @@ import com.ruoyi.framework.web.base.MyMapper;
|
|||
* 问题 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface ExamQuestionMapper extends MyMapper<ExamQuestion>
|
||||
{
|
||||
/**
|
||||
* 查询问题信息
|
||||
*
|
||||
* @param id 问题ID
|
||||
* @return 问题信息
|
||||
*/
|
||||
public ExamQuestion selectExamQuestionById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 查询问题列表
|
||||
*
|
||||
|
|
@ -28,36 +21,4 @@ public interface ExamQuestionMapper extends MyMapper<ExamQuestion>
|
|||
*/
|
||||
public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 新增问题
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExamQuestion(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 修改问题
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestion(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 删除问题
|
||||
*
|
||||
* @param id 问题ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除问题
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionByIds(String[] ids);
|
||||
|
||||
}
|
||||
|
|
@ -7,48 +7,24 @@ import com.ruoyi.framework.web.base.AbstractBaseService;
|
|||
* 试题分类 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface IExamQuestionCategoryService extends AbstractBaseService<ExamQuestionCategory>
|
||||
{
|
||||
/**
|
||||
* 查询试题分类信息
|
||||
*
|
||||
* @param id 试题分类ID
|
||||
* @return 试题分类信息
|
||||
*/
|
||||
public ExamQuestionCategory selectExamQuestionCategoryById(String id);
|
||||
|
||||
/**
|
||||
* 查询试题分类列表
|
||||
*
|
||||
* 查询试题分类分页列表
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 试题分类集合
|
||||
*/
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryList(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 新增试题分类
|
||||
*
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryPage(ExamQuestionCategory examQuestionCategory);
|
||||
/**
|
||||
* 查询试题分类列表
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
* @return 试题分类集合
|
||||
*/
|
||||
public int insertExamQuestionCategory(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 修改试题分类
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionCategory(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
/**
|
||||
* 删除试题分类信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCategoryByIds(String ids);
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryList(ExamQuestionCategory examQuestionCategory);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,48 +7,24 @@ import com.ruoyi.framework.web.base.AbstractBaseService;
|
|||
* 问题点评 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface IExamQuestionCommentService extends AbstractBaseService<ExamQuestionComment>
|
||||
{
|
||||
/**
|
||||
* 查询问题点评信息
|
||||
*
|
||||
* @param id 问题点评ID
|
||||
* @return 问题点评信息
|
||||
*/
|
||||
public ExamQuestionComment selectExamQuestionCommentById(String id);
|
||||
|
||||
/**
|
||||
* 查询问题点评列表
|
||||
*
|
||||
* 查询问题点评分页列表
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 问题点评集合
|
||||
*/
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentList(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 新增问题点评
|
||||
*
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentPage(ExamQuestionComment examQuestionComment);
|
||||
/**
|
||||
* 查询问题点评列表
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
* @return 问题点评集合
|
||||
*/
|
||||
public int insertExamQuestionComment(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 修改问题点评
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionComment(ExamQuestionComment examQuestionComment);
|
||||
|
||||
/**
|
||||
* 删除问题点评信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionCommentByIds(String ids);
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentList(ExamQuestionComment examQuestionComment);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,48 +7,24 @@ import com.ruoyi.framework.web.base.AbstractBaseService;
|
|||
* 问题选项 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface IExamQuestionItemService extends AbstractBaseService<ExamQuestionItem>
|
||||
{
|
||||
/**
|
||||
* 查询问题选项信息
|
||||
*
|
||||
* @param id 问题选项ID
|
||||
* @return 问题选项信息
|
||||
*/
|
||||
public ExamQuestionItem selectExamQuestionItemById(String id);
|
||||
|
||||
/**
|
||||
* 查询问题选项列表
|
||||
*
|
||||
* 查询问题选项分页列表
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 问题选项集合
|
||||
*/
|
||||
public List<ExamQuestionItem> selectExamQuestionItemList(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 新增问题选项
|
||||
*
|
||||
public List<ExamQuestionItem> selectExamQuestionItemPage(ExamQuestionItem examQuestionItem);
|
||||
/**
|
||||
* 查询问题选项列表
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
* @return 问题选项集合
|
||||
*/
|
||||
public int insertExamQuestionItem(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 修改问题选项
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestionItem(ExamQuestionItem examQuestionItem);
|
||||
|
||||
/**
|
||||
* 删除问题选项信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionItemByIds(String ids);
|
||||
public List<ExamQuestionItem> selectExamQuestionItemList(ExamQuestionItem examQuestionItem);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,48 +7,24 @@ import com.ruoyi.framework.web.base.AbstractBaseService;
|
|||
* 问题 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
public interface IExamQuestionService extends AbstractBaseService<ExamQuestion>
|
||||
{
|
||||
/**
|
||||
* 查询问题信息
|
||||
*
|
||||
* @param id 问题ID
|
||||
* @return 问题信息
|
||||
*/
|
||||
public ExamQuestion selectExamQuestionById(String id);
|
||||
|
||||
/**
|
||||
* 查询问题列表
|
||||
*
|
||||
* 查询问题分页列表
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 问题集合
|
||||
*/
|
||||
public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 新增问题
|
||||
*
|
||||
public List<ExamQuestion> selectExamQuestionPage(ExamQuestion examQuestion);
|
||||
/**
|
||||
* 查询问题列表
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
* @return 问题集合
|
||||
*/
|
||||
public int insertExamQuestion(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 修改问题
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExamQuestion(ExamQuestion examQuestion);
|
||||
|
||||
/**
|
||||
* 删除问题信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExamQuestionByIds(String ids);
|
||||
public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
|||
* 试题分类 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Service
|
||||
public class ExamQuestionCategoryServiceImpl extends AbstractBaseServiceImpl<ExamQuestionCategoryMapper,ExamQuestionCategory> implements IExamQuestionCategoryService
|
||||
|
|
@ -20,17 +20,6 @@ public class ExamQuestionCategoryServiceImpl extends AbstractBaseServiceImpl<Exa
|
|||
@Autowired
|
||||
private ExamQuestionCategoryMapper examQuestionCategoryMapper;
|
||||
|
||||
/**
|
||||
* 查询试题分类信息
|
||||
*
|
||||
* @param id 试题分类ID
|
||||
* @return 试题分类信息
|
||||
*/
|
||||
@Override
|
||||
public ExamQuestionCategory selectExamQuestionCategoryById(String id)
|
||||
{
|
||||
return examQuestionCategoryMapper.selectExamQuestionCategoryById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询试题分类列表
|
||||
|
|
@ -41,44 +30,19 @@ public class ExamQuestionCategoryServiceImpl extends AbstractBaseServiceImpl<Exa
|
|||
@Override
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryList(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionCategoryMapper.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
return examQuestionCategoryMapper.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增试题分类
|
||||
*
|
||||
* 查询试题分类分页列表
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
* @return 试题分类集合
|
||||
*/
|
||||
@Override
|
||||
public int insertExamQuestionCategory(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
return examQuestionCategoryMapper.insertExamQuestionCategory(examQuestionCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改试题分类
|
||||
*
|
||||
* @param examQuestionCategory 试题分类信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExamQuestionCategory(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
return examQuestionCategoryMapper.updateExamQuestionCategory(examQuestionCategory);
|
||||
}
|
||||
@Override
|
||||
public List<ExamQuestionCategory> selectExamQuestionCategoryPage(ExamQuestionCategory examQuestionCategory)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionCategoryMapper.selectExamQuestionCategoryList(examQuestionCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除试题分类对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExamQuestionCategoryByIds(String ids)
|
||||
{
|
||||
return examQuestionCategoryMapper.deleteExamQuestionCategoryByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
|||
* 问题点评 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Service
|
||||
public class ExamQuestionCommentServiceImpl extends AbstractBaseServiceImpl<ExamQuestionCommentMapper,ExamQuestionComment> implements IExamQuestionCommentService
|
||||
|
|
@ -20,17 +20,6 @@ public class ExamQuestionCommentServiceImpl extends AbstractBaseServiceImpl<Exam
|
|||
@Autowired
|
||||
private ExamQuestionCommentMapper examQuestionCommentMapper;
|
||||
|
||||
/**
|
||||
* 查询问题点评信息
|
||||
*
|
||||
* @param id 问题点评ID
|
||||
* @return 问题点评信息
|
||||
*/
|
||||
@Override
|
||||
public ExamQuestionComment selectExamQuestionCommentById(String id)
|
||||
{
|
||||
return examQuestionCommentMapper.selectExamQuestionCommentById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询问题点评列表
|
||||
|
|
@ -41,44 +30,19 @@ public class ExamQuestionCommentServiceImpl extends AbstractBaseServiceImpl<Exam
|
|||
@Override
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentList(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionCommentMapper.selectExamQuestionCommentList(examQuestionComment);
|
||||
return examQuestionCommentMapper.selectExamQuestionCommentList(examQuestionComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增问题点评
|
||||
*
|
||||
* 查询问题点评分页列表
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
* @return 问题点评集合
|
||||
*/
|
||||
@Override
|
||||
public int insertExamQuestionComment(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
return examQuestionCommentMapper.insertExamQuestionComment(examQuestionComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改问题点评
|
||||
*
|
||||
* @param examQuestionComment 问题点评信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExamQuestionComment(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
return examQuestionCommentMapper.updateExamQuestionComment(examQuestionComment);
|
||||
}
|
||||
@Override
|
||||
public List<ExamQuestionComment> selectExamQuestionCommentPage(ExamQuestionComment examQuestionComment)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionCommentMapper.selectExamQuestionCommentList(examQuestionComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除问题点评对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExamQuestionCommentByIds(String ids)
|
||||
{
|
||||
return examQuestionCommentMapper.deleteExamQuestionCommentByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
|||
* 问题选项 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Service
|
||||
public class ExamQuestionItemServiceImpl extends AbstractBaseServiceImpl<ExamQuestionItemMapper,ExamQuestionItem> implements IExamQuestionItemService
|
||||
|
|
@ -20,17 +20,6 @@ public class ExamQuestionItemServiceImpl extends AbstractBaseServiceImpl<ExamQue
|
|||
@Autowired
|
||||
private ExamQuestionItemMapper examQuestionItemMapper;
|
||||
|
||||
/**
|
||||
* 查询问题选项信息
|
||||
*
|
||||
* @param id 问题选项ID
|
||||
* @return 问题选项信息
|
||||
*/
|
||||
@Override
|
||||
public ExamQuestionItem selectExamQuestionItemById(String id)
|
||||
{
|
||||
return examQuestionItemMapper.selectExamQuestionItemById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询问题选项列表
|
||||
|
|
@ -41,44 +30,19 @@ public class ExamQuestionItemServiceImpl extends AbstractBaseServiceImpl<ExamQue
|
|||
@Override
|
||||
public List<ExamQuestionItem> selectExamQuestionItemList(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionItemMapper.selectExamQuestionItemList(examQuestionItem);
|
||||
return examQuestionItemMapper.selectExamQuestionItemList(examQuestionItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增问题选项
|
||||
*
|
||||
* 查询问题选项分页列表
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
* @return 问题选项集合
|
||||
*/
|
||||
@Override
|
||||
public int insertExamQuestionItem(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
return examQuestionItemMapper.insertExamQuestionItem(examQuestionItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改问题选项
|
||||
*
|
||||
* @param examQuestionItem 问题选项信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExamQuestionItem(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
return examQuestionItemMapper.updateExamQuestionItem(examQuestionItem);
|
||||
}
|
||||
@Override
|
||||
public List<ExamQuestionItem> selectExamQuestionItemPage(ExamQuestionItem examQuestionItem)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionItemMapper.selectExamQuestionItemList(examQuestionItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除问题选项对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExamQuestionItemByIds(String ids)
|
||||
{
|
||||
return examQuestionItemMapper.deleteExamQuestionItemByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
|||
* 问题 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-06
|
||||
* @date 2018-12-07
|
||||
*/
|
||||
@Service
|
||||
public class ExamQuestionServiceImpl extends AbstractBaseServiceImpl<ExamQuestionMapper,ExamQuestion> implements IExamQuestionService
|
||||
|
|
@ -20,17 +20,6 @@ public class ExamQuestionServiceImpl extends AbstractBaseServiceImpl<ExamQuestio
|
|||
@Autowired
|
||||
private ExamQuestionMapper examQuestionMapper;
|
||||
|
||||
/**
|
||||
* 查询问题信息
|
||||
*
|
||||
* @param id 问题ID
|
||||
* @return 问题信息
|
||||
*/
|
||||
@Override
|
||||
public ExamQuestion selectExamQuestionById(String id)
|
||||
{
|
||||
return examQuestionMapper.selectExamQuestionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询问题列表
|
||||
|
|
@ -41,44 +30,19 @@ public class ExamQuestionServiceImpl extends AbstractBaseServiceImpl<ExamQuestio
|
|||
@Override
|
||||
public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionMapper.selectExamQuestionList(examQuestion);
|
||||
return examQuestionMapper.selectExamQuestionList(examQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增问题
|
||||
*
|
||||
* 查询问题分页列表
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
* @return 问题集合
|
||||
*/
|
||||
@Override
|
||||
public int insertExamQuestion(ExamQuestion examQuestion)
|
||||
{
|
||||
return examQuestionMapper.insertExamQuestion(examQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改问题
|
||||
*
|
||||
* @param examQuestion 问题信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExamQuestion(ExamQuestion examQuestion)
|
||||
{
|
||||
return examQuestionMapper.updateExamQuestion(examQuestion);
|
||||
}
|
||||
@Override
|
||||
public List<ExamQuestion> selectExamQuestionPage(ExamQuestion examQuestion)
|
||||
{
|
||||
startPage();
|
||||
return examQuestionMapper.selectExamQuestionList(examQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除问题对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExamQuestionByIds(String ids)
|
||||
{
|
||||
return examQuestionMapper.deleteExamQuestionByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectExamQuestionCategoryVo">
|
||||
select id, name, parent_id, parent_ids, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question_category
|
||||
</sql>
|
||||
id, name, parent_id, parent_ids, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||||
|
||||
<select id="selectExamQuestionCategoryList" parameterType="ExamQuestionCategory" resultMap="ExamQuestionCategoryResult">
|
||||
select
|
||||
<include refid="selectExamQuestionCategoryVo"/>
|
||||
from exam_question_category
|
||||
<where>
|
||||
<if test="id != null and id != '' "> and id = #{id}</if>
|
||||
<if test="name != null and name != '' "> and name = #{name}</if>
|
||||
|
|
@ -36,65 +37,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExamQuestionCategoryById" parameterType="String" resultMap="ExamQuestionCategoryResult">
|
||||
<include refid="selectExamQuestionCategoryVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertExamQuestionCategory" parameterType="ExamQuestionCategory">
|
||||
insert into exam_question_category
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">id,</if>
|
||||
<if test="name != null and name != '' ">name,</if>
|
||||
<if test="parentId != null and parentId != '' ">parent_id,</if>
|
||||
<if test="parentIds != null and parentIds != '' ">parent_ids,</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by,</if>
|
||||
<if test="createDate != null ">create_date,</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by,</if>
|
||||
<if test="updateDate != null ">update_date,</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks,</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">#{id},</if>
|
||||
<if test="name != null and name != '' ">#{name},</if>
|
||||
<if test="parentId != null and parentId != '' ">#{parentId},</if>
|
||||
<if test="parentIds != null and parentIds != '' ">#{parentIds},</if>
|
||||
<if test="createBy != null and createBy != '' ">#{createBy},</if>
|
||||
<if test="createDate != null ">#{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">#{updateBy},</if>
|
||||
<if test="updateDate != null ">#{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">#{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestionCategory" parameterType="ExamQuestionCategory">
|
||||
update exam_question_category
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != '' ">name = #{name},</if>
|
||||
<if test="parentId != null and parentId != '' ">parent_id = #{parentId},</if>
|
||||
<if test="parentIds != null and parentIds != '' ">parent_ids = #{parentIds},</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by = #{createBy},</if>
|
||||
<if test="createDate != null ">create_date = #{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by = #{updateBy},</if>
|
||||
<if test="updateDate != null ">update_date = #{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks = #{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteExamQuestionCategoryById" parameterType="String">
|
||||
delete from exam_question_category where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteExamQuestionCategoryByIds" parameterType="String">
|
||||
delete from exam_question_category where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -19,11 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectExamQuestionCommentVo">
|
||||
select id, content, exam_question_id, praise_count, comment_type, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question_comment
|
||||
</sql>
|
||||
id, content, exam_question_id, praise_count, comment_type, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||||
|
||||
<select id="selectExamQuestionCommentList" parameterType="ExamQuestionComment" resultMap="ExamQuestionCommentResult">
|
||||
select
|
||||
<include refid="selectExamQuestionCommentVo"/>
|
||||
from exam_question_comment
|
||||
<where>
|
||||
<if test="id != null and id != '' "> and id = #{id}</if>
|
||||
<if test="content != null "> and content = #{content}</if>
|
||||
|
|
@ -38,68 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExamQuestionCommentById" parameterType="String" resultMap="ExamQuestionCommentResult">
|
||||
<include refid="selectExamQuestionCommentVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertExamQuestionComment" parameterType="ExamQuestionComment">
|
||||
insert into exam_question_comment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">id,</if>
|
||||
<if test="content != null ">content,</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">exam_question_id,</if>
|
||||
<if test="praiseCount != null ">praise_count,</if>
|
||||
<if test="commentType != null and commentType != '' ">comment_type,</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by,</if>
|
||||
<if test="createDate != null ">create_date,</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by,</if>
|
||||
<if test="updateDate != null ">update_date,</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks,</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">#{id},</if>
|
||||
<if test="content != null ">#{content},</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">#{examQuestionId},</if>
|
||||
<if test="praiseCount != null ">#{praiseCount},</if>
|
||||
<if test="commentType != null and commentType != '' ">#{commentType},</if>
|
||||
<if test="createBy != null and createBy != '' ">#{createBy},</if>
|
||||
<if test="createDate != null ">#{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">#{updateBy},</if>
|
||||
<if test="updateDate != null ">#{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">#{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestionComment" parameterType="ExamQuestionComment">
|
||||
update exam_question_comment
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="content != null ">content = #{content},</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">exam_question_id = #{examQuestionId},</if>
|
||||
<if test="praiseCount != null ">praise_count = #{praiseCount},</if>
|
||||
<if test="commentType != null and commentType != '' ">comment_type = #{commentType},</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by = #{createBy},</if>
|
||||
<if test="createDate != null ">create_date = #{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by = #{updateBy},</if>
|
||||
<if test="updateDate != null ">update_date = #{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks = #{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteExamQuestionCommentById" parameterType="String">
|
||||
delete from exam_question_comment where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteExamQuestionCommentByIds" parameterType="String">
|
||||
delete from exam_question_comment where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -18,11 +18,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectExamQuestionItemVo">
|
||||
select id, content, number, exam_question_id, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question_item
|
||||
</sql>
|
||||
id, content, number, exam_question_id, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||||
|
||||
<select id="selectExamQuestionItemList" parameterType="ExamQuestionItem" resultMap="ExamQuestionItemResult">
|
||||
select
|
||||
<include refid="selectExamQuestionItemVo"/>
|
||||
from exam_question_item
|
||||
<where>
|
||||
<if test="id != null and id != '' "> and id = #{id}</if>
|
||||
<if test="content != null and content != '' "> and content = #{content}</if>
|
||||
|
|
@ -36,65 +37,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExamQuestionItemById" parameterType="String" resultMap="ExamQuestionItemResult">
|
||||
<include refid="selectExamQuestionItemVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertExamQuestionItem" parameterType="ExamQuestionItem">
|
||||
insert into exam_question_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">id,</if>
|
||||
<if test="content != null and content != '' ">content,</if>
|
||||
<if test="number != null and number != '' ">number,</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">exam_question_id,</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by,</if>
|
||||
<if test="createDate != null ">create_date,</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by,</if>
|
||||
<if test="updateDate != null ">update_date,</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks,</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">#{id},</if>
|
||||
<if test="content != null and content != '' ">#{content},</if>
|
||||
<if test="number != null and number != '' ">#{number},</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">#{examQuestionId},</if>
|
||||
<if test="createBy != null and createBy != '' ">#{createBy},</if>
|
||||
<if test="createDate != null ">#{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">#{updateBy},</if>
|
||||
<if test="updateDate != null ">#{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">#{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestionItem" parameterType="ExamQuestionItem">
|
||||
update exam_question_item
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="content != null and content != '' ">content = #{content},</if>
|
||||
<if test="number != null and number != '' ">number = #{number},</if>
|
||||
<if test="examQuestionId != null and examQuestionId != '' ">exam_question_id = #{examQuestionId},</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by = #{createBy},</if>
|
||||
<if test="createDate != null ">create_date = #{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by = #{updateBy},</if>
|
||||
<if test="updateDate != null ">update_date = #{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks = #{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteExamQuestionItemById" parameterType="String">
|
||||
delete from exam_question_item where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteExamQuestionItemByIds" parameterType="String">
|
||||
delete from exam_question_item where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -20,11 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectExamQuestionVo">
|
||||
select id, title, answer, type, label, category_id, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question
|
||||
</sql>
|
||||
id, title, answer, type, label, category_id, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||||
|
||||
<select id="selectExamQuestionList" parameterType="ExamQuestion" resultMap="ExamQuestionResult">
|
||||
select
|
||||
<include refid="selectExamQuestionVo"/>
|
||||
from exam_question
|
||||
<where>
|
||||
<if test="id != null and id != '' "> and id = #{id}</if>
|
||||
<if test="title != null and title != '' "> and title = #{title}</if>
|
||||
|
|
@ -40,71 +41,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectExamQuestionById" parameterType="String" resultMap="ExamQuestionResult">
|
||||
<include refid="selectExamQuestionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertExamQuestion" parameterType="ExamQuestion">
|
||||
insert into exam_question
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">id,</if>
|
||||
<if test="title != null and title != '' ">title,</if>
|
||||
<if test="answer != null and answer != '' ">answer,</if>
|
||||
<if test="type != null and type != '' ">type,</if>
|
||||
<if test="label != null and label != '' ">label,</if>
|
||||
<if test="categoryId != null and categoryId != '' ">category_id,</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by,</if>
|
||||
<if test="createDate != null ">create_date,</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by,</if>
|
||||
<if test="updateDate != null ">update_date,</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks,</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != '' ">#{id},</if>
|
||||
<if test="title != null and title != '' ">#{title},</if>
|
||||
<if test="answer != null and answer != '' ">#{answer},</if>
|
||||
<if test="type != null and type != '' ">#{type},</if>
|
||||
<if test="label != null and label != '' ">#{label},</if>
|
||||
<if test="categoryId != null and categoryId != '' ">#{categoryId},</if>
|
||||
<if test="createBy != null and createBy != '' ">#{createBy},</if>
|
||||
<if test="createDate != null ">#{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">#{updateBy},</if>
|
||||
<if test="updateDate != null ">#{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">#{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestion" parameterType="ExamQuestion">
|
||||
update exam_question
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null and title != '' ">title = #{title},</if>
|
||||
<if test="answer != null and answer != '' ">answer = #{answer},</if>
|
||||
<if test="type != null and type != '' ">type = #{type},</if>
|
||||
<if test="label != null and label != '' ">label = #{label},</if>
|
||||
<if test="categoryId != null and categoryId != '' ">category_id = #{categoryId},</if>
|
||||
<if test="createBy != null and createBy != '' ">create_by = #{createBy},</if>
|
||||
<if test="createDate != null ">create_date = #{createDate},</if>
|
||||
<if test="updateBy != null and updateBy != '' ">update_by = #{updateBy},</if>
|
||||
<if test="updateDate != null ">update_date = #{updateDate},</if>
|
||||
<if test="remarks != null and remarks != '' ">remarks = #{remarks},</if>
|
||||
<if test="delFlag != null and delFlag != '' ">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteExamQuestionById" parameterType="String">
|
||||
delete from exam_question where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteExamQuestionByIds" parameterType="String">
|
||||
delete from exam_question where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -23,7 +23,6 @@ public class ${className}
|
|||
|
||||
#foreach ($column in $columns)
|
||||
/** $column.columnComment */
|
||||
@Id
|
||||
private $column.attrType $column.attrname;
|
||||
#end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue