| | |
| | | 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, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <!--查询用户信息--> |
| | | <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(#{user.farmId},farm_id) |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |