|
@@ -71,7 +71,7 @@ func (m *SpeechRecognitionTag) Update(cols []string) (err error) {
|
|
|
func (m *SpeechRecognitionTag) Del() (err error) {
|
|
|
o := global.DbMap[utils.DbNameMaster]
|
|
|
sql := fmt.Sprintf(`DELETE FROM %s WHERE %s = ? LIMIT 1`, m.TableName(), m.PrimaryId())
|
|
|
- err = o.Raw(sql, m.SpeechRecognitionTagId).Error
|
|
|
+ err = o.Exec(sql, m.SpeechRecognitionTagId).Error
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -81,7 +81,7 @@ func (m *SpeechRecognitionTag) MultiDel(menuIds []int) (err error) {
|
|
|
}
|
|
|
o := global.DbMap[utils.DbNameMaster]
|
|
|
sql := fmt.Sprintf(`DELETE FROM %s WHERE %s IN (%s)`, m.TableName(), m.PrimaryId(), utils.GetOrmInReplace(len(menuIds)))
|
|
|
- err = o.Raw(sql, menuIds).Error
|
|
|
+ err = o.Exec(sql, menuIds).Error
|
|
|
return
|
|
|
}
|
|
|
|