主题整合优化

This commit is contained in:
zhanglipeng
2021-08-15 10:31:16 +08:00
parent 249c2ef099
commit 5e294546fe
3 changed files with 33 additions and 8 deletions

View File

@ -27,6 +27,7 @@
<select id="selectByThemeActivityList" parameterType="ByThemeActivity" resultMap="ByThemeActivityResult">
<include refid="selectByThemeActivityVo"/>
<where>
<if test="id != null ">and id = #{id}</if>
<if test="themeid != null ">and themeid = #{themeid}</if>
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''">and type = #{type}</if>

View File

@ -22,8 +22,10 @@
<sql id="selectByThemeVoTree">
select dict_value+9999 id, 0 parent_id,dict_label name,dict_sort sort from sys_dict_data where dict_type='sys_yebjlx' and dict_label !='托班2-3岁'
union all
select id, classid+9999, name, sort from by_theme
order by sort
select id+99999, classid+9999, name, sort from by_theme
union all
select id,themeid+99999,name,sort from by_theme_activity
order by sort
</sql>
<select id="selectByThemeListTree" parameterType="ByTheme" resultMap="ByThemeResult">