Browse Source

10-18 收款:筛选返回地区名与货币名

lijianlin/feature-202509231533026-现金管理-收款管理
lijianlin 1 month ago
parent
commit
0d25e7bcb0
  1. 18
      src/main/resources/cashMapper/CashCollectionMapper.xml

18
src/main/resources/cashMapper/CashCollectionMapper.xml

@ -105,19 +105,27 @@
<!--多条件查询收款订单列表--> <!--多条件查询收款订单列表-->
<select id="selectCollection1" resultType="com.example.demo.domain.vo.cash.CashCollection"> <select id="selectCollection1" resultType="com.example.demo.domain.vo.cash.CashCollection">
select cr.id,cr.jwcode,cr.name,cr.market, select cr.id,cr.jwcode,cr.name,cr.market,
m.name as marketName,cr.activity,cr.order_code,cr.bank_code,
cr.goods_name,cr.good_num,cr.permanent_gold,cr.free_gold,cr.payment_currency,cr.payment_amount/100 as paymentAmount,
cr.received_currency,cr.received_amount/100 as receivedAmount,cr.handling_charge/100 as handlingCharge,
cr.received_market,cr.pay_type,cr.pay_time,cr.received_time,
m1.name as marketName,
cr.activity,cr.order_code,cr.bank_code,
cr.goods_name,cr.good_num,cr.permanent_gold,cr.free_gold,cr.payment_amount/100 as paymentAmount,
r1.rate_name as paymentCurrency,
r2.rate_name as receivedCurrency,
m2.name as receivedMarket,
cr.received_amount/100 as receivedAmount,cr.handling_charge/100 as handlingCharge,
cr.pay_type,cr.pay_time,cr.received_time,
cr.status,cr.submitter_id,cr.voucher,cr.remark,cr.reject_reason, cr.status,cr.submitter_id,cr.voucher,cr.remark,cr.reject_reason,
cr.audit_id,cr.create_time,cr.update_time,cr.audit_time, cr.audit_id,cr.create_time,cr.update_time,cr.audit_time,
a1.admin_name as submitterName, a1.admin_name as submitterName,
a2.admin_name as auditName a2.admin_name as auditName
from cash_record cr from cash_record cr
left join admin a1 on cr.submitter_id = a1.id left join admin a1 on cr.submitter_id = a1.id
left join admin a2 on cr.audit_id = a2.id left join admin a2 on cr.audit_id = a2.id
left join market m on m.id = cr.market
left join market m1 on m1.id = cr.market
left join market m2 on m2.id = cr.received_market
left join rate r1 on r1.id = cr.payment_currency
left join rate r2 on r2.id = cr.received_currency
<where> <where>
1 = 1 1 = 1
<if test="cashCollection.market != null and cashCollection.market != ''"> <if test="cashCollection.market != null and cashCollection.market != ''">

Loading…
Cancel
Save