From 1db189660e43415d0981ba698e57adb31e79c60f Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 13 Dec 2024 22:55:11 +0800 Subject: [PATCH] update --- src/implement/egg_sign_in_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/egg_sign_in_implement.go b/src/implement/egg_sign_in_implement.go index 645a55a..83bcfd9 100644 --- a/src/implement/egg_sign_in_implement.go +++ b/src/implement/egg_sign_in_implement.go @@ -97,7 +97,7 @@ func (e EggSignInDb) EggSignINGetOneByTimeAndUid(startAt, endAt string, uid int6 func (e EggSignInDb) EggSignInFindByTimeAndParams(startAt, endAt string, isCompleted int, params map[string]interface{}) ([]*model.EggSignIn, error) { var m []*model.EggSignIn - session := e.Db.Where("is_completed > ?", isCompleted) + session := e.Db.Where("is_completed = ?", isCompleted) if startAt != "" { session = session.And("start_time > ?", startAt) } @@ -112,7 +112,7 @@ func (e EggSignInDb) EggSignInFindByTimeAndParams(startAt, endAt string, isCompl session = session.Where(query, params["value"]) } - err := session.Find(m) + err := session.Find(&m) if err != nil { return nil, zhios_order_relate_logx.Error(err) }