Browse Source

暂不支持参与

master
张彭杰 1 year ago
parent
commit
831de69d5f
1 changed files with 4 additions and 0 deletions
  1. 4
      dating-agency-mall-server/src/main/resources/mapper/order/WalletAccountAssociateOrderRecordDao.xml

4
dating-agency-mall-server/src/main/resources/mapper/order/WalletAccountAssociateOrderRecordDao.xml

@ -66,6 +66,7 @@
(SELECT dao.id,dao.settlement_amount (SELECT dao.id,dao.settlement_amount
from da_order as dao from da_order as dao
LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0 LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0
LEFT JOIN da_account as daa on daa.user_id=dao.user_id and daa.type=2 and daa.is_delete=0
where dao.is_delete=0 where dao.is_delete=0
<if test="queryParam.orderCode != null and queryParam.orderCode != '' "> <if test="queryParam.orderCode != null and queryParam.orderCode != '' ">
AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%') AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%')
@ -73,6 +74,9 @@
<if test="queryParam.name != null and queryParam.name != '' "> <if test="queryParam.name != null and queryParam.name != '' ">
AND dao.name LIKE CONCAT('%', TRIM(#{queryParam.name}), '%') AND dao.name LIKE CONCAT('%', TRIM(#{queryParam.name}), '%')
</if> </if>
<if test="queryParam.userPhone != null and queryParam.userPhone != '' ">
AND daa.tid LIKE CONCAT('%', TRIM(#{queryParam.userPhone}), '%')
</if>
<if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null"> <if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null">
and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo} and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo}
</if> </if>

Loading…
Cancel
Save