新增 后管查询运营商订单报表V2 接口

This commit is contained in:
Lemon
2023-08-28 14:58:34 +08:00
parent 192315089b
commit 282194b761
10 changed files with 245 additions and 4 deletions

View File

@@ -268,4 +268,24 @@
#{item,jdbcType=INTEGER}
</foreach>
</update>
<select id="getMerchantClearingBillList" resultType="com.jsowell.pile.vo.web.MerchantClearingBillVO" parameterType="com.jsowell.pile.dto.GetClearingBillDTO">
select
t1.trade_date as tradeDate,
t1.bill_status as billStatus,
t1.clearing_bill_code as clearingBillCode,
t1.clearing_time as clearingTime,
t1.merchant_id as merchantId,
t2.merchant_name as merchantName,
t1.receivable_amount as receivableAmount,
t1.should_clearing_amount as shouldClearingAmount,
t1.actual_clearing_amount as actualClearingAmount,
t1.fee_amount as feeAmount,
t1.withdrawable_amount as withdrawAbleAmount,
t1.withdraw_code as withdrawCode
from clearing_bill_info t1
join pile_merchant_info t2 on t1.merchant_id = t2.id and t1.del_flag = '0'
where t1.merchant_id = #{merchantId,jdbcType=VARCHAR}
and t1.create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
</select>
</mapper>