puzhibing
6 小时以前 e1c8c9d51f1c6e42c9868743f16fa8e52bb419cd
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/mapper/TChargingCardMapper.java
@@ -20,6 +20,8 @@
    int countByCardNo(@Param("cardNo") String cardNo, @Param("excludeId") Long excludeId);
    int countByFullCardNo(@Param("fullCardNo") String fullCardNo, @Param("excludeId") Long excludeId);
    int adjustBalance(@Param("ids") List<Long> ids,
                      @Param("amount") BigDecimal amount,
                      @Param("type") Integer type,
@@ -54,4 +56,14 @@
                                @Param("amount") BigDecimal amount,
                                @Param("orderCode") String orderCode,
                                @Param("createBy") Long createBy);
    /**
     * 批量查询已存在的充电扣款流水订单号。
     */
    List<String> selectDeductedOrderCodes(@Param("orderCodes") List<String> orderCodes);
    /**
     * 原子清零余额(账户模式切换回收专用:仅当余额>0时清零,返回受影响行数,天然幂等)
     */
    int clearBalance(@Param("id") Long id, @Param("updateBy") Long updateBy);
}