|
|
@@ -1732,10 +1732,12 @@
|
|
|
<select id="platformSettlementRecord" resultType="com.ydtech.modules.fnc.dto.PlatformSettlementRecordDto">
|
|
|
SELECT
|
|
|
DATE_FORMAT(a.settlement_time, '%Y-%m-%d %H:%i:%s') as "settlementTime",
|
|
|
+ MAX(upf.url) as "imageUrl",
|
|
|
sum(a.commission_feevalue + a.other_feevalue) AS "settlementAmount"
|
|
|
FROM
|
|
|
ins_ply_income a
|
|
|
LEFT JOIN ptl_agreement pa on a.agreement_id = pa.id
|
|
|
+ LEFT JOIN ins_upload_files upf on a.settlement_image_id=upf.id
|
|
|
<where>
|
|
|
pa.agreement_type ='1'
|
|
|
<if test="partnerCompaniesId !=null and partnerCompaniesId !=''">
|