ソースを参照

名字写错了改正

zhaosongshan 7 ヶ月 前
コミット
c4eb339b1a

+ 5 - 5
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/domain/CourseChapterPaper.java

@@ -8,15 +8,15 @@ package vip.xiaonuo.exam.domain;
  * @Note: 章节与试卷关系
  **/
 public class CourseChapterPaper {
-    String collectId;
+    String chapterId;
     String paperId;
 
-    public String getCollectId() {
-        return collectId;
+    public String getChapterId() {
+        return chapterId;
     }
 
-    public void setCollectId(String collectId) {
-        this.collectId = collectId;
+    public void setChapterId(String chapterId) {
+        this.chapterId = chapterId;
     }
 
     public String getPaperId() {

+ 7 - 7
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/mapper/mapping/CourseChapterPaperMapper.xml

@@ -2,11 +2,11 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="vip.xiaonuo.exam.mapper.CourseChapterPaperMapper">
     <resultMap id="BaseResultMap" type="vip.xiaonuo.exam.domain.CourseChapterPaper">
-        <result column="COLLECT_ID" jdbcType="VARCHAR" property="collectId" />
+        <result column="CHAPTER_ID" jdbcType="VARCHAR" property="chapterId" />
         <result column="PAPER_ID" jdbcType="VARCHAR" property="paperId" />
     </resultMap>
     <sql id="Base_Column_List">
-        COLLECT_ID, PAPER_ID
+        CHAPTER_ID, PAPER_ID
     </sql>
     <select id="queryList" resultMap="BaseResultMap" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
         select
@@ -14,21 +14,21 @@
         from COURSE_CHAPTER_PAPER
         where 1=1
         <if test="collectId != null">
-            and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
+            and CHAPTER_ID = #{chapterId,jdbcType=VARCHAR}
         </if>
         <if test="paperId != null">
             and PAPER_ID = #{paperId,jdbcType=VARCHAR}
         </if>
     </select>
     <insert id="add" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
-        insert into COURSE_CHAPTER_PAPER (COLLECT_ID, PAPER_ID)
-        values (#{collectId,jdbcType=VARCHAR}, #{paperId,jdbcType=VARCHAR})
+        insert into COURSE_CHAPTER_PAPER (CHAPTER_ID, PAPER_ID)
+        values (#{chapterId,jdbcType=VARCHAR}, #{paperId,jdbcType=VARCHAR})
     </insert>
     <delete id="delete" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
         delete from COURSE_CHAPTER_PAPER
         where 1=1
-        <if test="collectId != null">
-            and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
+        <if test="chapterId != null">
+            and CHAPTER_ID = #{chapterId,jdbcType=VARCHAR}
         </if>
         <if test="paperId != null">
             and PAPER_ID = #{paperId,jdbcType=VARCHAR}