Browse Source

update

master
shenjiachi 1 week ago
parent
commit
3729c83cf6
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/implement/egg_energy_basic_setting_implement.go
  2. +1
    -1
      src/implement/new_user_red_package_implement.go
  3. +1
    -1
      src/implement/user_implement.go

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

@@ -22,7 +22,7 @@ func (e EggEnergyBasicSettingDb) EggEnergyBasicSettingUpdate(session *xorm.Sessi
err error
)
if forceColums != nil {
affected, err = session.Where("id=?", id).Cols(forceColums...).Update(EggEnergyBasicSetting)
affected, err = session.Where("id=?", id).MustCols(forceColums...).Update(EggEnergyBasicSetting)
} else {
affected, err = session.Where("id=?", id).Update(EggEnergyBasicSetting)
}


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

@@ -37,7 +37,7 @@ func (n NewUserRedPackageDb) NewUserRedPackageUpdate(id interface{}, newUserRedP
err error
)
if forceColums != nil {
affected, err = n.Db.Where("id=?", id).Cols(forceColums...).Update(newUserRedPackage)
affected, err = n.Db.Where("id=?", id).MustCols(forceColums...).Update(newUserRedPackage)
} else {
affected, err = n.Db.Where("id=?", id).Update(newUserRedPackage)
}


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

@@ -50,7 +50,7 @@ func (u UserDb) UserUpdate(id interface{}, user *model.User, forceColumns ...str
err error
)
if forceColumns != nil {
affected, err = u.Db.Where("id=?", id).Cols(forceColumns...).Update(user)
affected, err = u.Db.Where("id=?", id).MustCols(forceColumns...).Update(user)
} else {
affected, err = u.Db.Where("id=?", id).Update(user)
}


Loading…
Cancel
Save