商品列表 post 请求
This commit is contained in:
parent
12cc56aada
commit
52656b40b9
|
|
@ -37,7 +37,7 @@ public class TbProductController {
|
|||
|
||||
@PostMapping("/list/v2")
|
||||
@ApiOperation("查询商品列表 新")
|
||||
public ResponseEntity<Object> queryTbProductV2(TbProductQueryV2Criteria criteria, Pageable pageable){
|
||||
public ResponseEntity<Object> queryTbProductV2(@RequestBody TbProductQueryV2Criteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbProductService.queryAllV2(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,21 @@ public class TbProductStockCountQueryCriteria extends BaseQueryDto {
|
|||
|
||||
private Integer size = 10;
|
||||
|
||||
public String getProductName() {
|
||||
public void setProductId(String productId) {
|
||||
if (StringUtils.isNotBlank(productId)) {
|
||||
this.productId = productId;
|
||||
}
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
if (StringUtils.isNotBlank(productName)) {
|
||||
return productName;
|
||||
}
|
||||
return null;
|
||||
this.productName = productName;
|
||||
}
|
||||
}
|
||||
|
||||
public void setCategoryId(String categoryId) {
|
||||
if (StringUtils.isNotBlank(categoryId)) {
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue