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 }