yangdamao 2 жил өмнө
parent
commit
33445457f1

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseUserMenuVo.java

@@ -98,4 +98,7 @@ public class CourseUserMenuVo {
 	@ApiModelProperty("商品ID")
 	private Long goodsId;
 
+	@ApiModelProperty("公共标识:1公共章 0非公共章")
+	private Integer commonSign;
+
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseUserModuleChapterVo.java

@@ -101,4 +101,6 @@ public class CourseUserModuleChapterVo {
 	private Long doNum;
 	@ApiModelProperty("1已学习")
 	private Long learning;
+	@ApiModelProperty("公共标识:1公共章 0非公共章")
+	private Integer commonSign;
 }

+ 9 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMenuMapper.xml

@@ -56,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="liveUrl" column="live_url"/>
         <result property="teacherName" column="teacher_name"/>
         <result property="goodsId" column="goods_id"/>
+        <result property="commonSign" column="common_sign"/>
     </resultMap>
 
     <select id="getList" parameterType="com.zhongzheng.modules.course.bo.CourseMenuQueryBo"  resultMap="CourseMenuResultVo">
@@ -152,6 +153,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                     cs.`name`
                 END menu_name,
             CASE
+                WHEN m.type = 1 THEN
+                    0
+                WHEN m.type = 2 THEN
+                    cc.common_sign
+                WHEN m.type = 3 THEN
+                    0
+                END common_sign,
+            CASE
 
                 WHEN m.type = 1 THEN
                     0

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseModuleChapterMapper.xml

@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="doNum" column="do_num"/>
         <result property="type" column="type"/>
         <result property="typeId" column="type_id"/>
+        <result property="commonSign" column="common_sign"/>
     </resultMap>
 
     <select id="getListById" parameterType="Long"  resultMap="CourseModuleChapterResultVo">