MkShopCouponRecordService.receiveCoupon 发放券 统一方法
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package com.czg.market.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 发放优惠券实体
|
||||
* @author ww
|
||||
* @description
|
||||
*/
|
||||
@Data
|
||||
public class MkShopCouponGiftDTO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 店铺用户id
|
||||
*/
|
||||
private Long shopUserId;
|
||||
|
||||
/**
|
||||
* 卷Id (校验是否可用)
|
||||
*/
|
||||
private Long couponId;
|
||||
|
||||
/**
|
||||
* 来源活动id
|
||||
*/
|
||||
private Long sourceId;
|
||||
|
||||
/**
|
||||
* 来源记录Id
|
||||
*/
|
||||
private Long sourceFlowId;
|
||||
|
||||
/**
|
||||
* 来源描述
|
||||
*/
|
||||
private String source;
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.czg.market.service;
|
||||
import com.czg.account.dto.QueryReceiveDto;
|
||||
import com.czg.account.vo.CouponReceiveVo;
|
||||
import com.czg.account.vo.UserCouponVo;
|
||||
import com.czg.market.dto.MkShopCouponGiftDTO;
|
||||
import com.czg.market.dto.MkShopCouponRecordDTO;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
@@ -35,10 +36,11 @@ public interface MkShopCouponRecordService extends IService<MkShopCouponRecord>
|
||||
/**
|
||||
* 发放券 统一方法
|
||||
*
|
||||
* @param mkShopCouponRecordDTO 赠送信息 除Id外 几乎全填
|
||||
* @param number 发放数量
|
||||
* @param giftDTO 除 sourceFlowId 外 全必填 如果有 也填
|
||||
* @param number 发放数量
|
||||
* @param isLimit 是否校验限领,活动与管理员添加 不计限领
|
||||
*/
|
||||
void receiveCoupon(MkShopCouponRecordDTO mkShopCouponRecordDTO, Integer number);
|
||||
void receiveCoupon(MkShopCouponGiftDTO giftDTO, Integer number, boolean isLimit);
|
||||
|
||||
/**
|
||||
* 用户优惠券 失效/删除
|
||||
|
||||
Reference in New Issue
Block a user