key
zj
2025-02-27 71ab26ace23a6cb6d90bece851fc073518687762
src/main/resources/mapper/UserRechargeMapper.xml
@@ -219,8 +219,8 @@
    FROM user_recharge s
    join site_pay p
    on s.pay_id = p.id
    where  agent_id != 1
    <if test="agentId != null">
    where  1=1
    <if test="agentId != null and agentId != ''">
      and ( agent_id = #{agentId}
      or agent_id in (
      select agent_user.id
@@ -229,20 +229,20 @@
      )
      )
    </if>
    <if test="userId != null">
    <if test="userId != null and agentId != ''">
      and user_id = #{userId}
    </if>
    <if test="realName != null and realName != '' ">
      and nick_name like CONCAT('%','${realName}','%')
    </if>
    <if test="state != null">
    <if test="state != null and agentId != ''">
      and order_status = #{state}
    </if>
    <if test="begin_time != null ">
    <if test="begin_time != null  and agentId != ''">
      and pay_time <![CDATA[>=]]> #{begin_time}
    </if>
    <if test="end_time != null ">
    <if test="end_time != null and agentId != ''">
      and pay_time <![CDATA[<=]]> #{end_time}
    </if>
    ORDER BY s.id DESC