| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.HongBaoOrder; |
| | | |
| | | public interface HongBaoOrderMapper extends BaseMapper<HongBaoOrder> { |
| | | |
| | | /** |
| | | * 根据订单ID查询对象 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | HongBaoOrder selectByCommonOrderId(Long id); |
| | | |
| | | /** |
| | | * 根据红包ID查询对象 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | HongBaoOrder selectByHongBaoId(Long id); |
| | | |
| | | /** |
| | | * 返利订单列表(1.4.9之前) |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<HongBaoOrder> listFanLiOrder(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 返利订单数量(1.4.9之前) |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countFanLiOrder(Long uid); |
| | | |
| | | /** |
| | | * 根据订单号与红包类型计算订单数量 |
| | | * |
| | | * @param orderNo |
| | | * @param type |
| | | * @return |
| | | */ |
| | | long countByOrderNoAndHongBaoType(@Param("orderNo") String orderNo, @Param("type") int type, |
| | | @Param("sourceType") int sourceType); |
| | | |
| | | } |