修改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;
//可用油品Id
private Integer oilId;
//店铺id
private Integer storeId;
//会员等级
private Integer mtUserLevel;
}

View File

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