|
@@ -131,11 +131,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
author_id
|
|
|
FROM
|
|
|
sys_user_order_author
|
|
|
- WHERE
|
|
|
- parent_id in
|
|
|
- <foreach collection="authorList" item="authId" index="index" open="(" close=")" separator=",">
|
|
|
- #{authId}
|
|
|
- </foreach>
|
|
|
+ WHERE 1=1
|
|
|
+ <if test=" authorList != null and authorList.size > 0 ">
|
|
|
+ and parent_id in
|
|
|
+ <foreach collection="authorList" item="authId" index="index" open="(" close=")" separator=",">
|
|
|
+ #{authId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAuthorIdByParentId" parameterType="SysUserOrderAuthor" resultMap="SysUserOrderAuthorResult">
|