From 75ad0d4380251682c70297d042938094e3679fdd Mon Sep 17 00:00:00 2001 From: xhxu Date: Wed, 15 Mar 2023 19:30:33 +0800 Subject: [PATCH] //card --- .../com/iformall/service/impl/WxCardSpendServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java index 3ce8d395e..6f85d9ad7 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java @@ -692,6 +692,14 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { record.setMerchantIdList(merchantIds); } } + if(EnumCardInfoType.CARD.equals(record.getCardType()) && record.getCardId() != null){ + WxCardInfo cardInfo = wxCardInfoService.getByCouponPasswordId(record.getCardId(), record); + if(cardInfo == null){ + record.setId(-999L); + }else{ + record.setCardId(cardInfo.getId()); + } + } } @Override