|
@@ -64,7 +64,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen |
|
|
user := GetUser(c) |
|
|
user := GetUser(c) |
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId) |
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId) |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
|
|
|
|
|
where += " and app_id in('" + appId + "')" |
|
|
} |
|
|
} |
|
|
if req.AdType != "" { |
|
|
if req.AdType != "" { |
|
|
where += " and ad_slot='" + req.AdType + "'" |
|
|
where += " and ad_slot='" + req.AdType + "'" |
|
@@ -197,7 +197,7 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string |
|
|
user := GetUser(c) |
|
|
user := GetUser(c) |
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId) |
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId) |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
|
|
|
|
|
where += " and app_id in('" + appId + "')" |
|
|
} |
|
|
} |
|
|
if req.AdType != "" { |
|
|
if req.AdType != "" { |
|
|
where += " and ad_slot='" + req.AdType + "'" |
|
|
where += " and ad_slot='" + req.AdType + "'" |
|
|