2
sunshine
2024-11-05 d1f9fb55a136e589a5ad588ed9a93ce9272917da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
}