Browse Source

1.18 资金流水修改金额

lijianlin/feature-20260113-现金管理0109
huangqizhen 1 month ago
parent
commit
8dfafb0be9
  1. 20
      src/main/resources/cashMapper/CashRefundMapper.xml

20
src/main/resources/cashMapper/CashRefundMapper.xml

@ -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}

Loading…
Cancel
Save