| | |
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.vo.order.CommonOrderVO;
|
| | | import com.yeshi.fanli.vo.order.OrderCountVO;
|
| | |
|
| | | public interface CommonOrderMapper extends BaseMapper<CommonOrder> {
|
| | |
|
| | |
| | | Map<String, BigDecimal> countHistoryOrder(@Param("uid") Long uid, @Param("day") Integer day,
|
| | | @Param("source") Integer source);
|
| | |
|
| | | |
| | | /**
|
| | | * 统计有效订单数量
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | OrderCountVO getOrderCount(@Param("uid") Long uid, @Param("day")Integer day, @Param("source") Integer source);
|
| | | |
| | | /**
|
| | | * 昨日总订单-根据红包类型 自购 邀请 分享
|
| | | *
|
| | |
| | | CommonOrderVO firstValidOrderByUid(@Param("uid") Long uid, @Param("typeHB") Integer typeHB,
|
| | | @Param("typeDate") Integer typeDate);
|
| | |
|
| | | |
| | | /**
|
| | | * 获取首笔分享订单;
|
| | | * @param uid |
| | | * @return
|
| | | */
|
| | | CommonOrder getFirstShareOrderByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 统计订单号到账金额
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | BigDecimal getTotalRewardMoneyByOrderNoAndSourceType(@Param("orderNo") String orderNo, @Param("sourceType") Integer sourceType);
|
| | | |
| | | /**
|
| | | * 统计24小时有效自购订单
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long count24HValidOrderByUid(@Param("uid") Long uid, @Param("minTime") Date minTime);
|
| | | } |