wuhp 2 лет назад
Родитель
Сommit
291058d155

+ 3 - 0
src/main/java/com/ydtech/modules/fnc/dto/PlatformSettlementRecordDto.java

@@ -22,4 +22,7 @@ public class PlatformSettlementRecordDto implements Serializable {
 
     @ApiModelProperty(value = "进账金额")
     private BigDecimal settlementAmount;
+
+    @ApiModelProperty(value = "凭证")
+    private String imageUrl;
 }

+ 2 - 0
src/main/resources/mapper/modules/fnc/InsPlyIncomeMapper.xml

@@ -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  !=''">