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