admin
2021-04-28 a7454d8a6325566753358b37ffabfae2faa0ca7f
fanli/src/main/java/com/yeshi/fanli/service/inter/config/SystemCouponService.java
@@ -1,37 +1,59 @@
package com.yeshi.fanli.service.inter.config;
import java.util.List;
import com.yeshi.fanli.entity.system.SystemCoupon;
public interface SystemCouponService {
   public int insertSelective(SystemCoupon record);
   public SystemCoupon selectByPrimaryKey(Long id);
   public int updateByPrimaryKeySelective(SystemCoupon record);
   public int updateByPrimaryKey(SystemCoupon record);
   /**
    * 根据主键批量删除
    * @param list
    * @return
    */
   public int deleteBatchByPrimaryKey(List<Long> list);
   /**
    * 跟订单使用的券
    * @return
    */
   public List<SystemCoupon> getOrderCouponList();
   /**
    * 跟商品使用的券
    * @return
    */
   public List<SystemCoupon> getGoodsCouponList();
}
package com.yeshi.fanli.service.inter.config;
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.system.SystemCoupon;
public interface SystemCouponService {
   public int insertSelective(SystemCoupon record);
   public SystemCoupon selectByPrimaryKey(Long id);
   public int updateByPrimaryKeySelective(SystemCoupon record);
   public int updateByPrimaryKey(SystemCoupon record);
   /**
    * 根据主键批量删除
    * @param list
    * @return
    */
   public int deleteBatchByPrimaryKey(List<Long> list);
   /**
    * 跟订单使用的券
    * @return
    */
   public List<SystemCoupon> getOrderCouponList();
   /**
    * 跟商品使用的券
    * @return
    */
   public List<SystemCoupon> getGoodsCouponList();
   /**
    * 根据类型查询
    * @param type
    * @return
    */
   public SystemCoupon getCouponByType(String type);
   /**
    * 根据类型、比例查询
    * @param type
    * @param percent
    * @return
    */
   public SystemCoupon getCouponByTypeAndPercent(String type, BigDecimal percent);
   /**
    * 赠送免单券
    * @return
    */
   public List<SystemCoupon> getGiveFreeCouponList();
}