lanjianrong 4 年之前
父节点
当前提交
0ff7ddd170
共有 1 个文件被更改,包括 1 次插入0 次删除
  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
 }