Explorar o código

Merge branch 'master' of http://192.168.1.41:3000/caipin/construction_management

caipin %!s(int64=4) %!d(string=hai) anos
pai
achega
7e71335bd1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
 }