Commit 6eb28db7 by huluobin

update

parent d0652bd0
...@@ -51,7 +51,6 @@ public class OwnProduceServiceImpl extends ServiceImpl<OwnProduceMapper, OwnProd ...@@ -51,7 +51,6 @@ public class OwnProduceServiceImpl extends ServiceImpl<OwnProduceMapper, OwnProd
if (command.getOwnProduceId() == null) { if (command.getOwnProduceId() == null) {
ownProduce = new OwnProduce(); ownProduce = new OwnProduce();
this.save(ownProduce);
} else { } else {
ownProduce = this.getById(command.getOwnProduceId()); ownProduce = this.getById(command.getOwnProduceId());
ownProduceTechniqueSkuService.remove(new LambdaQueryWrapper<OwnProduceTechniqueSku>().eq(OwnProduceTechniqueSku::getOwnProduceId, ownProduce.getId())); ownProduceTechniqueSkuService.remove(new LambdaQueryWrapper<OwnProduceTechniqueSku>().eq(OwnProduceTechniqueSku::getOwnProduceId, ownProduce.getId()));
...@@ -91,7 +90,7 @@ public class OwnProduceServiceImpl extends ServiceImpl<OwnProduceMapper, OwnProd ...@@ -91,7 +90,7 @@ public class OwnProduceServiceImpl extends ServiceImpl<OwnProduceMapper, OwnProd
return techniqueSku.getName() + "x" + ownProduceTechniqueSku.getQuantity(); return techniqueSku.getName() + "x" + ownProduceTechniqueSku.getQuantity();
}) })
.collect(Collectors.joining(","))); .collect(Collectors.joining(",")));
this.save(ownProduce);
return ownProduce; return ownProduce;
} }
} }
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