|
@@ -30,12 +30,17 @@
|
|
|
</select>
|
|
|
<select id="getUserVoByUserId" resultType="com.tofly.pms.fegin.vo.UserVo">
|
|
|
select
|
|
|
- id,
|
|
|
- username,
|
|
|
- real_name
|
|
|
- from public.sys_user where id in
|
|
|
- <foreach collection="userIdList" item="userId" separator="," open="(" close=")">
|
|
|
- #{userId}
|
|
|
- </foreach>
|
|
|
+ id,
|
|
|
+ username,
|
|
|
+ real_name
|
|
|
+ from public.sys_user
|
|
|
+ <where>
|
|
|
+ <if test="userIdList != null and userIdList.size() > 0">
|
|
|
+ id in
|
|
|
+ <foreach collection="userIdList" item="userId" separator="," open="(" close=")">
|
|
|
+ #{userId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
</mapper>
|