Browse Source

Merge remote-tracking branch 'origin/master'

master
huangjiajun 2 weeks ago
parent
commit
13697d592a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/implement/egg_sign_in_implement.go

+ 2
- 2
src/implement/egg_sign_in_implement.go View File

@@ -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) { func (e EggSignInDb) EggSignInFindByTimeAndParams(startAt, endAt string, isCompleted int, params map[string]interface{}) ([]*model.EggSignIn, error) {
var m []*model.EggSignIn var m []*model.EggSignIn
session := e.Db.Where("is_completed > ?", isCompleted)
session := e.Db.Where("is_completed = ?", isCompleted)
if startAt != "" { if startAt != "" {
session = session.And("start_time > ?", 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"]) session = session.Where(query, params["value"])
} }


err := session.Find(m)
err := session.Find(&m)
if err != nil { if err != nil {
return nil, zhios_order_relate_logx.Error(err) return nil, zhios_order_relate_logx.Error(err)
} }


Loading…
Cancel
Save