|
|
@@ -235,4 +235,37 @@
|
|
|
having a.create_time=max(a.create_time)
|
|
|
ORDER BY personalNetPayment DESC, paymentNumber DESC
|
|
|
</select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--自由职业者业务明细-->
|
|
|
+ <select id="businessDetailsList" resultType="org.jeecg.modules.hlwpayment.entity.HlwPaymentDetail" >
|
|
|
+ SELECT
|
|
|
+ a.id AS "id",
|
|
|
+ a.bnkflg AS "bnkflg",
|
|
|
+ a.eacbnk AS "eacbnk",
|
|
|
+ a.card_number AS "cardNumber",
|
|
|
+ a.rcveaa AS "rcveaa",
|
|
|
+ a.tax_fee AS "taxFee",
|
|
|
+ a.net_payment AS "netPayment",
|
|
|
+ a.payment_result_time AS "paymentResultTime",
|
|
|
+ a.duty_paid_id AS "dutyPaidId"
|
|
|
+ hi.invoice as "invoice",
|
|
|
+ hd.tax_payment_receipt as "taxPaymentReceipt",
|
|
|
+ hr.id as "requirementId",
|
|
|
+ hr.name as "requirementName"
|
|
|
+ FROM hlw_payment_detail a
|
|
|
+ left join hlw_payment hp on hp.id=a.payment_id
|
|
|
+ left join hlw_invoice hi on hi.id=hp.invoice_id
|
|
|
+ left join hlw_duty_paid hd on hd.id=a.duty_paid_id
|
|
|
+ left join hlw_order ho on ho.id=hp.order_id
|
|
|
+ left join hlw_requirement hr on hr.id=ho.requirement_id
|
|
|
+ <where>
|
|
|
+ a.status=3
|
|
|
+ <if test="hlwPaymentDetail.paymentResultTime_begin != null and hlwPaymentDetail.paymentResultTime_begin !=''">
|
|
|
+ and a.payment_result_time between #{hlwPaymentDetail.paymentResultTime_begin} and #{hlwPaymentDetail.paymentResultTime_end}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY a.update_time DESC, a.id asc
|
|
|
+ </select>
|
|
|
</mapper>
|