Pārlūkot izejas kodu

update

add_mode
DengBiao pirms 1 gada
vecāks
revīzija
e4a09c4cb2
1 mainītis faili ar 12 papildinājumiem un 6 dzēšanām
  1. +12
    -6
      app/admin/hdl/hdl_enterprise.go

+ 12
- 6
app/admin/hdl/hdl_enterprise.go Parādīt failu

@@ -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)


Notiek ielāde…
Atcelt
Saglabāt