Browse Source

update

tmp
DengBiao 8 months ago
parent
commit
852a83ab3c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/admin/svc/svc_data_statisstics.go

+ 2
- 2
app/admin/svc/svc_data_statisstics.go View File

@@ -355,7 +355,7 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta


//查询出所有的设备 //查询出所有的设备
var deviceList []*model.Device var deviceList []*model.Device
err := db.Db.Where("enterprise_id != 0").Asc("id").Find(&deviceList)
err := db.Db.Where("enterprise_id != 0").OrderBy("CONVERT(name USING gbk) ASC").Find(&deviceList)
if err != nil { if err != nil {
logx.Error(err) logx.Error(err)
println("<<<<SelfSupportForSchoolDataStatisticsExport2>>>>>1111Error:::", err.Error()) println("<<<<SelfSupportForSchoolDataStatisticsExport2>>>>>1111Error:::", err.Error())
@@ -581,7 +581,7 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta
//查询出所有的设备 //查询出所有的设备
var deviceList []*model.Device var deviceList []*model.Device
if req.EnterpriseId == 0 { if req.EnterpriseId == 0 {
err := db.Db.Where("enterprise_id != 0").Asc("id").Find(&deviceList)
err := db.Db.Where("enterprise_id != 0").OrderBy("CONVERT(name USING gbk) ASC").Find(&deviceList)
if err != nil { if err != nil {
logx.Error(err) logx.Error(err)
println("<<<<SelfSupportForSchoolDataStatisticsExport4>>>>>1111Error:::", err.Error()) println("<<<<SelfSupportForSchoolDataStatisticsExport4>>>>>1111Error:::", err.Error())


Loading…
Cancel
Save