fix(#10):修复创建报表错误,但查出列出园区bug

This commit is contained in:
2023-08-09 10:48:33 +08:00
parent 00cf35ec2a
commit dd6becc994
7 changed files with 61 additions and 30 deletions

View File

@@ -10,6 +10,7 @@ import (
"electricity_bill_calc/tools"
"electricity_bill_calc/types"
"electricity_bill_calc/vo"
"log"
"github.com/gofiber/fiber/v2"
"github.com/jinzhu/copier"
@@ -97,6 +98,7 @@ func initNewReportCalculateTask(c *fiber.Ctx) error {
return err
}
ok, err := service.ReportService.CreateNewReport(&form)
log.Println("??????????????????????kkkkkkkkkkkkkkkkkkkkkkkkk", ok)
if err != nil {
reportLog.Error("无法创建核算报表", zap.Error(err))
return result.Error(fiber.StatusInternalServerError, "无法创建核算报表。")