钱包操作记录查询增加字段
This commit is contained in:
parent
eb01a2a6cb
commit
a6afd8b397
|
|
@ -236,12 +236,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
ate.trade_state,
|
ate.trade_state,
|
||||||
ate.pay_state,
|
ate.pay_state,
|
||||||
ate.amount,
|
ate.amount,
|
||||||
ate.wallet_bal_total as walletBal,
|
ate.fail_reason,
|
||||||
ate.fail_reason
|
atwd.wallet_bal
|
||||||
FROM
|
FROM
|
||||||
account_trade ate
|
account_trade ate
|
||||||
LEFT JOIN sys_user su ON su.user_id = ate.user_id
|
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 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>
|
<where>
|
||||||
<if test="param.tradeType != null">
|
<if test="param.tradeType != null">
|
||||||
ate.trade_type = #{param.tradeType}
|
ate.trade_type = #{param.tradeType}
|
||||||
|
|
@ -249,6 +250,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="param.payState != null">
|
<if test="param.payState != null">
|
||||||
and ate.pay_state = #{param.payState}
|
and ate.pay_state = #{param.payState}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.walletType != null">
|
||||||
|
and atwd.wallet_type = #{param.walletType}
|
||||||
|
</if>
|
||||||
<if test="param.startDateTime != null">
|
<if test="param.startDateTime != null">
|
||||||
and ate.trade_time <![CDATA[ >= ]]> #{param.startDateTime}
|
and ate.trade_time <![CDATA[ >= ]]> #{param.startDateTime}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue