isnew
This commit is contained in:
@@ -34,6 +34,10 @@ public class ShopProductEntity implements Serializable {
|
||||
* 商品价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 是否为最新上市
|
||||
*/
|
||||
private Integer isNew;
|
||||
/**
|
||||
* 商品活动价格
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ShopProductServiceImpl extends ServiceImpl<ShopProductDao, ShopProd
|
||||
public PageUtils getNewBook(Map<String, Object> params) {
|
||||
IPage<ShopProductEntity> page = this.page(
|
||||
new Query<ShopProductEntity>().getPage(params),
|
||||
new QueryWrapper<ShopProductEntity>().orderByDesc("create_time")
|
||||
new QueryWrapper<ShopProductEntity>().eq("is_new",1).orderByDesc("create_time")
|
||||
);
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user