mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +08:00
modified one error
This commit is contained in:
parent
c8b987813c
commit
fd096226c4
@ -27,9 +27,7 @@ func (a *AppConfigGroupDaoImpl) AddModel(mo model.Interface) error {
|
||||
//UpdateModel -
|
||||
func (a *AppConfigGroupDaoImpl) UpdateModel(mo model.Interface) error {
|
||||
updateReq := mo.(*model.ApplicationConfigGroup)
|
||||
return a.DB.Model(&model.ApplicationConfigGroup{}).
|
||||
Where("app_id = ? AND config_group_name = ?", updateReq.AppID, updateReq.ConfigGroupName.
|
||||
Update("enable", updateReq.Enable).Error
|
||||
return a.DB.Model(&model.ApplicationConfigGroup{}).Where("app_id = ? AND config_group_name = ?", updateReq.AppID, updateReq.ConfigGroupName).Update("enable", updateReq.Enable).Error
|
||||
}
|
||||
|
||||
// GetConfigGroupByID -
|
||||
|
Loading…
Reference in New Issue
Block a user