From e7b0a977f84edaabb1b8dc50e8603f6ea1b975a3 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 29 Sep 2021 16:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/attachment.go | 1 + models/user_business_analysis.go | 1 + 2 files changed, 2 insertions(+) diff --git a/models/attachment.go b/models/attachment.go index 418d7c881..35292b0bd 100755 --- a/models/attachment.go +++ b/models/attachment.go @@ -284,6 +284,7 @@ func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) { */ } } + countData() return int(cnt), nil } diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 80008da77..84288bdff 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -60,6 +60,7 @@ type UserBusinessAnalysis struct { } func countData() { + log.Info("start to count data") sess := x.NewSession() defer sess.Close() sess.Select("`user`.*").Table("user")