|
|
|
@ -416,22 +416,28 @@ |
|
|
|
where crr.id = #{id} |
|
|
|
</select> |
|
|
|
<select id="selectfunds" resultType="com.example.demo.domain.vo.cash.FundsDTO"> |
|
|
|
select crc.id, |
|
|
|
SELECT |
|
|
|
crc.id, |
|
|
|
crc.jwcode, |
|
|
|
crc.name, |
|
|
|
crc.market, |
|
|
|
crc.order_code, |
|
|
|
crc.payment_currency, |
|
|
|
crc.payment_amount, |
|
|
|
-- payment_amount 除以100,保留2位小数 |
|
|
|
CAST(crc.payment_amount / 100.00 AS DECIMAL(15,2)) as payment_amount, |
|
|
|
crc.received_currency, |
|
|
|
crc.received_amount, |
|
|
|
crc.handling_charge, |
|
|
|
crc.permanent_gold, |
|
|
|
crc.free_gold, |
|
|
|
-- received_amount 除以100,保留2位小数 |
|
|
|
CAST(crc.received_amount / 100.00 AS DECIMAL(15,2)) as received_amount, |
|
|
|
-- handling_charge 除以100,保留2位小数 |
|
|
|
CAST(crc.handling_charge / 100.00 AS DECIMAL(15,2)) as handling_charge, |
|
|
|
-- permanent_gold 除以100,保留2位小数 |
|
|
|
CAST(crc.permanent_gold / 100.00 AS DECIMAL(15,2)) as permanent_gold, |
|
|
|
-- free_gold 除以100,保留2位小数 |
|
|
|
CAST(crc.free_gold / 100.00 AS DECIMAL(15,2)) as free_gold, |
|
|
|
crc.pay_type, |
|
|
|
crc.pay_time, |
|
|
|
crc.status |
|
|
|
from cash_record_collection crc |
|
|
|
FROM cash_record_collection crc |
|
|
|
<where> |
|
|
|
<if test="jwcode != null"> |
|
|
|
and crc.jwcode = #{jwcode} |
|
|
|
|