提交修改
This commit is contained in:
parent
ca2f935bef
commit
9d5aa6840d
@ -48,6 +48,7 @@ public interface VvProductDao extends BaseMapper<VvProductEntity> {
|
|||||||
|
|
||||||
@OrderBy(VvProductEntity.id_)
|
@OrderBy(VvProductEntity.id_)
|
||||||
List<VvProductEntity> selectVvProductByCondition(IPage page,
|
List<VvProductEntity> selectVvProductByCondition(IPage page,
|
||||||
|
@IF Long id,
|
||||||
@IF @LIKE String title,
|
@IF @LIKE String title,
|
||||||
@IF @Column(VvProductEntity.show_sale_price) @GE BigDecimal minShowSalePrice,
|
@IF @Column(VvProductEntity.show_sale_price) @GE BigDecimal minShowSalePrice,
|
||||||
@IF @Column(VvProductEntity.show_sale_price) @LE BigDecimal maxShowSalePrice,
|
@IF @Column(VvProductEntity.show_sale_price) @LE BigDecimal maxShowSalePrice,
|
||||||
|
|||||||
@ -11,6 +11,10 @@ public class VvProductRequest {
|
|||||||
private Integer pageNum = 1 ;
|
private Integer pageNum = 1 ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private Long id ;
|
||||||
|
|
||||||
|
|
||||||
private Integer pageSize = 10 ;
|
private Integer pageSize = 10 ;
|
||||||
|
|
||||||
//商品标题
|
//商品标题
|
||||||
|
|||||||
@ -24,16 +24,6 @@ public class AdminFrontManagerController {
|
|||||||
private VvProductDao vvProductDao;
|
private VvProductDao vvProductDao;
|
||||||
|
|
||||||
|
|
||||||
/***
|
|
||||||
* 列表
|
|
||||||
* http://localhost:8888/mm/front/manager/list
|
|
||||||
*/
|
|
||||||
|
|
||||||
@RequestMapping("/list")
|
|
||||||
public R list(@RequestBody FrontManagerRequest vvCategoryRequest) {
|
|
||||||
List<VvProductEntity> vvProductEntityList = vvProductDao.selectVvProductByFrontPage(1);
|
|
||||||
return R.ok().setData(vvProductEntityList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 排序
|
* 排序
|
||||||
|
|||||||
@ -68,6 +68,7 @@ public class AdminProductController {
|
|||||||
@Override
|
@Override
|
||||||
public List doSelect(IPage page) {
|
public List doSelect(IPage page) {
|
||||||
return vvProductDao.selectVvProductByCondition(page,
|
return vvProductDao.selectVvProductByCondition(page,
|
||||||
|
vvProductRequest.getId(),
|
||||||
vvProductRequest.getTitle(),
|
vvProductRequest.getTitle(),
|
||||||
vvProductRequest.getMinShowSalePrice(),
|
vvProductRequest.getMinShowSalePrice(),
|
||||||
vvProductRequest.getMaxShowSalePrice(),
|
vvProductRequest.getMaxShowSalePrice(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user