Browse Source

update

master
dengbiao 1 month ago
parent
commit
fd6be61bb7
1 changed files with 33 additions and 13 deletions
  1. +33
    -13
      app/admin/svc/svc_data_statisstics.go

+ 33
- 13
app/admin/svc/svc_data_statisstics.go View File

@@ -2629,13 +2629,23 @@ func CentralKitchenForSchoolDataStatisticsContrast(req md.CentralKitchenForSchoo
if list[v.Enterprise.Name] == nil { if list[v.Enterprise.Name] == nil {
list[v.Enterprise.Name] = make(map[string]map[string]map[string]string) list[v.Enterprise.Name] = make(map[string]map[string]map[string]string)
} }
if list[v.Enterprise.Name][v.Grade.Name] == nil {
list[v.Enterprise.Name][v.Grade.Name] = make(map[string]map[string]string)
}
if list[v.Enterprise.Name][v.Grade.Name][v.Class.Name] == nil {
list[v.Enterprise.Name][v.Grade.Name][v.Class.Name] = make(map[string]string)
if v.UserIdentity.Identity == enum.UserIdentityForCentralKitchenForTeacher {
if list[v.Enterprise.Name]["教职工"] == nil {
list[v.Enterprise.Name]["教职工"] = make(map[string]map[string]string)
}
if list[v.Enterprise.Name]["教职工"]["教职工"] == nil {
list[v.Enterprise.Name]["教职工"]["教职工"] = make(map[string]string)
}
list[v.Enterprise.Name]["教职工"]["教职工"][v.UserIdentity.Name] = v.User.Phone
} else {
if list[v.Enterprise.Name][v.Grade.Name] == nil {
list[v.Enterprise.Name][v.Grade.Name] = make(map[string]map[string]string)
}
if list[v.Enterprise.Name][v.Grade.Name][v.Class.Name] == nil {
list[v.Enterprise.Name][v.Grade.Name][v.Class.Name] = make(map[string]string)
}
list[v.Enterprise.Name][v.Grade.Name][v.Class.Name][v.UserIdentity.Name] = v.User.Phone
} }
list[v.Enterprise.Name][v.Grade.Name][v.Class.Name][v.UserIdentity.Name] = v.User.Phone
} }


var list1 = map[string]map[string]map[string]map[string]string{} var list1 = map[string]map[string]map[string]map[string]string{}
@@ -2643,13 +2653,23 @@ func CentralKitchenForSchoolDataStatisticsContrast(req md.CentralKitchenForSchoo
if list1[v.Enterprise.Name] == nil { if list1[v.Enterprise.Name] == nil {
list1[v.Enterprise.Name] = make(map[string]map[string]map[string]string) list1[v.Enterprise.Name] = make(map[string]map[string]map[string]string)
} }
if list1[v.Enterprise.Name][v.Grade.Name] == nil {
list1[v.Enterprise.Name][v.Grade.Name] = make(map[string]map[string]string)
}
if list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name] == nil {
list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name] = make(map[string]string)
if v.UserIdentity.Identity == enum.UserIdentityForCentralKitchenForTeacher {
if list1[v.Enterprise.Name]["教职工"] == nil {
list1[v.Enterprise.Name]["教职工"] = make(map[string]map[string]string)
}
if list1[v.Enterprise.Name]["教职工"]["教职工"] == nil {
list1[v.Enterprise.Name]["教职工"]["教职工"] = make(map[string]string)
}
list1[v.Enterprise.Name]["教职工"]["教职工"][v.UserIdentity.Name] = v.User.Phone
} else {
if list1[v.Enterprise.Name][v.Grade.Name] == nil {
list1[v.Enterprise.Name][v.Grade.Name] = make(map[string]map[string]string)
}
if list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name] == nil {
list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name] = make(map[string]string)
}
list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name][v.UserIdentity.Name] = v.User.Phone
} }
list1[v.Enterprise.Name][v.Grade.Name][v.Class.Name][v.UserIdentity.Name] = v.User.Phone
} }


var xlsFileName, xlsDownloadPath []string var xlsFileName, xlsDownloadPath []string
@@ -2696,7 +2716,7 @@ func CentralKitchenForSchoolDataStatisticsContrast(req md.CentralKitchenForSchoo
continue continue
} }
for k3, v3 := range v2 { for k3, v3 := range v2 {
if class.Name != k3 {
if k3 != "教职工" && class.Name != k3 {
continue continue
} }
xlsx.NewSheet(k3) xlsx.NewSheet(k3)


Loading…
Cancel
Save