Pu Zhibing
2025-03-28 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554
ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TPubWithdrawalMapper.xml
@@ -27,7 +27,7 @@
    <!--根据条件查询提现列表-->
    <select id="getWithdrawalList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page">
        SELECT * FROM (SELECT
        case when pw.userType = 1 then uu.nickName when pw.userType = 2 then dd.`name` else '' end as userName,
        case when pw.userType = 1 then uu.nickName when pw.userType = 2 then CONCAT(dd.firstName, " ", dd.lastName) else '' end as userName,
        case when pw.userType = 1 then uu.phone when pw.userType = 2 then dd.phone else '' end as userPhone,
        pw.*
        FROM t_pub_withdrawal as pw
@@ -39,7 +39,7 @@
                AND (o.insertTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
            </if>
            <if test="name != null and name != ''">
                and o.name  LIKE CONCAT('%',#{name},'%')
                and o.userName  LIKE CONCAT('%',#{name},'%')
            </if>
            <if test="withdrawalType != null and withdrawalType != ''">
                and o.withdrawalType = #{withdrawalType}
@@ -47,8 +47,11 @@
            <if test="userType != null and userType != ''">
                and o.userType = #{userType}
            </if>
            <if test="type != null and type != ''">
            <if test="type != null and type != '' and type != 3">
                and o.type = #{type}
            </if>
            <if test="type != null and type != '' and type == 3">
                and o.type is null
            </if>
            <if test="state != null and state != ''">
                and o.state = #{state}
@@ -59,7 +62,7 @@
    <select id="getWithdrawalListNoPage" resultType="map">
        SELECT * FROM (SELECT
        case when pw.userType = 1 then uu.nickName when pw.userType = 2 then dd.`name` else '' end as userName,
        case when pw.userType = 1 then uu.nickName when pw.userType = 2 then CONCAT(dd.firstName, " ", dd.lastName) else '' end as userName,
        case when pw.userType = 1 then uu.phone when pw.userType = 2 then dd.phone else '' end as userPhone,
        DATE_FORMAT(pw.insertTime, '%Y-%m-%d %H:%i') as applyTime,
        pw.*