diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index a607fa7d7..d5bd5f0ce 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -785,7 +785,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { //4. 3和优惠券比较 if (ObjectUtils.isNotEmpty(activeDiscountPayVO3)) { finalAmount = activeDiscountPayVO3.getDiscounts(); - if (ObjectUtils.isNotEmpty(cardFavorableRecordVO) && finalAmount < cardFavorableRecordVO.getDiscountAmount()) { + if (ObjectUtils.isNotEmpty(cardFavorableRecordVO) && ObjectUtils.isNotEmpty(cardFavorableRecordVO.getDiscountAmount()) && finalAmount < cardFavorableRecordVO.getDiscountAmount()) { PaymentActiveVO paymentActiveVO1 = new PaymentActiveVO(); //单用优惠券优惠力度最大 paymentActiveVO1.setCardFavorableId(cardFavorableRecordVO.getId()); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/service/impl/TagCodeRecordServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/service/impl/TagCodeRecordServiceImpl.java index e16041a96..17766730f 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/service/impl/TagCodeRecordServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/tag/service/impl/TagCodeRecordServiceImpl.java @@ -17,6 +17,7 @@ import com.fuint.business.tag.mapper.TagCodeRecordMapper; import com.fuint.business.tag.entity.TagCodeRecord; import com.fuint.business.tag.service.OilTagService; import com.fuint.business.tag.service.TagCodeRecordService; +import com.fuint.business.tag.service.TagCodeService; import com.fuint.business.tag.vo.TagCodeRecordVO; import com.fuint.common.dto.AccountInfo; import com.fuint.common.service.StaffService; @@ -51,6 +52,9 @@ public class TagCodeRecordServiceImpl extends ServiceImpl