From a923682de973fbc92818384110afe4cf0121b3a3 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Wed, 26 Jun 2024 17:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A1=88=E4=BE=8B=E9=A2=98?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resource_center/config/Constant.java | 8 +- .../controller/CaseController.java | 75 +++ ...ontroller.java => CaseStepController.java} | 11 +- .../controller/CourseConfigController.java | 1 - .../controller/PythonModelController.java | 2 +- .../entity/SysCaseQuestion.java | 119 ++-- .../entity/SysCaseQuestionExample.java | 616 ++++++++---------- .../entity/SysCaseQuestionStep.java | 2 +- .../entity/SysCaseQuestionStepWithBLOBs.java | 2 +- .../mapper/SysCaseQuestionMapper.java | 4 +- .../mapper/SysCaseQuestionStepMapper.java | 4 +- .../mapper/SysCaseQuestionMapper.xml | 28 +- .../mapper/SysCaseQuestionStepMapper.xml | 371 +---------- 13 files changed, 445 insertions(+), 798 deletions(-) create mode 100644 src/main/java/com/sztzjy/resource_center/controller/CaseController.java rename src/main/java/com/sztzjy/resource_center/controller/{PythonCaseController.java => CaseStepController.java} (66%) diff --git a/src/main/java/com/sztzjy/resource_center/config/Constant.java b/src/main/java/com/sztzjy/resource_center/config/Constant.java index cdef79a..ab81e52 100644 --- a/src/main/java/com/sztzjy/resource_center/config/Constant.java +++ b/src/main/java/com/sztzjy/resource_center/config/Constant.java @@ -16,10 +16,10 @@ public class Constant { */ public static final String ADMIN = "管理员"; // -// public static final String BUILT_IN_SCHOOL_ID= "999999999"; -// public static final String INPUT_TYPE_TEACHER= "0"; -// public static final String INPUT_TYPE_BUILT_IN= "1"; -// + public static final String BUILT_IN_SCHOOL_ID= "999999999"; + public static final String INPUT_TYPE_TEACHER= "0"; + public static final String INPUT_TYPE_BUILT_IN= "1"; + // public static final String OBJECTIVE_TYPE_SINGLE= "0"; // public static final String OBJECTIVE_TYPE_Many= "1"; // public static final String OBJECTIVE_TYPE_JUDGE= "2"; diff --git a/src/main/java/com/sztzjy/resource_center/controller/CaseController.java b/src/main/java/com/sztzjy/resource_center/controller/CaseController.java new file mode 100644 index 0000000..a836357 --- /dev/null +++ b/src/main/java/com/sztzjy/resource_center/controller/CaseController.java @@ -0,0 +1,75 @@ +package com.sztzjy.resource_center.controller; + +import cn.hutool.core.util.IdUtil; +import com.sztzjy.resource_center.annotation.AnonymousAccess; +import com.sztzjy.resource_center.entity.SysCaseQuestion; +import com.sztzjy.resource_center.entity.SysTopicAndCourse; +import com.sztzjy.resource_center.mapper.SysCaseQuestionMapper; +import com.sztzjy.resource_center.mapper.SysCaseQuestionStepMapper; +import com.sztzjy.resource_center.mapper.SysTopicAndCourseMapper; +import com.sztzjy.resource_center.util.ResultEntity; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Date; + +/** + * @Author xcj + * @Date 2024/6/26 + */ +@RestController +@Api(tags = "案例题") +@RequestMapping("api/sys/case") +public class CaseController { + + @Autowired + private SysCaseQuestionStepMapper caseQuestionStepMapper; + @Autowired + private SysCaseQuestionMapper caseQuestionMapper; + @Autowired + private SysTopicAndCourseMapper topicAndCourseMapper; + + + @AnonymousAccess + @ApiOperation("案例题新增") + @PostMapping("insertCase") + public ResultEntity insertCase(@ApiParam("目前二级三级ID可以为空,来源和题型要传,上架状态传true") @RequestBody SysCaseQuestion sysCaseQuestion) { + if (!("1").equals(sysCaseQuestion.getType())) { + return new ResultEntity<>(HttpStatus.BAD_REQUEST,"题型错误!"); + } + if (StringUtils.isBlank(sysCaseQuestion.getOneId())) { //todo 目前二级三级ID可以为空 + return new ResultEntity<>(HttpStatus.BAD_REQUEST,"课程不能为空!"); + } + if (StringUtils.isBlank(sysCaseQuestion.getContent())||StringUtils.isBlank(sysCaseQuestion.getTitle())) { + return new ResultEntity<>(HttpStatus.BAD_REQUEST,"题目内容不能为空!"); + } + if (StringUtils.isBlank(sysCaseQuestion.getSource())) { + return new ResultEntity<>(HttpStatus.BAD_REQUEST,"题目来源不能为空!"); + } + String uuid = IdUtil.randomUUID(); + sysCaseQuestion.setCaseId(uuid); + sysCaseQuestion.setCreateTime(new Date()); + caseQuestionMapper.insert(sysCaseQuestion); + //新增绑定关系 + SysTopicAndCourse sysTopicAndCourse =new SysTopicAndCourse(); + sysTopicAndCourse.setTopicType("1"); + sysTopicAndCourse.setTopicId(uuid); + sysTopicAndCourse.setOneId(sysCaseQuestion.getOneId()); + if (StringUtils.isNotBlank(sysCaseQuestion.getTwoId())){ + sysTopicAndCourse.setTwoId(sysCaseQuestion.getTwoId()); + } + if (StringUtils.isNotBlank(sysCaseQuestion.getThree())){ + sysTopicAndCourse.setThreeId(sysCaseQuestion.getThree()); + } + topicAndCourseMapper.insert(sysTopicAndCourse); + return new ResultEntity<>(HttpStatus.OK,"新增成功!"); + } +} diff --git a/src/main/java/com/sztzjy/resource_center/controller/PythonCaseController.java b/src/main/java/com/sztzjy/resource_center/controller/CaseStepController.java similarity index 66% rename from src/main/java/com/sztzjy/resource_center/controller/PythonCaseController.java rename to src/main/java/com/sztzjy/resource_center/controller/CaseStepController.java index 8c98610..91864b2 100644 --- a/src/main/java/com/sztzjy/resource_center/controller/PythonCaseController.java +++ b/src/main/java/com/sztzjy/resource_center/controller/CaseStepController.java @@ -6,10 +6,13 @@ import org.springframework.web.bind.annotation.RestController; /** * @Author xcj - * @Date 2024/6/18 + * @Date 2024/6/26 */ -@Api(tags = "python案例") @RestController -@RequestMapping("api/sys/case") -public class PythonCaseController { +@Api(tags = "案例题步骤") +@RequestMapping("api/sys/case/step") +public class CaseStepController { + + + } diff --git a/src/main/java/com/sztzjy/resource_center/controller/CourseConfigController.java b/src/main/java/com/sztzjy/resource_center/controller/CourseConfigController.java index 555f1c9..6af353c 100644 --- a/src/main/java/com/sztzjy/resource_center/controller/CourseConfigController.java +++ b/src/main/java/com/sztzjy/resource_center/controller/CourseConfigController.java @@ -1,7 +1,6 @@ package com.sztzjy.resource_center.controller; import cn.hutool.core.util.IdUtil; -import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.sztzjy.resource_center.annotation.AnonymousAccess; import com.sztzjy.resource_center.entity.SysResource; diff --git a/src/main/java/com/sztzjy/resource_center/controller/PythonModelController.java b/src/main/java/com/sztzjy/resource_center/controller/PythonModelController.java index fc47005..d50cb3e 100644 --- a/src/main/java/com/sztzjy/resource_center/controller/PythonModelController.java +++ b/src/main/java/com/sztzjy/resource_center/controller/PythonModelController.java @@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RestController; * @Author xcj * @Date 2024/6/18 */ -@Api(tags = "python案例") +@Api(tags = "python模型题") @RestController @RequestMapping("api/sys/model") public class PythonModelController { diff --git a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestion.java b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestion.java index 83d0bed..2a7eed2 100644 --- a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestion.java +++ b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestion.java @@ -7,44 +7,41 @@ import io.swagger.annotations.ApiModelProperty; * 案例题库表 * * @author xcj - * sys_case_question + * sys_case_questions */ public class SysCaseQuestion { @ApiModelProperty("案例题ID") private String caseId; - @ApiModelProperty("课程ID") - private String courseId; - - @ApiModelProperty("课程名") - private String courseName; - - @ApiModelProperty("章节ID") - private String chapterId; - - @ApiModelProperty("章节名") - private String chapterName; - @ApiModelProperty("题目标题") private String title; - @ApiModelProperty("数据集地址 用 ,隔开") + @ApiModelProperty("数据集地址 /用,隔开") private String resourceData; - @ApiModelProperty("输入类型 内置,新增 0为老师导入 1为内置") - private String inputType; + @ApiModelProperty("来源 schoolid/内置") + private String source; - @ApiModelProperty("题目类型 0为基础 1为应用") + @ApiModelProperty("题目类型 0为基础 1为应用 2为模型题") private String type; - @ApiModelProperty("学校id") - private String schoolId; + @ApiModelProperty("一级目录ID") + private String oneId; + + @ApiModelProperty("二级目录ID") + private String twoId; + + @ApiModelProperty("三级目录ID") + private String three; @ApiModelProperty("上下架状态") private Boolean unmountStatus; - @ApiModelProperty("新增时间") - private Date insertTime; + @ApiModelProperty("创建时间") + private Date createTime; + + @ApiModelProperty("修改时间") + private Date updateTime; @ApiModelProperty("题目内容") private String content; @@ -57,38 +54,6 @@ public class SysCaseQuestion { this.caseId = caseId == null ? null : caseId.trim(); } - public String getCourseId() { - return courseId; - } - - public void setCourseId(String courseId) { - this.courseId = courseId == null ? null : courseId.trim(); - } - - public String getCourseName() { - return courseName; - } - - public void setCourseName(String courseName) { - this.courseName = courseName == null ? null : courseName.trim(); - } - - public String getChapterId() { - return chapterId; - } - - public void setChapterId(String chapterId) { - this.chapterId = chapterId == null ? null : chapterId.trim(); - } - - public String getChapterName() { - return chapterName; - } - - public void setChapterName(String chapterName) { - this.chapterName = chapterName == null ? null : chapterName.trim(); - } - public String getTitle() { return title; } @@ -105,12 +70,12 @@ public class SysCaseQuestion { this.resourceData = resourceData == null ? null : resourceData.trim(); } - public String getInputType() { - return inputType; + public String getSource() { + return source; } - public void setInputType(String inputType) { - this.inputType = inputType == null ? null : inputType.trim(); + public void setSource(String source) { + this.source = source == null ? null : source.trim(); } public String getType() { @@ -121,12 +86,28 @@ public class SysCaseQuestion { this.type = type == null ? null : type.trim(); } - public String getSchoolId() { - return schoolId; + public String getOneId() { + return oneId; + } + + public void setOneId(String oneId) { + this.oneId = oneId == null ? null : oneId.trim(); + } + + public String getTwoId() { + return twoId; } - public void setSchoolId(String schoolId) { - this.schoolId = schoolId == null ? null : schoolId.trim(); + public void setTwoId(String twoId) { + this.twoId = twoId == null ? null : twoId.trim(); + } + + public String getThree() { + return three; + } + + public void setThree(String three) { + this.three = three == null ? null : three.trim(); } public Boolean getUnmountStatus() { @@ -137,12 +118,20 @@ public class SysCaseQuestion { this.unmountStatus = unmountStatus; } - public Date getInsertTime() { - return insertTime; + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; } - public void setInsertTime(Date insertTime) { - this.insertTime = insertTime; + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; } public String getContent() { diff --git a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionExample.java b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionExample.java index 440742e..6b7f654 100644 --- a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionExample.java +++ b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionExample.java @@ -175,753 +175,673 @@ public class SysCaseQuestionExample { return (Criteria) this; } - public Criteria andCourseIdIsNull() { - addCriterion("course_id is null"); - return (Criteria) this; - } - - public Criteria andCourseIdIsNotNull() { - addCriterion("course_id is not null"); - return (Criteria) this; - } - - public Criteria andCourseIdEqualTo(String value) { - addCriterion("course_id =", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdNotEqualTo(String value) { - addCriterion("course_id <>", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdGreaterThan(String value) { - addCriterion("course_id >", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdGreaterThanOrEqualTo(String value) { - addCriterion("course_id >=", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdLessThan(String value) { - addCriterion("course_id <", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdLessThanOrEqualTo(String value) { - addCriterion("course_id <=", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdLike(String value) { - addCriterion("course_id like", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdNotLike(String value) { - addCriterion("course_id not like", value, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdIn(List values) { - addCriterion("course_id in", values, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdNotIn(List values) { - addCriterion("course_id not in", values, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdBetween(String value1, String value2) { - addCriterion("course_id between", value1, value2, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseIdNotBetween(String value1, String value2) { - addCriterion("course_id not between", value1, value2, "courseId"); - return (Criteria) this; - } - - public Criteria andCourseNameIsNull() { - addCriterion("course_name is null"); - return (Criteria) this; - } - - public Criteria andCourseNameIsNotNull() { - addCriterion("course_name is not null"); - return (Criteria) this; - } - - public Criteria andCourseNameEqualTo(String value) { - addCriterion("course_name =", value, "courseName"); + public Criteria andTitleIsNull() { + addCriterion("title is null"); return (Criteria) this; } - public Criteria andCourseNameNotEqualTo(String value) { - addCriterion("course_name <>", value, "courseName"); + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); return (Criteria) this; } - public Criteria andCourseNameGreaterThan(String value) { - addCriterion("course_name >", value, "courseName"); + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); return (Criteria) this; } - public Criteria andCourseNameGreaterThanOrEqualTo(String value) { - addCriterion("course_name >=", value, "courseName"); + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); return (Criteria) this; } - public Criteria andCourseNameLessThan(String value) { - addCriterion("course_name <", value, "courseName"); + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); return (Criteria) this; } - public Criteria andCourseNameLessThanOrEqualTo(String value) { - addCriterion("course_name <=", value, "courseName"); + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); return (Criteria) this; } - public Criteria andCourseNameLike(String value) { - addCriterion("course_name like", value, "courseName"); + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); return (Criteria) this; } - public Criteria andCourseNameNotLike(String value) { - addCriterion("course_name not like", value, "courseName"); + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); return (Criteria) this; } - public Criteria andCourseNameIn(List values) { - addCriterion("course_name in", values, "courseName"); + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); return (Criteria) this; } - public Criteria andCourseNameNotIn(List values) { - addCriterion("course_name not in", values, "courseName"); + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); return (Criteria) this; } - public Criteria andCourseNameBetween(String value1, String value2) { - addCriterion("course_name between", value1, value2, "courseName"); + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); return (Criteria) this; } - public Criteria andCourseNameNotBetween(String value1, String value2) { - addCriterion("course_name not between", value1, value2, "courseName"); + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); return (Criteria) this; } - public Criteria andChapterIdIsNull() { - addCriterion("chapter_id is null"); + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); return (Criteria) this; } - public Criteria andChapterIdIsNotNull() { - addCriterion("chapter_id is not null"); + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); return (Criteria) this; } - public Criteria andChapterIdEqualTo(String value) { - addCriterion("chapter_id =", value, "chapterId"); + public Criteria andResourceDataIsNull() { + addCriterion("resource_data is null"); return (Criteria) this; } - public Criteria andChapterIdNotEqualTo(String value) { - addCriterion("chapter_id <>", value, "chapterId"); + public Criteria andResourceDataIsNotNull() { + addCriterion("resource_data is not null"); return (Criteria) this; } - public Criteria andChapterIdGreaterThan(String value) { - addCriterion("chapter_id >", value, "chapterId"); + public Criteria andResourceDataEqualTo(String value) { + addCriterion("resource_data =", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdGreaterThanOrEqualTo(String value) { - addCriterion("chapter_id >=", value, "chapterId"); + public Criteria andResourceDataNotEqualTo(String value) { + addCriterion("resource_data <>", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdLessThan(String value) { - addCriterion("chapter_id <", value, "chapterId"); + public Criteria andResourceDataGreaterThan(String value) { + addCriterion("resource_data >", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdLessThanOrEqualTo(String value) { - addCriterion("chapter_id <=", value, "chapterId"); + public Criteria andResourceDataGreaterThanOrEqualTo(String value) { + addCriterion("resource_data >=", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdLike(String value) { - addCriterion("chapter_id like", value, "chapterId"); + public Criteria andResourceDataLessThan(String value) { + addCriterion("resource_data <", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdNotLike(String value) { - addCriterion("chapter_id not like", value, "chapterId"); + public Criteria andResourceDataLessThanOrEqualTo(String value) { + addCriterion("resource_data <=", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdIn(List values) { - addCriterion("chapter_id in", values, "chapterId"); + public Criteria andResourceDataLike(String value) { + addCriterion("resource_data like", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdNotIn(List values) { - addCriterion("chapter_id not in", values, "chapterId"); + public Criteria andResourceDataNotLike(String value) { + addCriterion("resource_data not like", value, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdBetween(String value1, String value2) { - addCriterion("chapter_id between", value1, value2, "chapterId"); + public Criteria andResourceDataIn(List values) { + addCriterion("resource_data in", values, "resourceData"); return (Criteria) this; } - public Criteria andChapterIdNotBetween(String value1, String value2) { - addCriterion("chapter_id not between", value1, value2, "chapterId"); + public Criteria andResourceDataNotIn(List values) { + addCriterion("resource_data not in", values, "resourceData"); return (Criteria) this; } - public Criteria andChapterNameIsNull() { - addCriterion("chapter_name is null"); + public Criteria andResourceDataBetween(String value1, String value2) { + addCriterion("resource_data between", value1, value2, "resourceData"); return (Criteria) this; } - public Criteria andChapterNameIsNotNull() { - addCriterion("chapter_name is not null"); + public Criteria andResourceDataNotBetween(String value1, String value2) { + addCriterion("resource_data not between", value1, value2, "resourceData"); return (Criteria) this; } - public Criteria andChapterNameEqualTo(String value) { - addCriterion("chapter_name =", value, "chapterName"); + public Criteria andSourceIsNull() { + addCriterion("source is null"); return (Criteria) this; } - public Criteria andChapterNameNotEqualTo(String value) { - addCriterion("chapter_name <>", value, "chapterName"); + public Criteria andSourceIsNotNull() { + addCriterion("source is not null"); return (Criteria) this; } - public Criteria andChapterNameGreaterThan(String value) { - addCriterion("chapter_name >", value, "chapterName"); + public Criteria andSourceEqualTo(String value) { + addCriterion("source =", value, "source"); return (Criteria) this; } - public Criteria andChapterNameGreaterThanOrEqualTo(String value) { - addCriterion("chapter_name >=", value, "chapterName"); + public Criteria andSourceNotEqualTo(String value) { + addCriterion("source <>", value, "source"); return (Criteria) this; } - public Criteria andChapterNameLessThan(String value) { - addCriterion("chapter_name <", value, "chapterName"); + public Criteria andSourceGreaterThan(String value) { + addCriterion("source >", value, "source"); return (Criteria) this; } - public Criteria andChapterNameLessThanOrEqualTo(String value) { - addCriterion("chapter_name <=", value, "chapterName"); + public Criteria andSourceGreaterThanOrEqualTo(String value) { + addCriterion("source >=", value, "source"); return (Criteria) this; } - public Criteria andChapterNameLike(String value) { - addCriterion("chapter_name like", value, "chapterName"); + public Criteria andSourceLessThan(String value) { + addCriterion("source <", value, "source"); return (Criteria) this; } - public Criteria andChapterNameNotLike(String value) { - addCriterion("chapter_name not like", value, "chapterName"); + public Criteria andSourceLessThanOrEqualTo(String value) { + addCriterion("source <=", value, "source"); return (Criteria) this; } - public Criteria andChapterNameIn(List values) { - addCriterion("chapter_name in", values, "chapterName"); + public Criteria andSourceLike(String value) { + addCriterion("source like", value, "source"); return (Criteria) this; } - public Criteria andChapterNameNotIn(List values) { - addCriterion("chapter_name not in", values, "chapterName"); + public Criteria andSourceNotLike(String value) { + addCriterion("source not like", value, "source"); return (Criteria) this; } - public Criteria andChapterNameBetween(String value1, String value2) { - addCriterion("chapter_name between", value1, value2, "chapterName"); + public Criteria andSourceIn(List values) { + addCriterion("source in", values, "source"); return (Criteria) this; } - public Criteria andChapterNameNotBetween(String value1, String value2) { - addCriterion("chapter_name not between", value1, value2, "chapterName"); + public Criteria andSourceNotIn(List values) { + addCriterion("source not in", values, "source"); return (Criteria) this; } - public Criteria andTitleIsNull() { - addCriterion("title is null"); + public Criteria andSourceBetween(String value1, String value2) { + addCriterion("source between", value1, value2, "source"); return (Criteria) this; } - public Criteria andTitleIsNotNull() { - addCriterion("title is not null"); + public Criteria andSourceNotBetween(String value1, String value2) { + addCriterion("source not between", value1, value2, "source"); return (Criteria) this; } - public Criteria andTitleEqualTo(String value) { - addCriterion("title =", value, "title"); + public Criteria andTypeIsNull() { + addCriterion("type is null"); return (Criteria) this; } - public Criteria andTitleNotEqualTo(String value) { - addCriterion("title <>", value, "title"); + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); return (Criteria) this; } - public Criteria andTitleGreaterThan(String value) { - addCriterion("title >", value, "title"); + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); return (Criteria) this; } - public Criteria andTitleGreaterThanOrEqualTo(String value) { - addCriterion("title >=", value, "title"); + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); return (Criteria) this; } - public Criteria andTitleLessThan(String value) { - addCriterion("title <", value, "title"); + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); return (Criteria) this; } - public Criteria andTitleLessThanOrEqualTo(String value) { - addCriterion("title <=", value, "title"); + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); return (Criteria) this; } - public Criteria andTitleLike(String value) { - addCriterion("title like", value, "title"); + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); return (Criteria) this; } - public Criteria andTitleNotLike(String value) { - addCriterion("title not like", value, "title"); + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); return (Criteria) this; } - public Criteria andTitleIn(List values) { - addCriterion("title in", values, "title"); + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); return (Criteria) this; } - public Criteria andTitleNotIn(List values) { - addCriterion("title not in", values, "title"); + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", value, "type"); return (Criteria) this; } - public Criteria andTitleBetween(String value1, String value2) { - addCriterion("title between", value1, value2, "title"); + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); return (Criteria) this; } - public Criteria andTitleNotBetween(String value1, String value2) { - addCriterion("title not between", value1, value2, "title"); + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); return (Criteria) this; } - public Criteria andResourceDataIsNull() { - addCriterion("resource_data is null"); + public Criteria andTypeBetween(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); return (Criteria) this; } - public Criteria andResourceDataIsNotNull() { - addCriterion("resource_data is not null"); + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } - public Criteria andResourceDataEqualTo(String value) { - addCriterion("resource_data =", value, "resourceData"); + public Criteria andOneIdIsNull() { + addCriterion("one_id is null"); return (Criteria) this; } - public Criteria andResourceDataNotEqualTo(String value) { - addCriterion("resource_data <>", value, "resourceData"); + public Criteria andOneIdIsNotNull() { + addCriterion("one_id is not null"); return (Criteria) this; } - public Criteria andResourceDataGreaterThan(String value) { - addCriterion("resource_data >", value, "resourceData"); + public Criteria andOneIdEqualTo(String value) { + addCriterion("one_id =", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataGreaterThanOrEqualTo(String value) { - addCriterion("resource_data >=", value, "resourceData"); + public Criteria andOneIdNotEqualTo(String value) { + addCriterion("one_id <>", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataLessThan(String value) { - addCriterion("resource_data <", value, "resourceData"); + public Criteria andOneIdGreaterThan(String value) { + addCriterion("one_id >", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataLessThanOrEqualTo(String value) { - addCriterion("resource_data <=", value, "resourceData"); + public Criteria andOneIdGreaterThanOrEqualTo(String value) { + addCriterion("one_id >=", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataLike(String value) { - addCriterion("resource_data like", value, "resourceData"); + public Criteria andOneIdLessThan(String value) { + addCriterion("one_id <", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataNotLike(String value) { - addCriterion("resource_data not like", value, "resourceData"); + public Criteria andOneIdLessThanOrEqualTo(String value) { + addCriterion("one_id <=", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataIn(List values) { - addCriterion("resource_data in", values, "resourceData"); + public Criteria andOneIdLike(String value) { + addCriterion("one_id like", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataNotIn(List values) { - addCriterion("resource_data not in", values, "resourceData"); + public Criteria andOneIdNotLike(String value) { + addCriterion("one_id not like", value, "oneId"); return (Criteria) this; } - public Criteria andResourceDataBetween(String value1, String value2) { - addCriterion("resource_data between", value1, value2, "resourceData"); + public Criteria andOneIdIn(List values) { + addCriterion("one_id in", values, "oneId"); return (Criteria) this; } - public Criteria andResourceDataNotBetween(String value1, String value2) { - addCriterion("resource_data not between", value1, value2, "resourceData"); + public Criteria andOneIdNotIn(List values) { + addCriterion("one_id not in", values, "oneId"); return (Criteria) this; } - public Criteria andInputTypeIsNull() { - addCriterion("input_type is null"); + public Criteria andOneIdBetween(String value1, String value2) { + addCriterion("one_id between", value1, value2, "oneId"); return (Criteria) this; } - public Criteria andInputTypeIsNotNull() { - addCriterion("input_type is not null"); + public Criteria andOneIdNotBetween(String value1, String value2) { + addCriterion("one_id not between", value1, value2, "oneId"); return (Criteria) this; } - public Criteria andInputTypeEqualTo(String value) { - addCriterion("input_type =", value, "inputType"); + public Criteria andTwoIdIsNull() { + addCriterion("two_id is null"); return (Criteria) this; } - public Criteria andInputTypeNotEqualTo(String value) { - addCriterion("input_type <>", value, "inputType"); + public Criteria andTwoIdIsNotNull() { + addCriterion("two_id is not null"); return (Criteria) this; } - public Criteria andInputTypeGreaterThan(String value) { - addCriterion("input_type >", value, "inputType"); + public Criteria andTwoIdEqualTo(String value) { + addCriterion("two_id =", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeGreaterThanOrEqualTo(String value) { - addCriterion("input_type >=", value, "inputType"); + public Criteria andTwoIdNotEqualTo(String value) { + addCriterion("two_id <>", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeLessThan(String value) { - addCriterion("input_type <", value, "inputType"); + public Criteria andTwoIdGreaterThan(String value) { + addCriterion("two_id >", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeLessThanOrEqualTo(String value) { - addCriterion("input_type <=", value, "inputType"); + public Criteria andTwoIdGreaterThanOrEqualTo(String value) { + addCriterion("two_id >=", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeLike(String value) { - addCriterion("input_type like", value, "inputType"); + public Criteria andTwoIdLessThan(String value) { + addCriterion("two_id <", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeNotLike(String value) { - addCriterion("input_type not like", value, "inputType"); + public Criteria andTwoIdLessThanOrEqualTo(String value) { + addCriterion("two_id <=", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeIn(List values) { - addCriterion("input_type in", values, "inputType"); + public Criteria andTwoIdLike(String value) { + addCriterion("two_id like", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeNotIn(List values) { - addCriterion("input_type not in", values, "inputType"); + public Criteria andTwoIdNotLike(String value) { + addCriterion("two_id not like", value, "twoId"); return (Criteria) this; } - public Criteria andInputTypeBetween(String value1, String value2) { - addCriterion("input_type between", value1, value2, "inputType"); + public Criteria andTwoIdIn(List values) { + addCriterion("two_id in", values, "twoId"); return (Criteria) this; } - public Criteria andInputTypeNotBetween(String value1, String value2) { - addCriterion("input_type not between", value1, value2, "inputType"); + public Criteria andTwoIdNotIn(List values) { + addCriterion("two_id not in", values, "twoId"); return (Criteria) this; } - public Criteria andTypeIsNull() { - addCriterion("type is null"); + public Criteria andTwoIdBetween(String value1, String value2) { + addCriterion("two_id between", value1, value2, "twoId"); return (Criteria) this; } - public Criteria andTypeIsNotNull() { - addCriterion("type is not null"); + public Criteria andTwoIdNotBetween(String value1, String value2) { + addCriterion("two_id not between", value1, value2, "twoId"); return (Criteria) this; } - public Criteria andTypeEqualTo(String value) { - addCriterion("type =", value, "type"); + public Criteria andThreeIsNull() { + addCriterion("three is null"); return (Criteria) this; } - public Criteria andTypeNotEqualTo(String value) { - addCriterion("type <>", value, "type"); + public Criteria andThreeIsNotNull() { + addCriterion("three is not null"); return (Criteria) this; } - public Criteria andTypeGreaterThan(String value) { - addCriterion("type >", value, "type"); + public Criteria andThreeEqualTo(String value) { + addCriterion("three =", value, "three"); return (Criteria) this; } - public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("type >=", value, "type"); + public Criteria andThreeNotEqualTo(String value) { + addCriterion("three <>", value, "three"); return (Criteria) this; } - public Criteria andTypeLessThan(String value) { - addCriterion("type <", value, "type"); + public Criteria andThreeGreaterThan(String value) { + addCriterion("three >", value, "three"); return (Criteria) this; } - public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("type <=", value, "type"); + public Criteria andThreeGreaterThanOrEqualTo(String value) { + addCriterion("three >=", value, "three"); return (Criteria) this; } - public Criteria andTypeLike(String value) { - addCriterion("type like", value, "type"); + public Criteria andThreeLessThan(String value) { + addCriterion("three <", value, "three"); return (Criteria) this; } - public Criteria andTypeNotLike(String value) { - addCriterion("type not like", value, "type"); + public Criteria andThreeLessThanOrEqualTo(String value) { + addCriterion("three <=", value, "three"); return (Criteria) this; } - public Criteria andTypeIn(List values) { - addCriterion("type in", values, "type"); + public Criteria andThreeLike(String value) { + addCriterion("three like", value, "three"); return (Criteria) this; } - public Criteria andTypeNotIn(List values) { - addCriterion("type not in", values, "type"); + public Criteria andThreeNotLike(String value) { + addCriterion("three not like", value, "three"); return (Criteria) this; } - public Criteria andTypeBetween(String value1, String value2) { - addCriterion("type between", value1, value2, "type"); + public Criteria andThreeIn(List values) { + addCriterion("three in", values, "three"); return (Criteria) this; } - public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("type not between", value1, value2, "type"); + public Criteria andThreeNotIn(List values) { + addCriterion("three not in", values, "three"); return (Criteria) this; } - public Criteria andSchoolIdIsNull() { - addCriterion("school_id is null"); + public Criteria andThreeBetween(String value1, String value2) { + addCriterion("three between", value1, value2, "three"); return (Criteria) this; } - public Criteria andSchoolIdIsNotNull() { - addCriterion("school_id is not null"); + public Criteria andThreeNotBetween(String value1, String value2) { + addCriterion("three not between", value1, value2, "three"); return (Criteria) this; } - public Criteria andSchoolIdEqualTo(String value) { - addCriterion("school_id =", value, "schoolId"); + public Criteria andUnmountStatusIsNull() { + addCriterion("unmount_status is null"); return (Criteria) this; } - public Criteria andSchoolIdNotEqualTo(String value) { - addCriterion("school_id <>", value, "schoolId"); + public Criteria andUnmountStatusIsNotNull() { + addCriterion("unmount_status is not null"); return (Criteria) this; } - public Criteria andSchoolIdGreaterThan(String value) { - addCriterion("school_id >", value, "schoolId"); + public Criteria andUnmountStatusEqualTo(Boolean value) { + addCriterion("unmount_status =", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdGreaterThanOrEqualTo(String value) { - addCriterion("school_id >=", value, "schoolId"); + public Criteria andUnmountStatusNotEqualTo(Boolean value) { + addCriterion("unmount_status <>", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdLessThan(String value) { - addCriterion("school_id <", value, "schoolId"); + public Criteria andUnmountStatusGreaterThan(Boolean value) { + addCriterion("unmount_status >", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdLessThanOrEqualTo(String value) { - addCriterion("school_id <=", value, "schoolId"); + public Criteria andUnmountStatusGreaterThanOrEqualTo(Boolean value) { + addCriterion("unmount_status >=", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdLike(String value) { - addCriterion("school_id like", value, "schoolId"); + public Criteria andUnmountStatusLessThan(Boolean value) { + addCriterion("unmount_status <", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdNotLike(String value) { - addCriterion("school_id not like", value, "schoolId"); + public Criteria andUnmountStatusLessThanOrEqualTo(Boolean value) { + addCriterion("unmount_status <=", value, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdIn(List values) { - addCriterion("school_id in", values, "schoolId"); + public Criteria andUnmountStatusIn(List values) { + addCriterion("unmount_status in", values, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdNotIn(List values) { - addCriterion("school_id not in", values, "schoolId"); + public Criteria andUnmountStatusNotIn(List values) { + addCriterion("unmount_status not in", values, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdBetween(String value1, String value2) { - addCriterion("school_id between", value1, value2, "schoolId"); + public Criteria andUnmountStatusBetween(Boolean value1, Boolean value2) { + addCriterion("unmount_status between", value1, value2, "unmountStatus"); return (Criteria) this; } - public Criteria andSchoolIdNotBetween(String value1, String value2) { - addCriterion("school_id not between", value1, value2, "schoolId"); + public Criteria andUnmountStatusNotBetween(Boolean value1, Boolean value2) { + addCriterion("unmount_status not between", value1, value2, "unmountStatus"); return (Criteria) this; } - public Criteria andUnmountStatusIsNull() { - addCriterion("unmount_status is null"); + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); return (Criteria) this; } - public Criteria andUnmountStatusIsNotNull() { - addCriterion("unmount_status is not null"); + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); return (Criteria) this; } - public Criteria andUnmountStatusEqualTo(Boolean value) { - addCriterion("unmount_status =", value, "unmountStatus"); + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusNotEqualTo(Boolean value) { - addCriterion("unmount_status <>", value, "unmountStatus"); + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusGreaterThan(Boolean value) { - addCriterion("unmount_status >", value, "unmountStatus"); + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusGreaterThanOrEqualTo(Boolean value) { - addCriterion("unmount_status >=", value, "unmountStatus"); + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusLessThan(Boolean value) { - addCriterion("unmount_status <", value, "unmountStatus"); + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusLessThanOrEqualTo(Boolean value) { - addCriterion("unmount_status <=", value, "unmountStatus"); + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusIn(List values) { - addCriterion("unmount_status in", values, "unmountStatus"); + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusNotIn(List values) { - addCriterion("unmount_status not in", values, "unmountStatus"); + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusBetween(Boolean value1, Boolean value2) { - addCriterion("unmount_status between", value1, value2, "unmountStatus"); + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } - public Criteria andUnmountStatusNotBetween(Boolean value1, Boolean value2) { - addCriterion("unmount_status not between", value1, value2, "unmountStatus"); + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } - public Criteria andInsertTimeIsNull() { - addCriterion("insert_time is null"); + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); return (Criteria) this; } - public Criteria andInsertTimeIsNotNull() { - addCriterion("insert_time is not null"); + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); return (Criteria) this; } - public Criteria andInsertTimeEqualTo(Date value) { - addCriterion("insert_time =", value, "insertTime"); + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeNotEqualTo(Date value) { - addCriterion("insert_time <>", value, "insertTime"); + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeGreaterThan(Date value) { - addCriterion("insert_time >", value, "insertTime"); + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeGreaterThanOrEqualTo(Date value) { - addCriterion("insert_time >=", value, "insertTime"); + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeLessThan(Date value) { - addCriterion("insert_time <", value, "insertTime"); + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeLessThanOrEqualTo(Date value) { - addCriterion("insert_time <=", value, "insertTime"); + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeIn(List values) { - addCriterion("insert_time in", values, "insertTime"); + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeNotIn(List values) { - addCriterion("insert_time not in", values, "insertTime"); + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeBetween(Date value1, Date value2) { - addCriterion("insert_time between", value1, value2, "insertTime"); + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); return (Criteria) this; } - public Criteria andInsertTimeNotBetween(Date value1, Date value2) { - addCriterion("insert_time not between", value1, value2, "insertTime"); + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); return (Criteria) this; } } diff --git a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStep.java b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStep.java index 4ff6b8e..fdf056a 100644 --- a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStep.java +++ b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStep.java @@ -6,7 +6,7 @@ import io.swagger.annotations.ApiModelProperty; /** * * @author xcj - * sys_case_question_step + * sys_case_question_steps */ public class SysCaseQuestionStep { @ApiModelProperty("案例题步骤id") diff --git a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStepWithBLOBs.java b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStepWithBLOBs.java index bc7f481..8f23f0b 100644 --- a/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStepWithBLOBs.java +++ b/src/main/java/com/sztzjy/resource_center/entity/SysCaseQuestionStepWithBLOBs.java @@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModelProperty; /** * * @author xcj - * sys_case_question_step + * sys_case_question_steps */ public class SysCaseQuestionStepWithBLOBs extends SysCaseQuestionStep { @ApiModelProperty("步骤标题") diff --git a/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionMapper.java b/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionMapper.java index 4509349..56a01e3 100644 --- a/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionMapper.java +++ b/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionMapper.java @@ -3,8 +3,10 @@ package com.sztzjy.resource_center.mapper; import com.sztzjy.resource_center.entity.SysCaseQuestion; import com.sztzjy.resource_center.entity.SysCaseQuestionExample; import java.util.List; -import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper public interface SysCaseQuestionMapper { long countByExample(SysCaseQuestionExample example); diff --git a/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionStepMapper.java b/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionStepMapper.java index 8b58057..4aa178c 100644 --- a/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionStepMapper.java +++ b/src/main/java/com/sztzjy/resource_center/mapper/SysCaseQuestionStepMapper.java @@ -4,8 +4,10 @@ import com.sztzjy.resource_center.entity.SysCaseQuestionStep; import com.sztzjy.resource_center.entity.SysCaseQuestionStepExample; import com.sztzjy.resource_center.entity.SysCaseQuestionStepWithBLOBs; import java.util.List; -import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper public interface SysCaseQuestionStepMapper { long countByExample(SysCaseQuestionStepExample example); diff --git a/src/main/resources/mapper/SysCaseQuestionMapper.xml b/src/main/resources/mapper/SysCaseQuestionMapper.xml index ed67a45..30e4a60 100644 --- a/src/main/resources/mapper/SysCaseQuestionMapper.xml +++ b/src/main/resources/mapper/SysCaseQuestionMapper.xml @@ -90,7 +90,7 @@ , - from sys_case_question + from sys_case_questions @@ -104,7 +104,7 @@ distinct - from sys_case_question + from sys_case_questions @@ -117,21 +117,21 @@ , - from sys_case_question + from sys_case_questions where case_id = #{caseId,jdbcType=VARCHAR} - delete from sys_case_question + delete from sys_case_questions where case_id = #{caseId,jdbcType=VARCHAR} - delete from sys_case_question + delete from sys_case_questions - insert into sys_case_question (case_id, title, resource_data, + insert into sys_case_questions (case_id, title, resource_data, source, type, one_id, two_id, three, unmount_status, create_time, update_time, content @@ -143,7 +143,7 @@ ) - insert into sys_case_question + insert into sys_case_questions case_id, @@ -222,13 +222,13 @@ - update sys_case_question + update sys_case_questions case_id = #{record.caseId,jdbcType=VARCHAR}, @@ -272,7 +272,7 @@ - update sys_case_question + update sys_case_questions set case_id = #{record.caseId,jdbcType=VARCHAR}, title = #{record.title,jdbcType=VARCHAR}, resource_data = #{record.resourceData,jdbcType=VARCHAR}, @@ -290,7 +290,7 @@ - update sys_case_question + update sys_case_questions set case_id = #{record.caseId,jdbcType=VARCHAR}, title = #{record.title,jdbcType=VARCHAR}, resource_data = #{record.resourceData,jdbcType=VARCHAR}, @@ -307,7 +307,7 @@ - update sys_case_question + update sys_case_questions title = #{title,jdbcType=VARCHAR}, @@ -346,7 +346,7 @@ where case_id = #{caseId,jdbcType=VARCHAR} - update sys_case_question + update sys_case_questions set title = #{title,jdbcType=VARCHAR}, resource_data = #{resourceData,jdbcType=VARCHAR}, source = #{source,jdbcType=VARCHAR}, @@ -361,7 +361,7 @@ where case_id = #{caseId,jdbcType=VARCHAR} - update sys_case_question + update sys_case_questions set title = #{title,jdbcType=VARCHAR}, resource_data = #{resourceData,jdbcType=VARCHAR}, source = #{source,jdbcType=VARCHAR}, diff --git a/src/main/resources/mapper/SysCaseQuestionStepMapper.xml b/src/main/resources/mapper/SysCaseQuestionStepMapper.xml index 65ee7f9..f7da321 100644 --- a/src/main/resources/mapper/SysCaseQuestionStepMapper.xml +++ b/src/main/resources/mapper/SysCaseQuestionStepMapper.xml @@ -1,349 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -431,7 +88,7 @@ , - from sys_case_question_step + from sys_case_question_steps @@ -445,7 +102,7 @@ distinct - from sys_case_question_step + from sys_case_question_steps @@ -458,21 +115,21 @@ , - from sys_case_question_step + from sys_case_question_steps where case_step_id = #{caseStepId,jdbcType=VARCHAR} - delete from sys_case_question_step + delete from sys_case_question_steps where case_step_id = #{caseStepId,jdbcType=VARCHAR} - delete from sys_case_question_step + delete from sys_case_question_steps - insert into sys_case_question_step (case_step_id, case_id, sort, + insert into sys_case_question_steps (case_step_id, case_id, sort, score, title, content, question, answer, content_original, question_original, answer_original @@ -484,7 +141,7 @@ ) - insert into sys_case_question_step + insert into sys_case_question_steps case_step_id, @@ -557,13 +214,13 @@ - update sys_case_question_step + update sys_case_question_steps case_step_id = #{record.caseStepId,jdbcType=VARCHAR}, @@ -604,7 +261,7 @@ - update sys_case_question_step + update sys_case_question_steps set case_step_id = #{record.caseStepId,jdbcType=VARCHAR}, case_id = #{record.caseId,jdbcType=VARCHAR}, sort = #{record.sort,jdbcType=INTEGER}, @@ -621,7 +278,7 @@ - update sys_case_question_step + update sys_case_question_steps set case_step_id = #{record.caseStepId,jdbcType=VARCHAR}, case_id = #{record.caseId,jdbcType=VARCHAR}, sort = #{record.sort,jdbcType=INTEGER}, @@ -631,7 +288,7 @@ - update sys_case_question_step + update sys_case_question_steps case_id = #{caseId,jdbcType=VARCHAR}, @@ -667,7 +324,7 @@ where case_step_id = #{caseStepId,jdbcType=VARCHAR} - update sys_case_question_step + update sys_case_question_steps set case_id = #{caseId,jdbcType=VARCHAR}, sort = #{sort,jdbcType=INTEGER}, score = #{score,jdbcType=DECIMAL}, @@ -681,7 +338,7 @@ where case_step_id = #{caseStepId,jdbcType=VARCHAR} - update sys_case_question_step + update sys_case_question_steps set case_id = #{caseId,jdbcType=VARCHAR}, sort = #{sort,jdbcType=INTEGER}, score = #{score,jdbcType=DECIMAL}