修改bug

This commit is contained in:
齐天大圣 2024-01-04 13:32:09 +08:00
parent 0cda9f462d
commit d1566ef1ce
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,8 @@ public class PaymentActiveDTO implements Serializable {
private double amount; private double amount;
//可用油品Id //可用油品Id
private Integer oilId; private Integer oilId;
//店铺id
private Integer storeId;
//会员等级 //会员等级
private Integer mtUserLevel; private Integer mtUserLevel;
} }

View File

@ -393,8 +393,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
@Override @Override
public PaymentActiveVO paymentActive(PaymentActiveDTO paymentActiveDTO) { public PaymentActiveVO paymentActive(PaymentActiveDTO paymentActiveDTO) {
PaymentActiveVO paymentActiveVO = new PaymentActiveVO(); PaymentActiveVO paymentActiveVO = new PaymentActiveVO();
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); Integer storeId = paymentActiveDTO.getStoreId();
Integer storeId = nowAccountInfo.getStoreId();
double amount = 0.0; double amount = 0.0;
//折扣 //折扣
List<ActiveDiscountPayVO> activeDiscountVOList = oilOrderMapper.selectActiveDiscount(storeId,paymentActiveDTO.getAmount()); List<ActiveDiscountPayVO> activeDiscountVOList = oilOrderMapper.selectActiveDiscount(storeId,paymentActiveDTO.getAmount());