enhance(report):创建新的报表时可以返回新创建的报表ID。

This commit is contained in:
徐涛
2022-08-23 21:37:52 +08:00
parent b6b69896cb
commit 96c8699d7f
2 changed files with 12 additions and 12 deletions

View File

@@ -95,12 +95,12 @@ func initializeNewReport(c *gin.Context) {
result.NotAccept("只能初始化已发布报表下一个月份的新报表。")
return
}
err = service.ReportService.InitializeNewReport(requestParkId, reportPeriod)
newId, err := service.ReportService.InitializeNewReport(requestParkId, reportPeriod)
if err != nil {
result.Error(http.StatusInternalServerError, err.Error())
return
}
result.Created("新一期报表初始化成功。")
result.Created("新一期报表初始化成功。", gin.H{"reportId": newId})
}
func fetchReportStepStates(c *gin.Context) {