Commit 54b9f910 by huluobin

update

parent d7d2498c
......@@ -68,6 +68,7 @@ public class CouponsGiftServiceImpl extends ServiceImpl<CouponsGiftMapper, Coupo
case CouponsGift.BEHAVIOR_FINISH_ORDER:
Integer orderId = Integer.parseInt(attach.toString());
CouponsForConsumption couponsForConsumption = couponsForConsumptionMapper.getByOrderId(orderId);
if (couponsForConsumption != null) {
if (couponsForConsumption.getCouponId() != null) {
couponService.sendCoupon(couponsForConsumption.getCouponId(), customerId);
}
......@@ -79,6 +80,7 @@ public class CouponsGiftServiceImpl extends ServiceImpl<CouponsGiftMapper, Coupo
adminFeign.sendMessage(sendMessageRequest);
}
}
}
} catch (Exception e) {
log.error("行为触发发券失败" + e.getMessage(), e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment