| | |
| | | <sql id="Base_Column_List"> |
| | | id, app_user_id, application_vip_id, application_time, status, shop_point, share_point, direct_vip_num, direct_agent_num, bind_shop_num, remark, del_flag, create_time |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.account.api.model.AgentApplication"> |
| | | select t1.*,t2.name as userName,t2.phone as userPhone |
| | | from t_agent_application t1 |
| | | left join t_app_user t2 on t1.app_user_id = t2.id |
| | | <where> |
| | | <if test="agentQuery.name !=null and agentQuery.name !=''"> |
| | | and t2.name like concat('%',#{agentQuery.name},'%') |
| | | </if> |
| | | <if test="agentQuery.phone !=null and agentQuery.phone !=''"> |
| | | and t2.phone like concat('%',#{agentQuery.phone},'%') |
| | | </if> |
| | | <if test="agentQuery.vipId !=null"> |
| | | and t1.applicationVipId = #{agentQuery.vipId} |
| | | </if> |
| | | <if test="agentQuery.status !=null"> |
| | | and t1.status = #{agentQuery.status} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |