diff --git a/src/implement/new_user_red_package_with_user_records_flow_implement.go b/src/implement/new_user_red_package_with_user_records_flow_implement.go index 7e4c701..33b56c2 100644 --- a/src/implement/new_user_red_package_with_user_records_flow_implement.go +++ b/src/implement/new_user_red_package_with_user_records_flow_implement.go @@ -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) } diff --git a/src/implement/new_user_red_package_with_user_records_implement.go b/src/implement/new_user_red_package_with_user_records_implement.go index bb9df74..8f250cb 100644 --- a/src/implement/new_user_red_package_with_user_records_implement.go +++ b/src/implement/new_user_red_package_with_user_records_implement.go @@ -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) } diff --git a/src/implement/user_implement.go b/src/implement/user_implement.go index 5389175..7844045 100644 --- a/src/implement/user_implement.go +++ b/src/implement/user_implement.go @@ -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) }