From 221108b0e0416968ca8417513ebf65c8b5109662 Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期三, 26 六月 2024 11:40:47 +0800
Subject: [PATCH] 库存盘点应用按钮记录创建人,创建时间,应用时间、应用人员等信息;根据条形码查询产品详情;新增编辑产品增加条形码字段->添加条形码被使用验证
---
models/month_stats.go | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/models/month_stats.go b/models/month_stats.go
index a40c003..64e1111 100644
--- a/models/month_stats.go
+++ b/models/month_stats.go
@@ -347,3 +347,12 @@
}
return m
}
+
+func (slf *MonthStatsSearch) Count() (int64, error) {
+ var (
+ total int64
+ db = slf.build()
+ )
+ err := db.Count(&total).Error
+ return total, err
+}
--
Gitblit v1.8.0