| | |
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.exception.order.HongBaoException;
|
| | | import com.yeshi.fanli.exception.user.UserAccountException;
|
| | |
|
| | | public interface HongBaoV2Service {
|
| | |
|
| | |
| | | * 订单对象
|
| | | * @param type
|
| | | * 类型
|
| | | * @return 0-未添加也未更新 1-只添加 2-只更新 12-有添加也有更新
|
| | | * @throws HongBaoException
|
| | | */
|
| | | public void addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException;
|
| | | public int addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException,UserAccountException ;
|
| | |
|
| | | /**
|
| | | * 奖金列表(1.4.9之前的版本)
|
| | |
| | | public List<HongBaoV2> listChildrenById(Long id);
|
| | |
|
| | | /**
|
| | | * 查询子红包
|
| | | * |
| | | * @param idList
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoV2> listChildrenByIds(List<Long> idList);
|
| | |
|
| | | /**
|
| | | * 最近30天内产生过分享订单的用户
|
| | | *
|
| | | * @return
|
| | |
| | | */
|
| | | public HongBaoV2 getFirstValidHongBaoByTypeAndUid(List<Integer> typeList, Long uid);
|
| | |
|
| | | /**
|
| | | * 根据ID批量查询
|
| | | * |
| | | * @param idList
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoV2> listByIds(List<Long> idList);
|
| | |
|
| | | /**
|
| | | * 根据交易id查询红包信息
|
| | | * @param tradeId
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoDTO> listByOrderTradeId(String tradeId);
|
| | | }
|