| | |
| | | <mapper namespace="com.mzl.flower.mapper.partner.PartnerMapper"> |
| | | |
| | | <select id="queryPartner" resultType="com.mzl.flower.dto.response.partner.PartnerDTO"> |
| | | select * from t_partner_info t where t.deleted= 0 |
| | | select t.* ,u.login_name |
| | | from t_partner_info t |
| | | left join t_user u |
| | | on t.user_id=u.id |
| | | and u.type='partner' |
| | | where t.deleted= 0 |
| | | <if test="dto.name!=null and dto.name!=''"> |
| | | AND t.name LIKE CONCAT('%',#{dto.name}, '%') |
| | | </if> |
| | | <if test="dto.tel!=null and dto.tel!=''"> |
| | | AND t.contact_tel LIKE CONCAT('%',#{dto.tel}, '%') |
| | | </if> |
| | | <if test="dto.loginName!=null and dto.loginName!=''"> |
| | | AND u.login_name LIKE CONCAT('%',#{dto.loginName}, '%') |
| | | </if> |
| | | |
| | | <if test="dto.status!=null and dto.status!=''"> |
| | | AND t.status = #{dto.status} |
| | | </if> |