shenjiachi vor 4 Tagen
Ursprung
Commit
3729c83cf6
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

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


Laden…
Abbrechen
Speichern