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