From e2a1cfa508137dc016b73e52ba1080754f9175bb Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 30 Oct 2024 13:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_data_center.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }