linhw 2024-05-07 18:11:34 +08:00
parent 74d9e958d6
commit 3b94869cb0
1 changed files with 7 additions and 7 deletions

View File

@ -142,17 +142,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
s.name as "schoolName"
from app_user a
left join app_school s on s.id = a.school
where a.id = #{id}
<if test="isMember != null "> and is_member = #{isMember}</if>
<if test="appId != null "> and id != #{appId}</if>
<if test="school != null and school != ''"> and school = #{school}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="ids != null and ids.length > 0"> and a.id not in
where
<if test="isMember != null "> and a.is_member = #{isMember}</if>
<if test="appId != null "> and a.id != #{appId}</if>
<if test="school != null and school != ''"> and a.school = #{school}</if>
<if test="companyName != null and companyName != ''"> and a.company_name like concat('%', #{companyName}, '%')</if>
<if test="ids != null and ids.size()"> and a.id not in
<foreach collection="ids" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="friendIds != null and friendIds.length > 0"> and a.id in
<if test="friendIds != null and friendIds.size() > 0"> and a.id in
<foreach collection="friendIds" item="item" open="(" separator="," close=")">
#{item}
</foreach>