modified one error

This commit is contained in:
yangk 2020-11-17 16:05:36 +08:00
parent c8b987813c
commit fd096226c4

View File

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