From e4a09c4cb2c2cc85a78930722305b4c9658846af Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 29 Aug 2023 21:51:19 +0800 Subject: [PATCH] update --- app/admin/hdl/hdl_enterprise.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/admin/hdl/hdl_enterprise.go b/app/admin/hdl/hdl_enterprise.go index 94c6e6a..f9cb3c6 100644 --- a/app/admin/hdl/hdl_enterprise.go +++ b/app/admin/hdl/hdl_enterprise.go @@ -173,12 +173,18 @@ func EnterpriseAdd(c *gin.Context) { centralKitchenForSchoolWithSpec := db.CentralKitchenForSchoolWithSpec{} centralKitchenForSchoolWithSpec.Set(enterpriseId) centralKitchenForSchoolWithSpec.CentralKitchenForSchoolWithSpecInsert(&model.CentralKitchenForSchoolWithSpec{ - EnterpriseId: enterpriseId, - IsOpenBreakfast: 1, - IsOpenLunch: 1, - IsOpenDinner: 1, - CreateAt: now.Format("2006-01-02 15:04:05"), - UpdateAt: now.Format("2006-01-02 15:04:05"), + EnterpriseId: enterpriseId, + IsOpenBreakfast: 1, + IsOpenLunch: 1, + IsOpenDinner: 1, + BreakfastUnitPrice: "0.00", + LunchUnitPrice: "0.00", + DinnerUnitPrice: "0.00", + BreakfastUnitPriceForTeacher: "0.00", + LunchUnitPriceForTeacher: "0.00", + DinnerUnitPriceForTeacher: "0.00", + CreateAt: now.Format("2006-01-02 15:04:05"), + UpdateAt: now.Format("2006-01-02 15:04:05"), }) } e.OutSuc(c, "success", nil)