|
|
@ -28,13 +28,13 @@ |
|
|
|
|
|
|
|
<!-- 转账 --> |
|
|
|
<select id="selectLastTransactionRecord" resultType="com.coin.business.domain.vo.RecordTransactionVo"> |
|
|
|
SELECT a.*,b.nick_name sender_name,c.nick_name receiver_name |
|
|
|
SELECT a.*,b.nick_name sender_name,c.nick_name receiver_name,a.create_time timeFormat |
|
|
|
from( |
|
|
|
SELECT a.* |
|
|
|
from t_record_transaction a |
|
|
|
left join t_user_account b on a.sender_account = b.account_id |
|
|
|
<where> |
|
|
|
sender_id = #{search.id} and type like 'BT%' |
|
|
|
a.sender_id = #{search.key2} |
|
|
|
<if test="search.key != null and search.key != ''"> |
|
|
|
and ( |
|
|
|
sender_account like concat('%', #{search.key}, '%') |
|
|
@ -42,18 +42,19 @@ |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="search.start != null"> |
|
|
|
and time >= #{search.start} |
|
|
|
and a.create_time >= #{search.start} |
|
|
|
</if> |
|
|
|
<if test="search.end != null"> |
|
|
|
and time <= #{search.end} |
|
|
|
and a.create_time <= #{search.end} |
|
|
|
</if> |
|
|
|
<if test="search.type != null and search.type!= ''"> |
|
|
|
and a.bill_code like concat('%', #{search.type}, '%') |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
GROUP BY bill_code |
|
|
|
order by time desc |
|
|
|
limit 10 |
|
|
|
) a LEFT JOIN sys_user b on a.sender_id = b.user_id |
|
|
|
LEFT JOIN sys_user c on a.receiver_id = c.user_id |
|
|
|
|
|
|
|
order by a.create_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getRecordList" resultType="com.coin.business.domain.vo.RecordTransactionVo"> |
|
|
|