新客立减

This commit is contained in:
张松
2025-09-25 17:55:32 +08:00
parent 818751740d
commit 930ca57ddf
2 changed files with 13 additions and 12 deletions

View File

@@ -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);
/**
* 修改记录状态