商品单个查询 ,商品单个修改添加 ,增加商品 商家名称和地址

1 个父辈 7649da48
...@@ -9,6 +9,8 @@ public class Goods { ...@@ -9,6 +9,8 @@ public class Goods {
@Id @Id
private Integer id; private Integer id;
private Integer sellerId; private Integer sellerId;
private String sellerName;
private String sellerAddress;
private String name; private String name;
private String description; private String description;
private BigDecimal primePrice; private BigDecimal primePrice;
...@@ -260,5 +262,22 @@ public class Goods { ...@@ -260,5 +262,22 @@ public class Goods {
public void setDeleted(Boolean deleted) { public void setDeleted(Boolean deleted) {
this.deleted = deleted; this.deleted = deleted;
} }
public String getSellerName() {
return sellerName;
}
public void setSellerName(String sellerName) {
this.sellerName = sellerName;
}
public String getSellerAddress() {
return sellerAddress;
}
public void setSellerAddress(String sellerAddress) {
this.sellerAddress = sellerAddress;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -54,7 +54,7 @@ public class GoodsService { ...@@ -54,7 +54,7 @@ public class GoodsService {
} }
c.andEqualTo("deleted", false); c.andEqualTo("deleted", false);
RowBounds row = new RowBounds(page, size); RowBounds row = new RowBounds(page-1, size);
List<Goods> list = goodsDao.selectByExampleAndRowBounds(ex, row); List<Goods> list = goodsDao.selectByExampleAndRowBounds(ex, row);
int count = goodsDao.selectCountByExample(ex); int count = goodsDao.selectCountByExample(ex);
PageResults<Goods> pageResults = new PageResults<>(); PageResults<Goods> pageResults = new PageResults<>();
......
Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!