package com.red.circle.order.infra.database.rds.service.order;

import com.red.circle.framework.mybatis.service.BaseService;
import com.red.circle.order.infra.database.rds.entity.order.OrderAbnormalLog;
import com.red.circle.order.inner.model.enums.inapp.OrderAbnormalStatusEnum;

/**
 * <p>
 * 存在丢失订单日志记录 服务类
 * </p>
 *
 * @author pengliang
 * @since 2020-11-24
 */
public interface OrderAbnormalLogService extends BaseService<OrderAbnormalLog> {

  /**
   * 保存异常订单
   *
   * @param orderAbnormalLog ignore
   */
  void saveUnique(OrderAbnormalLog orderAbnormalLog);

  /**
   * 获取凭证
   *
   * @param id ignore
   * @return ignore
   */
  String getCertificateById(Long id);

  /**
   * 修改装态
   *
   * @param id     ignore
   * @param status ignore
   */
  void updateStatus(Long id, OrderAbnormalStatusEnum status);
}
