商品同步bug
This commit is contained in:
parent
ad803c859e
commit
fda1d5f9a5
|
|
@ -245,6 +245,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||||
entity.setIsDel(DeleteEnum.NORMAL.value());
|
entity.setIsDel(DeleteEnum.NORMAL.value());
|
||||||
entity.setShopId(shopId);
|
entity.setShopId(shopId);
|
||||||
super.save(entity);
|
super.save(entity);
|
||||||
|
dto.setId(entity.getId());
|
||||||
List<ProdSkuDTO> skuList = dto.getSkuList();
|
List<ProdSkuDTO> skuList = dto.getSkuList();
|
||||||
if (CollUtil.isNotEmpty(skuList)) {
|
if (CollUtil.isNotEmpty(skuList)) {
|
||||||
List<ProdSku> prodSkuList = new ArrayList<>();
|
List<ProdSku> prodSkuList = new ArrayList<>();
|
||||||
|
|
@ -278,7 +279,6 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||||
flow.setInOutType(InOutTypeEnum.IN.value());
|
flow.setInOutType(InOutTypeEnum.IN.value());
|
||||||
flow.setInOutItem(InOutItemEnum.WIN_IN.value());
|
flow.setInOutItem(InOutItemEnum.WIN_IN.value());
|
||||||
productStockFlowService.saveFlow(flow);
|
productStockFlowService.saveFlow(flow);
|
||||||
dto.setId(entity.getId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue