From 73b6baf6af3d88cdcb0e2df7932a9bd96b0b85c5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 01 七月 2024 22:32:34 +0800
Subject: [PATCH] 月度统计出入库按类型汇总报表定时任务和手动跑任务接口

---
 models/month_stats.go |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/models/month_stats.go b/models/month_stats.go
index a40c003..f86026f 100644
--- a/models/month_stats.go
+++ b/models/month_stats.go
@@ -9,7 +9,7 @@
 )
 
 type (
-	// MonthStats 绉诲姩鍘嗗彶
+	// MonthStats 鏈堝害缁熻
 	MonthStats struct {
 		WmsModel
 		Id          int    `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
@@ -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