|
|
@@ -62,7 +62,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen |
|
|
|
where %s |
|
|
|
` |
|
|
|
user := GetUser(c) |
|
|
|
where := "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 != "" { |
|
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
} |
|
|
@@ -195,7 +195,7 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string |
|
|
|
where %s %s |
|
|
|
` |
|
|
|
user := GetUser(c) |
|
|
|
where := "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 != "" { |
|
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
} |
|
|
|