admin
2020-05-06 24a8d17e007545f7426c48352109aa1a9c6587ee
fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java
@@ -5,9 +5,11 @@
import java.util.List;
import com.yeshi.fanli.dto.HongBaoDTO;
import com.yeshi.fanli.dto.order.HongBaoAddResult;
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 {
@@ -30,9 +32,10 @@
    *            订单对象
    * @param type
    *            类型
    * @return 0-未添加也未更新 1-只添加 2-只更新 12-有添加也有更新
    * @throws HongBaoException
    */
   public void addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException;
   public HongBaoAddResult addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException,UserAccountException ;
   /**
    * 奖金列表(1.4.9之前的版本)
@@ -131,6 +134,14 @@
   public List<HongBaoV2> listChildrenById(Long id);
   /**
    * 查询子红包
    *
    * @param idList
    * @return
    */
   public List<HongBaoV2> listChildrenByIds(List<Long> idList);
   /**
    * 最近30天内产生过分享订单的用户
    * 
    * @return
@@ -164,4 +175,25 @@
    */
   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);
   /**
    * 查询直接上级当时获得红包等级
    * @param pid
    * @return
    */
   public Integer getDirectBossUrankByPid(Long pid);
}