微型课程学习

This commit is contained in:
zhanglipeng
2021-05-15 11:33:55 +08:00
parent 5003272c59
commit 7b2844b0c2
9 changed files with 395 additions and 4 deletions

View File

@ -14,12 +14,27 @@
<result property="upanddown" column="upanddown"/>
<result property="sort" column="sort"/>
<result property="createTime" column="create_time"/>
<result property="parentId" column="parent_id"/>
</resultMap>
<sql id="selectByMicrocourseVo">
select id, title, author, contents, type, scpoe, upanddown, sort, create_time from by_microcourse
</sql>
<sql id="selectByMicrocourseVoTree">
select dict_value+9999 id, 0 parent_id,dict_label title,dict_sort sort from sys_dict_data where dict_type='sys_yebjlx' and dict_label !='托班2-3岁'
union all
select id, scpoe+9999, title, sort from by_microcourse
</sql>
<select id="selectByMicrocourseListTree" parameterType="ByMicrocourse" resultMap="ByMicrocourseResult">
<include refid="selectByMicrocourseVoTree"/>
<where>
<if test="title != null and title != ''">and title like concat('%', #{title}, '%')</if>
</where>
order by sort
</select>
<select id="selectByMicrocourseList" parameterType="ByMicrocourse" resultMap="ByMicrocourseResult">
<include refid="selectByMicrocourseVo"/>
<where>