| | |
| | | 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);
|
| | | |
| | | }
|
| | | 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(); |
| | | |
| | | } |