fix: 优惠券使用报错修复
This commit is contained in:
parent
4556bf24cd
commit
ced9197698
|
|
@ -319,7 +319,7 @@ public class TbShopCouponServiceImpl extends ServiceImpl<TbShopCouponMapper, TbS
|
|||
TbActivateInRecord inRecord = inRecordMapper.selectById(outRecord.getGiveId());
|
||||
if (inRecord.getSource() != null && inRecord.getSource().equals("invited")) {
|
||||
TbShopShareRecord shareRecord = shareRecordService.getById(inRecord.getSourceActId());
|
||||
if (shareRecord.getMethod().equals("use")) {
|
||||
if (shareRecord != null && shareRecord.getMethod().equals("use")) {
|
||||
shareRecord.setStatus(3);
|
||||
shareRecordService.give(shareRecord,shareRecord.getInvitedId());
|
||||
shareRecordService.updateById(shareRecord);
|
||||
|
|
|
|||
Loading…
Reference in New Issue