phpcjl
2024-12-16 cb490e56ee7bccbc3b56d6964e9b68e5aa8ec475
ruoyi-service/ruoyi-account/src/main/resources/mapper/account/UserClickLogMapper.xml
@@ -15,5 +15,24 @@
    <sql id="Base_Column_List">
        id, del_flag, create_time, app_user_id, vip_id
    </sql>
    <select id="pageList" resultType="com.ruoyi.account.api.model.UserClickLog">
            select  t1.* ,t2.phone as userPhone,t2.name as userName
            from t_user_click_log t1
            left join t_app_user t2 on t1.app_user_id = t2.id
            <where>
                <if test="agentQuery.phone != null and agentQuery.phone != ''">
                    and t2.phone like concat('%',#{agentQuery.phone},'%')
                </if>
                <if test="agentQuery.name != null and agentQuery.name != ''">
                    and t2.name like concat('%',#{agentQuery.name},'%')
                </if>
                <if test="agentQuery.vipId != null">
                    and t1.vip_id = #{agentQuery.vipId}
                </if>
                <if test="agentQuery.localDate1 != null">
                    and DATE(t1.create_time) between #{agentQuery.localDate1} and #{agentQuery.localDate2}
                </if>
            </where>
    </select>
</mapper>