| | |
| | | package com.yeshi.fanli.service.inter.order;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.bus.user.Order;
|
| | |
|
| | | /**
|
| | | * 订单红包对应表用于活动)
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface OrderHongBaoMapService {
|
| | |
|
| | | /**
|
| | | * 添加红包订单映射
|
| | | * |
| | | * @param hongBao
|
| | | * @param order
|
| | | */
|
| | | public void addOrderHongBaoMap(HongBaoV2 hongBao, Order order);
|
| | |
|
| | | /**
|
| | | * 查找奖励金额
|
| | | * @param orderNo
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public Map<String, BigDecimal> getCouponHongbaoByOrderNo(String orderNo, Long uid);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2; |
| | | import com.yeshi.fanli.entity.bus.user.Order; |
| | | import com.yeshi.fanli.entity.order.OrderHongBaoMap; |
| | | |
| | | /** |
| | | * 订单红包对应表用于活动) |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface OrderHongBaoMapService { |
| | | |
| | | /** |
| | | * 添加红包订单映射 |
| | | * |
| | | * @param hongBao |
| | | * @param order |
| | | */ |
| | | public void addOrderHongBaoMap(HongBaoV2 hongBao, Order order); |
| | | |
| | | /** |
| | | * 查找奖励金额 |
| | | * |
| | | * @param orderNo |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public BigDecimal getCouponHongbaoByOrderNo(String orderNo, Long uid); |
| | | |
| | | /** |
| | | * 根据订单ID与sourceType查询 |
| | | * |
| | | * @param orderId |
| | | * @param sourceType |
| | | * @return |
| | | */ |
| | | public OrderHongBaoMap selectByOrderIdAndSourceType(String orderId, int sourceType); |
| | | |
| | | } |