|
|
@@ -21,21 +21,75 @@ public interface SysUserAccountIncomeLogMapper extends BaseMapper<SysUserAccount
|
|
|
* @date 2026/6/8 17:25
|
|
|
*/
|
|
|
@Select("""
|
|
|
- select
|
|
|
- ioci.license_no ,
|
|
|
- io.signing_time as signTime,
|
|
|
- saa.auditing_time as payTime,
|
|
|
- a.*
|
|
|
- from
|
|
|
- sys_user_account_change_log a
|
|
|
- left join ins_orders_car_info ioci on
|
|
|
- a.related_order_id = ioci.order_no
|
|
|
- left join ins_orders io
|
|
|
- on a.related_order_id = io.id
|
|
|
- left join sys_amount_auditing saa
|
|
|
- on saa.id = a.related_amount_auditing_id
|
|
|
+
|
|
|
+ select * from(
|
|
|
+ SELECT
|
|
|
+ a.system_code ,
|
|
|
+ ioci.license_no,
|
|
|
+ io.signing_time AS signTime,
|
|
|
+ saa.auditing_time AS payTime,
|
|
|
+ a.user_id,
|
|
|
+ a.jzg_info_id,
|
|
|
+ a.user_name,
|
|
|
+ a.amount,
|
|
|
+ a.amount_before,
|
|
|
+ a.amount_after,
|
|
|
+ a.oper_type,
|
|
|
+ a.related_order_id,
|
|
|
+ a.bank_card_id_to,
|
|
|
+ a.bank_card_no_to,
|
|
|
+ a.bank_card_id_in,
|
|
|
+ a.bank_card_no_in,
|
|
|
+ a.is_delete,
|
|
|
+ a.create_time,
|
|
|
+ a.remark,
|
|
|
+ a.related_amount_auditing_id,
|
|
|
+ a.status
|
|
|
+ FROM
|
|
|
+ sys_user_account_change_log a
|
|
|
+ LEFT JOIN ins_orders_car_info ioci ON
|
|
|
+ a.related_order_id = ioci.order_no
|
|
|
+ LEFT JOIN ins_orders io ON
|
|
|
+ a.related_order_id = io.id
|
|
|
+ LEFT JOIN sys_amount_auditing saa
|
|
|
+ ON
|
|
|
+ saa.id = a.related_amount_auditing_id
|
|
|
+ AND saa.system_code = 'G111'
|
|
|
+ union ALL
|
|
|
+ select
|
|
|
+ saa.system_code ,
|
|
|
+ null as license_no,
|
|
|
+ null as signTime,
|
|
|
+ null as payTime,
|
|
|
+ saa.user_id,
|
|
|
+ null as zg_info_id,
|
|
|
+ su.username as user_name,
|
|
|
+ saa.amount,
|
|
|
+ (saa.amount + saa.balance_amount) as amount_before,
|
|
|
+ saa.balance_amount as amount_after,
|
|
|
+ 5 as oper_type,
|
|
|
+ null as related_order_id,
|
|
|
+ null as bank_card_id_to,
|
|
|
+ null as bank_card_no_to,
|
|
|
+ null as bank_card_id_in,
|
|
|
+ null as bank_card_no_in,
|
|
|
+ null as is_delete,
|
|
|
+ saa.create_time,
|
|
|
+ '提现中' as remark,
|
|
|
+ null as related_amount_auditing_id,
|
|
|
+ 10 as status
|
|
|
+ from
|
|
|
+ sys_amount_auditing saa
|
|
|
+ left join sys_user su on saa.user_id = su.id
|
|
|
+ where
|
|
|
+ saa.auditing_status = 0
|
|
|
+ ) mm
|
|
|
where
|
|
|
- a.user_id = #{ywyUserId} and a.create_time >= #{beginDate} and a.create_time < #{endDate} order by a.create_time desc
|
|
|
+ mm.user_id = #{ywyUserId}
|
|
|
+ and mm.create_time >= #{beginDate} and mm.create_time < #{endDate}
|
|
|
+ AND mm.system_code = #{systemCode}
|
|
|
+ order by
|
|
|
+ mm.create_time desc
|
|
|
""")
|
|
|
- List<SysUserAccountChangeLog> queryYwyIORecs(String ywyUserId, LocalDate beginDate, LocalDate endDate);
|
|
|
+ List<SysUserAccountChangeLog> queryYwyIORecs(String systemCode, String ywyUserId, LocalDate beginDate, LocalDate endDate);
|
|
|
}
|