From ee8654ca7939fcbc5fa0354545ddba10956f8502 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 10 Oct 2024 14:07:07 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/svc/svc_data_center.go b/app/svc/svc_data_center.go index fbd011c..4215dc7 100644 --- a/app/svc/svc_data_center.go +++ b/app/svc/svc_data_center.go @@ -29,7 +29,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen mediumId := GetAgentMediumId(c) where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" if req.AppId != "" || req.Platform != "" { - where += " and app_id in(" + appId + ")" + where += " and app_id in('" + appId + "')" } if req.AdType != "" { where += " and ad_slot='" + req.AdType + "'" @@ -166,7 +166,7 @@ func DataCenterCommissionRecordTotal(c *gin.Context, req md.DataCenterTableReq) mediumId := GetAgentMediumId(c) where := "is_generate_report=1 and uuid=" + c.GetString("mid") if req.AppId != "" || req.Platform != "" { - where += " and app_id in(" + appId + ")" + where += " and app_id in('" + appId + "')" } if req.AdType != "" { where += " and ad_slot='" + req.AdType + "'" @@ -402,7 +402,7 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string mediumId := GetAgentMediumId(c) where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" if req.AppId != "" || req.Platform != "" { - where += " and app_id in(" + appId + ")" + where += " and app_id in('" + appId + "')" } if req.AdType != "" { where += " and ad_slot='" + req.AdType + "'" @@ -448,7 +448,7 @@ func commAgentProfit(c *gin.Context, isTotal int, req md.DataCenterProfitRecordR user := GetUser(c) where := "g.is_generate_report=1 and gf.uuid=" + c.GetString("mid") + " and gf.agent_id =" + utils.IntToStr(user.AgentId) if req.AppId != "" || req.Platform != "" { - where += " and gf.app_id in(" + appId + ")" + where += " and gf.app_id in('" + appId + "')" } if req.StartDate != "" { where += " and gf.date >= '" + req.StartDate + "'" @@ -500,7 +500,7 @@ func commAgent(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[s mediumId := GetAgentMediumId(c) where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" if req.AppId != "" || req.Platform != "" { - where += " and app_id in(" + appId + ")" + where += " and app_id in('" + appId + "')" } if req.AdType != "" { where += " and ad_slot='" + req.AdType + "'"