yujian
2020-01-18 f4a0f2acc63d7785eab108419a4e16f5f688cb95
fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java
@@ -8,6 +8,7 @@
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 +31,10 @@
    *            订单对象
    * @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之前的版本)
@@ -131,6 +133,14 @@
   public List<HongBaoV2> listChildrenById(Long id);
   /**
    * 查询子红包
    *
    * @param idList
    * @return
    */
   public List<HongBaoV2> listChildrenByIds(List<Long> idList);
   /**
    * 最近30天内产生过分享订单的用户
    * 
    * @return
@@ -164,4 +174,18 @@
    */
   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);
}