shenjiachi pirms 3 nedēļām
vecāks
revīzija
1db189660e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/implement/egg_sign_in_implement.go

+ 2
- 2
src/implement/egg_sign_in_implement.go Parādīt failu

@@ -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)
}


Notiek ielāde…
Atcelt
Saglabāt