| | |
| | | package com.yeshi.fanli.service.inter.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.order.HongBaoOrder;
|
| | |
|
| | | public interface HongBaoOrderService {
|
| | |
|
| | | public int insert(HongBaoOrder record);
|
| | |
|
| | | public int insertSelective(HongBaoOrder record);
|
| | |
|
| | | public int updateByPrimaryKey(HongBaoOrder record);
|
| | |
|
| | | public int updateByPrimaryKeySelective(HongBaoOrder record);
|
| | |
|
| | | public int deleteByPrimaryKey(Long id);
|
| | |
|
| | | public HongBaoOrder selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 老版本的用户返利订单列表
|
| | | * |
| | | * @param uid
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | |
|
| | | public List<HongBaoOrder> listFanLiOrder(Long uid, int page, int pageSize);
|
| | |
|
| | | /**
|
| | | * 老版本用户返利订单数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countFanLiOrder(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据订单号和订单来源获取数量
|
| | | * |
| | | * @param orderNo
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | public long countByOrderNoAndHongBaoType(String orderNo, int type);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.order.HongBaoOrder; |
| | | import com.yeshi.fanli.vo.order.HongBaoCountVO; |
| | | |
| | | public interface HongBaoOrderService { |
| | | |
| | | public int insert(HongBaoOrder record); |
| | | |
| | | public int insertSelective(HongBaoOrder record); |
| | | |
| | | public int updateByPrimaryKey(HongBaoOrder record); |
| | | |
| | | public int updateByPrimaryKeySelective(HongBaoOrder record); |
| | | |
| | | public int deleteByPrimaryKey(Long id); |
| | | |
| | | public HongBaoOrder selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 老版本的用户返利订单列表 |
| | | * |
| | | * @param uid |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | |
| | | public List<HongBaoOrder> listFanLiOrder(Long uid, int page, int pageSize); |
| | | |
| | | /** |
| | | * 老版本用户返利订单数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countFanLiOrder(Long uid); |
| | | |
| | | /** |
| | | * 根据订单号和订单来源获取数量 |
| | | * |
| | | * @param orderNo |
| | | * @param hongBaotype |
| | | * @param sourceType |
| | | * @return |
| | | */ |
| | | public long countByOrderNoAndHongBaoType(String orderNo, int hongBaotype, int sourceType); |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * |
| | | * @param commonOrderId |
| | | * @return |
| | | */ |
| | | public HongBaoOrder selectDetailByCommonOrderId(Long commonOrderId); |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * |
| | | * @param hongBaoId |
| | | * @return |
| | | */ |
| | | public HongBaoOrder selectDetailByHongBaoId(Long hongBaoId); |
| | | |
| | | /** |
| | | * 根据订单号和来源类型查询 |
| | | * |
| | | * @param orderId |
| | | * @param sourceType |
| | | * @return |
| | | */ |
| | | public List<HongBaoOrder> listByOrderIdAndSourceType(@Param("orderId") String orderId, |
| | | @Param("sourceType") int sourceType); |
| | | |
| | | /** |
| | | * 根据订单号和来源类型查询详情 |
| | | * |
| | | * @param orderId |
| | | * @param sourceType |
| | | * @return |
| | | */ |
| | | public List<HongBaoOrder> listDetailByOrderIdAndSourceType(@Param("orderId") String orderId, |
| | | @Param("sourceType") int sourceType); |
| | | |
| | | /** |
| | | * 红包信息统计 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public HongBaoCountVO getHongBaoCountVO(List<HongBaoOrder> list); |
| | | |
| | | /** |
| | | * 查询订单相关红包 |
| | | * @param orderId |
| | | * @param sourceType |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<HongBaoOrder> listDetailByOrderIdAndSourceTypeAndUid(String orderId, int sourceType, Long uid); |
| | | |
| | | } |