package com.nova.sankuai.infra.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.nova.sankuai.domain.entity.VipCardOrder;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Component;
|
|
import java.util.List;
|
|
/**
|
* @author weikangdi
|
* @create 2021/12/23
|
*/
|
@Component
|
@Mapper
|
public interface VipCardOrderMapper extends BaseMapper<VipCardOrder> {
|
|
/**
|
* 获取最新的订单信息
|
*
|
* @param userId
|
* @return
|
*/
|
VipCardOrder getLatestOrder(@Param("userId") Long userId);
|
|
/**
|
* 通过第三方订单号获取订单
|
*
|
* @param partnerThirdOrderId
|
* @return
|
*/
|
VipCardOrder getOrderByThirdId(String partnerThirdOrderId);
|
|
/**
|
* 查询 vipType price
|
*/
|
Integer findLatestEndOrderPriceByUserIdAndVipTypes(@Param("userId") Long userId,
|
@Param("types") List<Integer> vipTypes);
|
}
|