linhw 2024-05-23 10:08:33 +08:00
parent 6b4b11729c
commit 5ff0814995
1 changed files with 6 additions and 1 deletions

View File

@ -181,7 +181,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="companyName != null and companyName != ''">
and (a.company_name like concat('%', #{companyName}, '%')
or a.username like concat('%', #{companyName}, '%')
or s.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}