|
|
@@ -311,6 +311,45 @@
|
|
|
ORDER BY a.create_time desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getRecord" resultType="com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity">
|
|
|
+ select
|
|
|
+ a.id as "id",
|
|
|
+ a.total_orders as "totalOrders",
|
|
|
+ a.time_frame as "timeFrame",
|
|
|
+ a.total_amount as "totalAmount",
|
|
|
+ a.start_time as "startTime",
|
|
|
+ a.end_time as "endTime",
|
|
|
+ a.settlement_amount as "settlementAmount",
|
|
|
+ a.settlement_amount as "invoicCommissionFeevalue",
|
|
|
+ a.agree_ment_id as "agreeMentId",
|
|
|
+ a.partner_companies_id as "partnerCompaniesId",
|
|
|
+ a.invoicing_method as "invoicingMethod",
|
|
|
+ a.tax_points as "taxPoints",
|
|
|
+ a.expend_amount as "expendAmount",
|
|
|
+ a.parent_id as "parentId",
|
|
|
+ a.handling_fees_status as "handlingFeesStatus",
|
|
|
+ a.agreement_type as "agreementType",
|
|
|
+ a.settlement_time as "settlementTime",
|
|
|
+ a.settlement_image_id as "settlementImageId",
|
|
|
+ a.task_id as "taskId",
|
|
|
+ a.create_time as "invoicTime",
|
|
|
+ a.invoice_id AS "invoicId",
|
|
|
+ a.invoiced_settled_amount as "invoicedSettledAmount",
|
|
|
+ a.Invoiced_not_settled_amount as "InvoicedNotSettledAmount",
|
|
|
+ a.completion_status as "completionStatus",
|
|
|
+ upf.url as "imageUrl",
|
|
|
+ a.unsettled_amount as "unsettledAmount"
|
|
|
+ from settlement_documentary_fees a
|
|
|
+ LEFT JOIN ins_upload_files upf on a.settlement_image_id=upf.id
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ <if test="id !=null and id !=''">
|
|
|
+ and a.parent_id =#{id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY a.create_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
|
|
|
|