Browse Source

fix: update misuse session

master
shenjiachi 1 week ago
parent
commit
67d240c3bc
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/implement/new_user_red_package_with_user_records_flow_implement.go
  2. +1
    -1
      src/implement/new_user_red_package_with_user_records_implement.go
  3. +1
    -1
      src/implement/user_implement.go

+ 1
- 1
src/implement/new_user_red_package_with_user_records_flow_implement.go View File

@@ -17,7 +17,7 @@ type NewUserRedPackageWithUserRecordsFlowDb struct {

func (n NewUserRedPackageWithUserRecordsFlowDb) NewUserRedPackageWithUserRecordsFlowFindAndCount(page, limit int, uid int64, startAt, endAt string) (*[]model.NewUserRedPackageWithUserRecordsFlow, int64, error) {
var m []model.NewUserRedPackageWithUserRecordsFlow
session := n.Db.NewSession()
session := n.Db.Where("")
if uid != 0 {
session.Where(" uid = ? ", uid)
}


+ 1
- 1
src/implement/new_user_red_package_with_user_records_implement.go View File

@@ -18,7 +18,7 @@ type NewUserRedPackageWithUserRecordsDb struct {

func (n NewUserRedPackageWithUserRecordsDb) NewUserRedPackageWithUserRecordsFind(page, limit int, uid int64, startAt, endAt string) (*[]model.NewUserRedPackageWithUserRecords, int64, error) {
var m []model.NewUserRedPackageWithUserRecords
session := n.Db.NewSession()
session := n.Db.Where("")
if uid != 0 {
session.Where(" uid = ? ", uid)
}


+ 1
- 1
src/implement/user_implement.go View File

@@ -130,7 +130,7 @@ func (u UserDb) UserUpdateBySession(session *xorm.Session, id interface{}, user

func (u UserDb) UserFindAndCount(uid int64, phone string, nickname string, level int, page, limit int) (*[]model.User, int64, error) {
var m []model.User
session := u.Db.NewSession()
session := u.Db.Where("")
if uid != 0 {
session = session.Where("uid=?", uid)
}


Loading…
Cancel
Save