This commit is contained in:
cun-nan 2024-01-22 09:22:50 +08:00
parent b2c17babe9
commit 1d09b0b4c2
2 changed files with 4 additions and 4 deletions

View File

@ -456,16 +456,16 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
List<ActiveDiscountPayVO> activeFuletVOLists = oilOrderMapper.selectActiveFules(storeId,paymentActiveDTO.getAmount(),paymentActiveDTO.getOilId(),paymentActiveDTO.getMtUserLevel());
activeFuletVOList.addAll(activeFuletVOLists);
//优惠券
<<<<<<< HEAD
//<<<<<<< HEAD
//paymentActiveDTO.setUserId(userId);
paymentActiveDTO.setUserId(117);
=======
//=======
if (ObjectUtils.isNotEmpty(paymentActiveDTO.getUserId())){
userId = paymentActiveDTO.getUserId();
}
paymentActiveDTO.setUserId(userId);
>>>>>>> origin/master
//>>>>>>> origin/master
List<CardFavorableRecordVO> canUserCardFavorableList = cardFavorableRecordMapper.getCanUserCardFavorableList(paymentActiveDTO);
//如果是储值卡付款直接过滤掉
if(paymentActiveDTO.getType().equals("0")){

View File

@ -240,7 +240,7 @@ public class CardFavorableRecordServiceImpl extends ServiceImpl<CardFavorableRec
boolean flag = false;
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
Integer userId = null;
if (StringUtils.isNotEmpty(paymentActiveVO.getUserId().toString())){
if (paymentActiveVO.getUserId()!=null){
userId = paymentActiveVO.getUserId();
}else {
userId = nowAccountInfo.getId();