fix(report):修正对于园区的最新报表期数的检测。

This commit is contained in:
徐涛
2022-08-30 10:37:11 +08:00
parent b09b3f4f2d
commit e9a122fcda
2 changed files with 5 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ func initializeNewReport(c *gin.Context) {
result.NotAccept("提供的初始化期数格式不正确。")
return
}
valid, err := service.ReportService.IsNewPeriodValid(userSession.Uid, reportPeriod)
valid, err := service.ReportService.IsNewPeriodValid(userSession.Uid, requestParkId, reportPeriod)
if err != nil {
result.Error(http.StatusInternalServerError, err.Error())
return