From 319a0ca57e5a35ce29efb97c4a1a52648a5ce9c6 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 28 六月 2019 12:19:52 +0800 Subject: [PATCH] 邀请队友奖励推广红包逻辑修改: 以邀请者当前活跃版本进行判断是否赠送 --- fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java index 220a62a..0052f7b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java @@ -204,7 +204,7 @@ } goodsSubClassMapper.insert(record); - + if (labelId != null) { GoodsSubClassLabelMap map = new GoodsSubClassLabelMap(); map.setGoodsSubClass(record); @@ -250,7 +250,10 @@ GoodsSubClassLabelMap map = new GoodsSubClassLabelMap(); map.setGoodsSubClass(record); map.setLabel(new GoodsSubClassLabel(labelId)); - goodsSubClassLabelService.addSubClassLabelMap(map); + try { + goodsSubClassLabelService.addSubClassLabelMap(map); + } catch (Exception e) { + } } goodsSubClassMapper.updateByPrimaryKey(record); -- Gitblit v1.8.0