From f72fb9ca31fbf27b4abbc0156e60ea162f58df81 Mon Sep 17 00:00:00 2001 From: dsmzx <dsmzx@123.com> Date: 星期四, 13 六月 2024 15:30:50 +0800 Subject: [PATCH] 出入库调拨产品明细增加备注字段(同步产品的备注字段) --- models/location_product_amount.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/models/location_product_amount.go b/models/location_product_amount.go index f1f2dc3..efa1205 100644 --- a/models/location_product_amount.go +++ b/models/location_product_amount.go @@ -253,6 +253,9 @@ db = slf.build() ) + if slf.PageNum*slf.PageSize > 0 { + db = db.Offset((slf.PageNum - 1) * slf.PageSize).Limit(slf.PageSize) + } if err := db.Find(&records).Error; err != nil { return records, fmt.Errorf("find records err: %v", err) } -- Gitblit v1.8.0