| | |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | and account LIKE CONCAT('%',#{user.account},'%') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and real_name LIKE CONCAT('%',#{user.realName},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |
| | |
| | | <select id="getUserList" resultType="org.springblade.modules.system.entity.User"> |
| | | SELECT * FROM blade_user where 1=1 |
| | | <if test="user.farmId!=null and user.farmId!=''"> |
| | | and find_in_set(farm_id,#{user.farmId}) |
| | | and find_in_set(#{user.farmId},farm_id) |
| | | </if> |
| | | </select> |
| | | |