[update]创建能辉erp 系统

master
NH-LHG 2 years ago
parent 4fdcd769ec
commit 9020e2a927

@ -75,7 +75,7 @@ public class GoodsController extends JeecgController<Goods, IGoodsService> {
public Result<String> add(@RequestBody Goods goods) {
Goods goodsInfo = goodsService.getOne(
new QueryWrapper<Goods>()
.select("max(id)")
.select("max(id) as id")
);
goods.setId(goodsInfo.getId()+1);
goodsService.save(goods);

Loading…
Cancel
Save