diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 787369c..4d56ca0 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -307,10 +307,10 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta //查询出所有的设备 var deviceList []*db.Device - err := db.Db.Find(&deviceList) + err := db.Db.Where("enterprise_id != 0").Find(&deviceList) if err != nil { logx.Error(err) - println("<<<>>>>Error:::", err.Error()) + println("<<<>>>>1111Error:::", err.Error()) return } var deviceListMapping map[string]model.Device