main
parent
74d9e958d6
commit
3b94869cb0
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue