فهرست منبع

修改合作商户业务明细金额

LiFei 5 سال پیش
والد
کامیت
04e829cb25

+ 2 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwpayment/mapper/xml/HlwPaymentMapper.xml

@@ -312,7 +312,7 @@
 	<select id="companyBusinessDetailList" resultType="org.jeecg.modules.hlwpayment.entity.HlwPayment" >
 		SELECT
 		a.id AS "id",
-		a.total_payment AS "totalPayment",
+		(haf.amount+haf.service_fee) AS "totalPayment",
 		a.payment_time AS "paymentTime",
 		hr.name as "requirementName",
 		hr.description as "description",
@@ -321,6 +321,7 @@
 		has.file_path_prefix as "filePathPrefix",
 		ho.id as "orderId"
 		FROM hlw_payment a
+		inner join hlw_subcontractor_account_flow haf on haf.payment_id=a.id and haf.type=0
 		left join hlw_payment_detail hp on hp.payment_id=a.id
 		left join hlw_order ho on ho.id=hp.order_id
 		left join hlw_requirement hr on hr.id=ho.requirement_id