wlzboy
6 天以前 09e6dc3fb7266620fafb5e341808a8eb36e080a1
ruoyi-system/src/main/java/com/ruoyi/system/service/INotifySendLogService.java
@@ -56,11 +56,29 @@
     * 
     * @param id 记录ID
     * @param result 发送结果信息
     * @param content 发送内容
     */
    void markSendSuccess(Long id, String result, String content);
    /**
     * 更新发送状态为成功(向后兼容)
     *
     * @param id 记录ID
     * @param result 发送结果信息
     */
    void markSendSuccess(Long id, String result);
    /**
     * 更新发送状态为失败
     *
     * @param id 记录ID
     * @param errorMsg 错误信息
     * @param content 发送内容
     */
    void markSendFailed(Long id, String errorMsg, String content);
    /**
     * 更新发送状态为失败(向后兼容)
     * 
     * @param id 记录ID
     * @param errorMsg 错误信息
@@ -100,10 +118,19 @@
    int deleteNotifySendLogById(Long id);
    /**
     * 根据任务ID和用户ID查询发送记录
     *
     * @param taskId 任务ID
     * @param userId 用户ID
     * @param notifyType 通知类型
     * @param channel 通知渠道
     * @return 通知发送记录
     */
    NotifySendLog selectNotifySendLog(Long taskId, Long userId, String notifyType, String channel);
    /**
     * 查询待重试的失败记录
     * 
     * @param maxRetryCount 最大重试次数
     * @return 失败记录列表
     */
    List<NotifySendLog> selectFailedNotifySendLogs(Integer maxRetryCount);
}