新客立减
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package com.czg.market.service;
|
||||
|
||||
import com.czg.market.vo.MkConsumeDiscountVO;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.market.entity.MkShopConsumeDiscountRecord;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@@ -22,7 +22,13 @@ public interface MkShopConsumeDiscountRecordService extends IService<MkShopConsu
|
||||
*/
|
||||
MkShopConsumeDiscountRecord getDiscount(Long shopId, Long userId, Long orderId);
|
||||
|
||||
void canUseDiscount(Long shopId, Long userId, BigDecimal amount);
|
||||
/**
|
||||
* 是否可用新客立减
|
||||
*
|
||||
* @param shopId 店铺id
|
||||
* @param userId 用户id
|
||||
*/
|
||||
MkConsumeDiscountVO checkDiscount(Long shopId, Long userId);
|
||||
|
||||
/**
|
||||
* 修改记录状态
|
||||
|
||||
Reference in New Issue
Block a user