|
|
@@ -152,13 +152,13 @@ func DataCenterRecordOutPut(c *gin.Context, req md.DataCenterRecordOutPutReq) { |
|
|
|
} |
|
|
|
var app []model2.AppletApplication |
|
|
|
appMap := make(map[string]model2.AppletApplication) |
|
|
|
MasterDb(c).In("app_id=?", appId).Find(&app) |
|
|
|
MasterDb(c).In("app_id", appId).Find(&app) |
|
|
|
for _, v := range app { |
|
|
|
appMap[v.AppId] = v |
|
|
|
} |
|
|
|
var ad []model2.AppletApplicationAdSpaceList |
|
|
|
adMap := make(map[string]model2.AppletApplicationAdSpaceList) |
|
|
|
MasterDb(c).In("ad_id=?", adId).Find(&adMap) |
|
|
|
MasterDb(c).In("ad_id", adId).Find(&adMap) |
|
|
|
for _, v := range ad { |
|
|
|
adMap[v.AdId] = v |
|
|
|
} |
|
|
|