新增了病例详情1
This commit is contained in:
parent
60acb9aaaa
commit
f1a5a71ea7
@ -132,7 +132,7 @@ func (b *Project) GetProject(c *gin.Context) {
|
||||
|
||||
// 获取病例详情
|
||||
projectDao := dao.ProjectDao{}
|
||||
project, err := projectDao.GetProjectById(projectId)
|
||||
project, err := projectDao.GetProjectPreloadById(projectId)
|
||||
if err != nil {
|
||||
responses.FailWithMessage(err.Error(), c)
|
||||
return
|
||||
@ -140,6 +140,9 @@ func (b *Project) GetProject(c *gin.Context) {
|
||||
|
||||
g := dto.GetProjectDto(project)
|
||||
|
||||
// 加载关联病例数量
|
||||
g.LoadCaseCount(project.Case)
|
||||
|
||||
// 获取最近7天的病例
|
||||
now := time.Now()
|
||||
t := now.AddDate(0, 0, -7)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user