Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b0477d02ca
|
|
@ -49,7 +49,12 @@ public class GoodsServiceImpl implements GoodsService {
|
||||||
// 给各组件插入商品主体id
|
// 给各组件插入商品主体id
|
||||||
goods.getGoodsAreaList().forEach(goodsArea -> {goodsArea.setGoodsId(goods.getGoodsId());});
|
goods.getGoodsAreaList().forEach(goodsArea -> {goodsArea.setGoodsId(goods.getGoodsId());});
|
||||||
goods.getGoodsImgsList().forEach(goodsImg -> {goodsImg.setGoodsId(goods.getGoodsId());});
|
goods.getGoodsImgsList().forEach(goodsImg -> {goodsImg.setGoodsId(goods.getGoodsId());});
|
||||||
goods.getGoodsStandardList().forEach(goodsStandard -> {goodsStandard.setGoodsId(goods.getGoodsId());});
|
goods.getGoodsStandardList().forEach(goodsStandard -> {
|
||||||
|
goodsStandard.setGoodsId(goods.getGoodsId());
|
||||||
|
if(goodsStandard.getExtMoney() == null){
|
||||||
|
goodsStandard.setExtMoney(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 批量插入各组件
|
// 批量插入各组件
|
||||||
goodsAreaService.batchInsert(goods.getGoodsAreaList());
|
goodsAreaService.batchInsert(goods.getGoodsAreaList());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue