| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | HongBaoOrder selectByCommonOrderId(Long id); |
| | | |
| | | /** |
| | | * 根据红包ID查询对象 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | HongBaoOrder selectByHongBaoId(Long id); |
| | | |
| | | /** |
| | | * 返利订单列表(1.4.9之前) |
| | | * |
| | | * @param uid |
| | |
| | | */ |
| | | Long countFanLiOrder(Long uid); |
| | | |
| | | /** |
| | | * 根据订单号与红包类型计算订单数量 |
| | | * |
| | | * @param orderNo |
| | | * @param type |
| | | * @return |
| | | */ |
| | | long countByOrderNoAndHongBaoType(@Param("orderNo") String orderNo, @Param("type") int type, |
| | | @Param("sourceType") int sourceType); |
| | | |
| | | /** |
| | | * 返利超过一定金额的订单数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public int countHongBaoOrderCountMoreByUid(@Param("money") BigDecimal money, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 维权订单数量(包含邀请赚) |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public int countWeiQuanOrderByUid(Long uid); |
| | | |
| | | /** |
| | | * 维权订单返还的金额 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public BigDecimal sumWeiQuanOrderFanAmountByUid(Long uid); |
| | | |
| | | /** |
| | | * 安全订单数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public int countSafeOrderByUid(Long uid); |
| | | |
| | | } |