admin
2019-01-03 5981b2cae7c20ec9021c8ccbe1a926f35f640210
fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java
@@ -1,6 +1,9 @@
package com.yeshi.fanli.service.inter.hongbao;
import com.yeshi.fanli.entity.bus.user.HongBao;
import com.yeshi.fanli.entity.bus.user.HongBaoV2;
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.exception.HongBaoException;
public interface HongBaoV2Service {
@@ -9,11 +12,27 @@
   public int insertSelective(HongBaoV2 record);
   public int updateByPrimaryKey(HongBaoV2 record);
   public int updateByPrimaryKeySelective(HongBaoV2 record);
   public int deleteByPrimaryKey(Long id);
   public HongBaoV2 selectByPrimaryKey(Long id);
   /**
    * 添加红包
    * @param commonOrder 订单对象
    * @param type 类型
    * @throws HongBaoException
    */
   public void addHongBao(CommonOrder commonOrder,int type) throws HongBaoException;
   /**
    * 将老版本的红包对象转为新版本的对象
    *
    * @param hb
    */
   public void convert(HongBao hb);
}