|
|
@@ -97,6 +97,49 @@
|
|
|
ORDER BY a.create_time desc
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <select id="queryRecord" resultType="com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity">
|
|
|
+ select
|
|
|
+ max(a.settlement_time) as "settlementTime",
|
|
|
+ sum(a.settlement_amount) as "settlementAmount",
|
|
|
+ max(upf.url ) as "imageUrl"
|
|
|
+ from settlement_documentary_fees a
|
|
|
+ LEFT JOIN ins_upload_files upf on a.settlement_image_id=upf.id
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ <if test="partnerCompaniesId !=null and partnerCompaniesId !=''">
|
|
|
+ and a.partner_companies_id =#{partnerCompaniesId}
|
|
|
+ </if>
|
|
|
+ <if test="handlingFeesStatus !=null and handlingFeesStatus !=''">
|
|
|
+ and a.handling_fees_status =#{handlingFeesStatus}
|
|
|
+ </if>
|
|
|
+ <if test="isNotCar !=null and isNotCar !=''">
|
|
|
+ and a.is_not_car =#{isNotCar}
|
|
|
+ </if>
|
|
|
+ <if test="agreementType !=null and agreementType !=''">
|
|
|
+ and a.agreement_type =#{agreementType}
|
|
|
+ </if>
|
|
|
+ <if test="parentId !=null and parentId !=''">
|
|
|
+ and a.parent_id =#{parentId}
|
|
|
+ </if>
|
|
|
+ <if test="settlementStatus !=null and settlementStatus !=''">
|
|
|
+ and a.settlement_status =#{settlementStatus}
|
|
|
+ </if>
|
|
|
+ <if test="completionStatus !=null and completionStatus !=''">
|
|
|
+ and a.completion_status =#{completionStatus}
|
|
|
+ </if>
|
|
|
+ <if test="settlementSumId !=null and settlementSumId !=''">
|
|
|
+ and a.settlement_sum_id =#{settlementSumId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ group BY a.create_time
|
|
|
+ ORDER BY a.create_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<select id="getOtherSettldetail" resultType="java.util.HashMap">
|
|
|
SELECT
|
|
|
a.id as "id",
|