提交 8c25af1c 编写于 作者: 黄勇

【I】代码优化

上级 f0a6c45b
......@@ -26,7 +26,7 @@ public class ProductService {
@GET
@Path("/products")
public List<Product> getProductList() {
return DataSet.selectList(Product.class, "", "#id asc");
return DataSet.selectListWithSort(Product.class, "#id asc");
}
@GET
......
......@@ -13,7 +13,7 @@ public class ProductServiceImpl implements ProductService {
@Override
public List<Product> getProductList() {
return DataSet.selectList(Product.class, "", "#id asc");
return DataSet.selectListWithSort(Product.class, "#id asc");
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册