修改课程分类递归选择

This commit is contained in:
flower 2019-01-11 22:27:18 +08:00
parent 83d9e74500
commit 3a458e0c4e
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="id != null "> and id = #{id}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="trainCourseCategoryId != null "> and train_course_category_id = #{trainCourseCategoryId}</if>
<if test="trainCourseCategoryId != null ">
and (train_course_category_id in
(select id from train_course_category where FIND_IN_SET(#{trainCourseCategoryId},parent_ids))
or train_course_category_id = #{trainCourseCategoryId} )
</if>
<if test="name != null and name != '' "> and name = #{name}</if>
<if test="cover != null and cover != '' "> and cover = #{cover}</if>
<if test="description != null and description != '' "> and description = #{description}</if>