钱包操作记录查询增加字段

This commit is contained in:
gaowdong 2025-06-12 15:57:26 +08:00
parent eb01a2a6cb
commit a6afd8b397
1 changed files with 6 additions and 2 deletions

View File

@ -236,12 +236,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ate.trade_state,
ate.pay_state,
ate.amount,
ate.wallet_bal_total as walletBal,
ate.fail_reason
ate.fail_reason,
atwd.wallet_bal
FROM
account_trade ate
LEFT JOIN sys_user su ON su.user_id = ate.user_id
LEFT JOIN sys_dept sd ON sd.dept_id = su.dept_id
LEFT JOIN account_trade_wallet_detail atwd ON ate.trade_id = atwd.trade_id
<where>
<if test="param.tradeType != null">
ate.trade_type = #{param.tradeType}
@ -249,6 +250,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="param.payState != null">
and ate.pay_state = #{param.payState}
</if>
<if test="param.walletType != null">
and atwd.wallet_type = #{param.walletType}
</if>
<if test="param.startDateTime != null">
and ate.trade_time <![CDATA[ >= ]]> #{param.startDateTime}
</if>