增加可用优惠券数量

This commit is contained in:
wangguocheng
2024-05-23 09:27:18 +08:00
parent 75b451cdda
commit 7c5e40cd38
6 changed files with 30 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
public interface TbSystemCouponsMapper {
@@ -19,4 +20,6 @@ public interface TbSystemCouponsMapper {
int updateByPrimaryKey(TbSystemCoupons record);
List<TbSystemCoupons> selectAll(@Param("type") String type);
int selectByAmount(@Param("orderNum") BigDecimal orderNum);
}

View File

@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.util.List;
@Component
@@ -25,4 +26,6 @@ public interface TbUserCouponsMapper {
List<TbUserCoupons> selectByUserId(@Param("userId") String userId,@Param("status") String status);
TbUserCoupons selectByOrderId(@Param("orderId") Integer orderId);
int selectByUserIdAndAmount(@Param("userId") String userId, @Param("orderNum") BigDecimal orderNum);
}