支付bug
This commit is contained in:
parent
59065d2c00
commit
3e51cf1e03
@ -1086,7 +1086,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
@Override
|
||||
public void activeConsumption (PaymentActiveDTO paymentActiveDTO) throws Exception {
|
||||
//消费有礼
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
// AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
ArrayList<ActiveConsumptionVO> activeConsumptionVOS1 = new ArrayList<>();
|
||||
List<ActiveConsumptionVO> activeConsumptionVOS = oilOrderMapper.selectActiveConsumption(paymentActiveDTO.getStoreId(), paymentActiveDTO.getOrderAmount());
|
||||
if (CollectionUtils.isNotEmpty(activeConsumptionVOS)) {
|
||||
@ -1100,7 +1100,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
if (ObjectUtils.isNotEmpty(paymentActiveDTO.getUserId())){
|
||||
queryWrapper.eq(ActiveConsumptionRecord::getUserId,paymentActiveDTO.getUserId());
|
||||
}else {
|
||||
queryWrapper.eq(ActiveConsumptionRecord::getUserId,nowAccountInfo.getId());
|
||||
queryWrapper.eq(ActiveConsumptionRecord::getUserId,paymentActiveDTO.getUserId());
|
||||
}
|
||||
|
||||
List<ActiveConsumptionRecord> list = activeConsumptionRecordService.list(queryWrapper);
|
||||
@ -1112,7 +1112,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
if (ObjectUtils.isNotEmpty(paymentActiveDTO.getUserId())){
|
||||
activeConsumptionRecord.setUserId(paymentActiveDTO.getUserId());
|
||||
}else {
|
||||
activeConsumptionRecord.setUserId(nowAccountInfo.getId());
|
||||
activeConsumptionRecord.setUserId(paymentActiveDTO.getUserId());
|
||||
}
|
||||
activeConsumptionRecord.setStoreId(paymentActiveDTO.getStoreId());
|
||||
activeConsumptionRecordService.save(activeConsumptionRecord);
|
||||
|
Loading…
Reference in New Issue
Block a user