mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 01:17:15 +08:00
Merge branch 'master' of https://gitee.com/gz-yami/mall4j
This commit is contained in:
@@ -65,6 +65,7 @@ public class ProductController {
|
||||
@GetMapping("/page")
|
||||
@PreAuthorize("@pms.hasPermission('prod:prod:page')")
|
||||
public ServerResponseEntity<IPage<Product>> page(ProductParam product, PageParam<Product> page) {
|
||||
product.setProdName(StrUtil.isNotBlank(product.getProdName()) ? product.getProdName().trim() : product.getProdName());
|
||||
IPage<Product> products = productService.page(page,
|
||||
new LambdaQueryWrapper<Product>()
|
||||
.like(StrUtil.isNotBlank(product.getProdName()), Product::getProdName, product.getProdName())
|
||||
|
||||
Reference in New Issue
Block a user