forked from free-lancers/electricity_bill_calc_service
fix(report):修正对于园区的最新报表期数的检测。
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user