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

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.order.infra.database.rds.dto.SimpleOrderAppleLatestReceiptDTO;
import com.red.circle.order.infra.database.rds.entity.order.OrderAppleLatestReceipt;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * ios购买记录 Mapper 接口
 * </p>
 *
 * @author pengliang
 * @since 2020-04-05
 */
public interface OrderAppleLatestReceiptDAO extends BaseDAO<OrderAppleLatestReceipt> {

  /**
   * 获取用户最新订阅
   *
   * @param transactionId 商务id
   * @return dto
   */
  SimpleOrderAppleLatestReceiptDTO findLatestReceipt(@Param("transactionId") String transactionId);
}
