forked from free-lancers/electricity_bill_calc_service
fix(#10):修复创建报表错误,但查出列出园区bug
This commit is contained in:
@@ -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, "无法创建核算报表。")
|
||||
|
Reference in New Issue
Block a user