Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
810a276a78
1 changed files with 28 additions and 17 deletions
  1. +28
    -17
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 28
- 17
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go View File

@@ -976,9 +976,9 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch
return errors.New("未查询到id:【" + utils.IntToStr(v) + "】公司对应记录")
}

for _, date := range req.Dates {
//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {
//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1052,8 +1052,9 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch
}
}
}

if req.IsLunch == 1 {
}
if req.IsLunch == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1131,8 +1132,9 @@ func CentralKitchenForSchoolBatchAskForLeaveBySchool(req md.CentralKitchenForSch
}
}
}

if req.IsDinner == 1 {
}
if req.IsDinner == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1250,9 +1252,10 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho
//无请假学生
continue
}
for _, date := range req.Dates {
//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {

//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1327,8 +1330,10 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho
}
}
}
}

if req.IsLunch == 1 {
if req.IsLunch == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1402,8 +1407,10 @@ func CentralKitchenForSchoolBatchAskForLeaveByGrade(req md.CentralKitchenForScho
}
}
}
}

if req.IsDinner == 1 {
if req.IsDinner == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1511,9 +1518,9 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho
continue
}

for _, date := range req.Dates {
//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {
//2、查询出所有 `central_kitchen_for_school_user_with_day` 记录
if req.IsBreakfast == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1587,8 +1594,10 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho
}
}
}
}

if req.IsLunch == 1 {
if req.IsLunch == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
@@ -1662,8 +1671,10 @@ func CentralKitchenForSchoolBatchAskForLeaveByClass(req md.CentralKitchenForScho
}
}
}
}

if req.IsDinner == 1 {
if req.IsDinner == 1 {
for _, date := range req.Dates {
var mm []model.CentralKitchenForSchoolUserWithDay
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)


Loading…
Cancel
Save