diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopCouponServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopCouponServiceImpl.java index 179de4d1..2af3a8be 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopCouponServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopCouponServiceImpl.java @@ -317,7 +317,7 @@ public class TbShopCouponServiceImpl extends ServiceImpl param) { for (TbActivateOutRecord outRecord : param) { TbActivateInRecord inRecord = inRecordMapper.selectById(outRecord.getGiveId()); - if (inRecord.getSource().equals("invited")) { + if (inRecord.getSource() != null && inRecord.getSource().equals("invited")) { TbShopShareRecord shareRecord = shareRecordService.getById(inRecord.getSourceActId()); if (shareRecord.getMethod().equals("use")) { shareRecord.setStatus(3);