sql语句中把查询到的对象封装到另一个对象中

String hql = "select new net.shopnc.b2b2c.vo.goods.GoodsVo(gc, sum(g.goodsStorage)) from GoodsCommon gc, Goods g where gc.goodsId = g.id";

猜你喜欢

转载自blog.csdn.net/Imobama/article/details/85015710