From 68200e7e7ac1cfd021b8b37a92b7ab8eb11c759e Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期五, 03 十一月 2023 11:36:46 +0800 Subject: [PATCH] 上架规则列表搜索增加产品和产品类别 --- controllers/location_product_amount.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/location_product_amount.go b/controllers/location_product_amount.go index 3f33ff3..bcf0abb 100644 --- a/controllers/location_product_amount.go +++ b/controllers/location_product_amount.go @@ -60,7 +60,7 @@ if params.Page*params.PageSize > 0 { search.Orm = search.Orm.Offset((params.Page - 1) * params.PageSize).Limit(params.PageSize) } - if err := search.Orm.Order("wms_location_product_amount.updated_at desc").Find(&records).Error; err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { + if err := search.Orm.Order("wms_location_product_amount.updated_at desc").Find(&records).Error; err != nil { util.ResponseFormat(c, code.RequestError, fmt.Errorf("find count err: %v", err)) return } -- Gitblit v1.8.0