Commit af3b51d9 by huluobin

update

parent fb836d14
......@@ -91,7 +91,7 @@ public class OwnProduceServiceImpl extends ServiceImpl<OwnProduceMapper, OwnProd
return techniqueSku.getName() + "x" + ownProduceTechniqueSku.getQuantity();
})
.collect(Collectors.joining(",")));
this.save(ownProduce);
this.saveOrUpdate(ownProduce);
ownProduceTechniqueSkuList.forEach(ownProduceTechniqueSku -> ownProduceTechniqueSku.setOwnProduceId(ownProduce.getId()));
ownProduceTechniqueSkuService.saveBatch(ownProduceTechniqueSkuList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment