|
|
@@ -619,4 +619,66 @@
|
|
|
</where>
|
|
|
ORDER BY a.generate_time DESC,a.id ASC
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findManagerExportList" resultType="org.jeecg.modules.hlgaccount.entity.HlgAccountDetailManagerExport" >
|
|
|
+ SELECT
|
|
|
+ a.id AS "id",
|
|
|
+ a.account_id AS "accountId",
|
|
|
+ a.payment_id AS "paymentId",
|
|
|
+ a.type AS "type",
|
|
|
+ a.total_amount AS "totalAmount",
|
|
|
+ a.amount AS "amount",
|
|
|
+ a.service_rate AS "serviceRate",
|
|
|
+ a.service_fee AS "serviceFee",
|
|
|
+ a.is_through_platform AS "isThroughPlatform",
|
|
|
+ a.is_drawback AS "isDrawback",
|
|
|
+ a.sys_org_code AS "sysOrgCode",
|
|
|
+ a.is_display AS "isDisplay",
|
|
|
+ a.generate_time AS "generateTime",
|
|
|
+ a.generate_by AS "generateBy",
|
|
|
+ p.payment_code AS "paymentCode"
|
|
|
+ FROM hlg_account_detail a
|
|
|
+ <include refid="hlgAccountDetailJoins"/>
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ and a.is_display = '1'
|
|
|
+ and a.generate_time > DATE_SUB(CURDATE(), INTERVAL 6 MONTH)
|
|
|
+ <if test="hlgAccountDetail.accountId != null ">
|
|
|
+ and a.account_id = #{hlgAccountDetail.accountId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+ ORDER BY a.generate_time DESC,a.id ASC
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findManagerExportListA_B" resultType="org.jeecg.modules.hlgaccount.entity.HlgAccountDetailManagerExport" >
|
|
|
+ SELECT
|
|
|
+ a.id AS "id",
|
|
|
+ a.cp_account_id AS "accountId",
|
|
|
+ a.payment_id AS "paymentId",
|
|
|
+ a.type AS "type",
|
|
|
+ a.total_amount AS "totalAmount",
|
|
|
+ a.amount AS "amount",
|
|
|
+ a.service_rate AS "serviceRate",
|
|
|
+ a.service_fee AS "serviceFee",
|
|
|
+ 1 AS "isThroughPlatform",
|
|
|
+ a.is_drawback AS "isDrawback",
|
|
|
+ a.sys_org_code AS "sysOrgCode",
|
|
|
+ a.is_display AS "isDisplay",
|
|
|
+ a.generate_time AS "generateTime",
|
|
|
+ a.generate_by AS "generateBy",
|
|
|
+ p.payment_code AS "paymentCode"
|
|
|
+ FROM hlg_cp_account_detail a
|
|
|
+ LEFT JOIN hlg_payment p ON p.id = a.payment_id
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ and a.is_display = '1'
|
|
|
+ and a.generate_time > DATE_SUB(CURDATE(), INTERVAL 6 MONTH)
|
|
|
+ <if test="hlgAccountDetail.accountId != null ">
|
|
|
+ and a.cp_account_id = #{hlgAccountDetail.accountId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+ ORDER BY a.generate_time DESC,a.id ASC
|
|
|
+ </select>
|
|
|
</mapper>
|