瀏覽代碼

Merge remote-tracking branch 'origin/master'

master
huangjiajun 2 週之前
父節點
當前提交
13697d592a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/implement/egg_sign_in_implement.go

+ 2
- 2
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)
}


Loading…
取消
儲存