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