package com.ruoyi.payment.infrastructure.persistence.mapper;
|
|
import com.ruoyi.payment.domain.model.NotifyLog;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* 渠道回调日志Mapper
|
*
|
* @author ruoyi
|
*/
|
@Mapper
|
public interface NotifyLogMapper {
|
|
/**
|
* 插入回调日志
|
*/
|
int insert(NotifyLog notifyLog);
|
|
/**
|
* 更新回调日志
|
*/
|
int update(NotifyLog notifyLog);
|
|
/**
|
* 根据ID查询
|
*/
|
NotifyLog selectById(@Param("id") Long id);
|
|
/**
|
* 查询已处理的回调记录数量(幂等性检查)
|
*/
|
int selectProcessedCount(@Param("channel") String channel,
|
@Param("notifyIdOrSerial") String notifyIdOrSerial);
|
}
|