diff --git a/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go b/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go index 81488aa..c4e68f1 100644 --- a/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go +++ b/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go @@ -1193,7 +1193,7 @@ func CentralKitchenForSchoolBatchAskForLeave(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - var datesMap map[string]string + var datesMap = map[string]string{} for _, v := range req.Dates { datesMap[v] = v } @@ -1219,7 +1219,7 @@ func CentralKitchenForSchoolBatchAskForLeave(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - var datesMap map[string]string + var datesMap = map[string]string{} for _, v := range req.Dates { datesMap[v] = v } @@ -1245,7 +1245,7 @@ func CentralKitchenForSchoolBatchAskForLeave(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - var datesMap map[string]string + var datesMap = map[string]string{} for _, v := range req.Dates { datesMap[v] = v }