Browse Source

更新

master
huangjiajun 4 weeks ago
parent
commit
d0b9cfec59
2 changed files with 16 additions and 0 deletions
  1. +8
    -0
      app/svc/svc_applet_application.go
  2. +8
    -0
      app/svc/svc_applet_application_ad_space.go

+ 8
- 0
app/svc/svc_applet_application.go View File

@@ -47,6 +47,14 @@ func AppletApplicationMediumList(c *gin.Context) {
tmp.ContactName = infoList.Name tmp.ContactName = infoList.Name
tmp.Phone = infoList.Phone tmp.Phone = infoList.Phone
} }
NewMediumListDb := implement2.NewMediumListDb(db.Db)
GetMediumList, _ := NewMediumListDb.GetMediumList(v.MediumId)
if GetMediumList != nil {
tmp.Name = GetMediumList.CompanyName
if GetMediumList.CompanyAbbreviation != "" {
tmp.Name = GetMediumList.CompanyAbbreviation
}
}
count, _ := engine.Where("medium_id=?", v.MediumId).Count(&model.AppletApplication{}) count, _ := engine.Where("medium_id=?", v.MediumId).Count(&model.AppletApplication{})
tmp.Count = utils.Int64ToStr(count) tmp.Count = utils.Int64ToStr(count)
data = append(data, tmp) data = append(data, tmp)


+ 8
- 0
app/svc/svc_applet_application_ad_space.go View File

@@ -46,6 +46,14 @@ func AppletApplicationAdSpaceMediumList(c *gin.Context) {
tmp.ContactName = infoList.Name tmp.ContactName = infoList.Name
tmp.Phone = infoList.Phone tmp.Phone = infoList.Phone
} }
NewMediumListDb := implement2.NewMediumListDb(db.Db)
GetMediumList, _ := NewMediumListDb.GetMediumList(v.MediumId)
if GetMediumList != nil {
tmp.Name = GetMediumList.CompanyName
if GetMediumList.CompanyAbbreviation != "" {
tmp.Name = GetMediumList.CompanyAbbreviation
}
}
count, _ := engine.Where("medium_id=?", v.MediumId).Count(&model.AppletApplicationAdSpaceList{}) count, _ := engine.Where("medium_id=?", v.MediumId).Count(&model.AppletApplicationAdSpaceList{})
tmp.Count = utils.Int64ToStr(count) tmp.Count = utils.Int64ToStr(count)
data = append(data, tmp) data = append(data, tmp)


Loading…
Cancel
Save