流水记录优化
This commit is contained in:
1 parent
dcd8eadd20
commit
abdafd5c9d
11 files changed
+238
-28
No files matched your search
@@ -37,6 +37,8 @@ public interface AppsBalanceLedgerMapper extends BaseMapper<AppsBalanceLedgerPlu
|
||||
/** 系统业务幂等写入,重复幂等键不生成新流水。 */
|
||||
int insertSystemLedgerIgnoreDuplicate(AppsBalanceLedger ledger);
|
||||
|
||||
int countByIdempotencyKey(@Param("idempotencyKey") String idempotencyKey);
|
||||
|
||||
List<WalletLedgerSummaryVo> selectStatisticsSummary(AppsLedgerStatisticsQuery query);
|
||||
|
||||
List<WalletLedgerTrendVo> selectStatisticsTrend(AppsLedgerStatisticsQuery query);
|
||||
|
||||
@@ -17,11 +17,18 @@ public interface UsdtOrdersMapper extends BaseMapper<UsdtOrdersPlus>
|
||||
{
|
||||
UsdtOrdersPlus selectByIdForUpdate(@Param("id") Long id);
|
||||
|
||||
int countPaidByTransactionId(@Param("transactionId") String transactionId,
|
||||
@Param("excludeOrderId") Long excludeOrderId);
|
||||
int countByTransactionId(@Param("transactionId") String transactionId,
|
||||
@Param("excludeOrderId") Long excludeOrderId);
|
||||
|
||||
/** 在独立事务中记录链上已确认交易,订单仍保持待支付状态等待账务结算。 */
|
||||
int markPaymentDetected(@Param("id") Long id, @Param("transactionId") String transactionId,
|
||||
@Param("updatedAt") java.util.Date updatedAt);
|
||||
|
||||
int markOrderPaid(@Param("id") Long id, @Param("transactionId") String transactionId,
|
||||
@Param("updatedAt") java.util.Date updatedAt);
|
||||
|
||||
/** 查询链上已确认待结算或已支付但流水不完整的订单,用于后台幂等补偿。 */
|
||||
List<Long> selectOrderIdsRequiringSettlement(@Param("limit") int limit);
|
||||
/**
|
||||
* 查询订单
|
||||
*
|
||||
|
||||
@@ -37,6 +37,8 @@ public interface WalletAddressLedgerMapper extends BaseMapper<WalletAddressLedge
|
||||
/** 由系统业务链路幂等写入流水,重复幂等键不产生新记录。 */
|
||||
int insertSystemLedgerIgnoreDuplicate(WalletAddressLedger walletAddressLedger);
|
||||
|
||||
int countByIdempotencyKey(@Param("idempotencyKey") String idempotencyKey);
|
||||
|
||||
List<WalletLedgerSummaryVo> selectStatisticsSummary(WalletLedgerStatisticsQuery query);
|
||||
|
||||
List<WalletLedgerTrendVo> selectStatisticsTrend(WalletLedgerStatisticsQuery query);
|
||||
|
||||
Reference in new issue
Block a user