@ -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);