lanjianrong 4 years ago
parent
commit
0ff7ddd170
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dao/project_message_dao.go

+ 1 - 0
dao/project_message_dao.go

@@ -31,6 +31,7 @@ func (d *ProjectMessageDao) GetAll(projectId int, accountId int) []models.CmProj
 		Where("project_id=? and account_id=? ",
 			projectId, accountId).
 		Desc("id").
+		Limit(10, 0).
 		Find(&datalist)
 	return datalist
 }