Merge remote-tracking branch 'origin/dev2' into dev2
# Conflicts: # logs/cloud-market/error.log # logs/cloud-market/info.logdev2
commit
133032ea34
|
@ -33,8 +33,13 @@ public class ProductListReq {
|
||||||
/**
|
/**
|
||||||
* 产品名称
|
* 产品名称
|
||||||
*/
|
*/
|
||||||
@Schema(description = "产品名称",defaultValue = "根据身份证查询",type = "String")
|
@Schema(description = "产品名称",defaultValue = "根据产品名称查询",type = "String")
|
||||||
private String productName;
|
private String productName;
|
||||||
|
/**
|
||||||
|
* 产品类型
|
||||||
|
*/
|
||||||
|
@Schema(description = "产品类型",defaultValue = "金融科技",type = "String")
|
||||||
|
private String productType;
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -42,6 +42,8 @@ public class ProductApiServiceImpl extends ServiceImpl<ProductApiMapper, Product
|
||||||
Product::getProductName,productListReq.getProductName());
|
Product::getProductName,productListReq.getProductName());
|
||||||
queryWrapper.eq(StringUtils.isNotEmpty(productListReq.getProductState()),
|
queryWrapper.eq(StringUtils.isNotEmpty(productListReq.getProductState()),
|
||||||
Product::getProductState,productListReq.getProductState());
|
Product::getProductState,productListReq.getProductState());
|
||||||
|
queryWrapper.eq(StringUtils.isNotEmpty(productListReq.getProductType()),
|
||||||
|
Product::getProductType,productListReq.getProductType());
|
||||||
long count = this.count(queryWrapper);
|
long count = this.count(queryWrapper);
|
||||||
queryWrapper.orderByDesc(Product::getProductSales);
|
queryWrapper.orderByDesc(Product::getProductSales);
|
||||||
queryWrapper.last("LIMIT " + ((pageNum - 1) * pageSize) + ", " + pageSize);
|
queryWrapper.last("LIMIT " + ((pageNum - 1) * pageSize) + ", " + pageSize);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue