|
|
@@ -46,6 +46,14 @@ func AppletApplicationAdSpaceMediumList(c *gin.Context) { |
|
|
|
tmp.ContactName = infoList.Name |
|
|
|
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{}) |
|
|
|
tmp.Count = utils.Int64ToStr(count) |
|
|
|
data = append(data, tmp) |
|
|
|