zqbao 9 months ago
parent
commit
ff8492f348
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/sys_message_report.go

+ 1 - 1
models/sys_message_report.go

@@ -26,7 +26,7 @@ func (s *SysMessageReport) Update(cols []string) (err error) {
 
 func UpdateReadSysMessageReportByUserId(userId int) (err error) {
 	o := orm.NewOrm()
-	sql := `UPDATE sys_message_report SET is_read=true WHERE receive_sys_user_id =?`
+	sql := `UPDATE sys_message_report SET is_read=1 WHERE receive_sys_user_id=?`
 	_, err = o.Raw(sql, userId).Exec()
 	return
 }