|
|
@@ -231,7 +231,7 @@
|
|
|
and a.name like concat('%',#{name},'%')
|
|
|
</if>
|
|
|
<if test="ancestors !=null">
|
|
|
- and find_in_set( #{ancestors} ,a.ancestors)
|
|
|
+ and (a.id=#{ancestors} or find_in_set( #{ancestors} ,a.ancestors))
|
|
|
</if>
|
|
|
order by id
|
|
|
<if test="page_sql !=null">
|
|
|
@@ -255,7 +255,7 @@
|
|
|
and a.name like concat('%',#{name},'%')
|
|
|
</if>
|
|
|
<if test="ancestors !=null">
|
|
|
- and find_in_set( #{ancestors} ,a.ancestors)
|
|
|
+ and (a.id=#{ancestors} or find_in_set( #{ancestors} ,a.ancestors))
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByParentId" parameterType="java.lang.Long" resultMap="BaseResultMap">
|