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