无关风月
2024-07-24 085d0e9e62e524b7cf0e7b7d8ad3b51a5a7c1e81
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/WithdrawalMapper.xml
@@ -27,12 +27,25 @@
        id as id,
        DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as insertTime,
        money as money,
        ('银行卡提现') as name,
        ('手机提现') as name,
        remark as remark,
        state as state,
        withdrawalType as withdrawalType,
        serialNo as serialNo
        from t_pub_withdrawal
        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type} order by insertTime desc limit #{pageNum}, #{size}
        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type}
        <if test="null != state">
            and state = #{state}
        </if>
        order by insertTime desc limit #{pageNum}, #{size}
    </select>
    <select id="queryWithdrawalSum" resultType="double">
        select
        ifnull(sum(money), 0) as money
        from t_pub_withdrawal
        where flag != 3 and userType = #{userType} and userId = #{uid} and type = #{type}
    </select>
</mapper>