diff --git a/app/svc/svc_data_center.go b/app/svc/svc_data_center.go index c2d94a6..8eee88e 100644 --- a/app/svc/svc_data_center.go +++ b/app/svc/svc_data_center.go @@ -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 }