|
@@ -108,15 +108,18 @@ public class GoodsDonCategoryServiceImpl extends ServiceImpl<GoodsDonCategoryMap
|
|
|
categoryList.remove(data.getCategory());
|
|
categoryList.remove(data.getCategory());
|
|
|
ic.set(false);
|
|
ic.set(false);
|
|
|
}
|
|
}
|
|
|
- if (Constant.THIRD_CATEGORY == data.getCategory()) {
|
|
|
|
|
- isThirdGoods.set(true);
|
|
|
|
|
- }
|
|
|
|
|
});
|
|
});
|
|
|
if (ic.get() && categoryList.size() == goodsDonCategoryRelates.size()) {
|
|
if (ic.get() && categoryList.size() == goodsDonCategoryRelates.size()) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
saveBatchRelate(goodsId, categoryList);
|
|
saveBatchRelate(goodsId, categoryList);
|
|
|
|
|
+
|
|
|
//第三方商品信息更新
|
|
//第三方商品信息更新
|
|
|
|
|
+ categoryList.forEach(ct->{
|
|
|
|
|
+ if (Constant.THIRD_CATEGORY == ct) {
|
|
|
|
|
+ isThirdGoods.set(true);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
goodsDonMapper.update(null, Wrappers.lambdaUpdate(GoodsDon.class)
|
|
goodsDonMapper.update(null, Wrappers.lambdaUpdate(GoodsDon.class)
|
|
|
.set(GoodsDon::getIsThirdGoods, isThirdGoods.get())
|
|
.set(GoodsDon::getIsThirdGoods, isThirdGoods.get())
|
|
|
.eq(GoodsDon::getId, goodsId));
|
|
.eq(GoodsDon::getId, goodsId));
|