Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
646be7021c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go

+ 3
- 1
app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go View File

@@ -545,7 +545,9 @@ func SetBasicCentralKitchenForSchool(c *gin.Context) {
set.IsOpenTeacherReportMealForMonth = req.IsOpenTeacherReportMealForMonth set.IsOpenTeacherReportMealForMonth = req.IsOpenTeacherReportMealForMonth
set.IsOpenTeacherReportMealForSemester = req.IsOpenTeacherReportMealForSemester set.IsOpenTeacherReportMealForSemester = req.IsOpenTeacherReportMealForSemester
set.UpdateAt = now.Format("2006-01-02 15:04:05") set.UpdateAt = now.Format("2006-01-02 15:04:05")
_, err2 := centralKitchenForSchoolSetDb.CentralKitchenForSchoolSetUpdate(set.Id, set, "is_open_teacher_report_meal", "is_open_teacher_report_meal_for_day", "is_open_teacher_report_meal_for_month", "is_open_teacher_report_meal_for_semester", "update_at")
_, err2 := centralKitchenForSchoolSetDb.CentralKitchenForSchoolSetUpdate(set.Id, set,
"is_open_report_meal_for_day", "is_open_report_meal_for_month", "is_open_report_meal_for_semester",
"is_open_teacher_report_meal", "is_open_teacher_report_meal_for_day", "is_open_teacher_report_meal_for_month", "is_open_teacher_report_meal_for_semester", "update_at")
if err2 != nil { if err2 != nil {
e.OutErr(c, e.ERR_DB_ORM, err2.Error()) e.OutErr(c, e.ERR_DB_ORM, err2.Error())
return return


Loading…
Cancel
Save