|
|
@@ -910,6 +910,7 @@ func SetBasicCentralKitchenForSchool(c *gin.Context) { |
|
|
|
set.IsOpenTeacherReportMealForMonth = req.IsOpenTeacherReportMealForMonth |
|
|
|
set.IsOpenTeacherReportMealForSemester = req.IsOpenTeacherReportMealForSemester |
|
|
|
set.IsOpenLimitOrderFood = req.IsOpenLimitOrderFood |
|
|
|
set.IsOpenLimitTeacherRegister = req.IsOpenLimitTeacherRegister |
|
|
|
set.UpdateAt = now.Format("2006-01-02 15:04:05") |
|
|
|
|
|
|
|
_, err2 := centralKitchenForSchoolSetDb.CentralKitchenForSchoolSetUpdate(set.Id, set, |
|
|
@@ -930,6 +931,7 @@ func SetBasicCentralKitchenForSchool(c *gin.Context) { |
|
|
|
IsOpenTeacherReportMealForMonth: req.IsOpenTeacherReportMealForMonth, |
|
|
|
IsOpenTeacherReportMealForSemester: req.IsOpenTeacherReportMealForSemester, |
|
|
|
IsOpenLimitOrderFood: req.IsOpenLimitOrderFood, |
|
|
|
IsOpenLimitTeacherRegister: req.IsOpenLimitTeacherRegister, |
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
}) |
|
|
@@ -1028,6 +1030,7 @@ func GetBasicCentralKitchenForSchool(c *gin.Context) { |
|
|
|
IsOpenTeacherReportMealForMonth: 1, |
|
|
|
IsOpenTeacherReportMealForSemester: 1, |
|
|
|
IsOpenLimitOrderFood: 2, |
|
|
|
IsOpenLimitTeacherRegister: 2, |
|
|
|
CreateAt: time.Now().Format("2006-01-02 15:04:05"), |
|
|
|
UpdateAt: time.Now().Format("2006-01-02 15:04:05"), |
|
|
|
} |
|
|
|