|
@@ -27,7 +27,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen |
|
|
where %s |
|
|
where %s |
|
|
` |
|
|
` |
|
|
mediumId := GetAgentMediumId(c) |
|
|
mediumId := GetAgentMediumId(c) |
|
|
where := "uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
|
|
|
|
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
where += " and app_id in(" + appId + ")" |
|
|
} |
|
|
} |
|
@@ -164,7 +164,7 @@ func DataCenterCommissionRecordTotal(c *gin.Context, req md.DataCenterTableReq) |
|
|
where %s |
|
|
where %s |
|
|
` |
|
|
` |
|
|
mediumId := GetAgentMediumId(c) |
|
|
mediumId := GetAgentMediumId(c) |
|
|
where := "uuid=" + c.GetString("mid") |
|
|
|
|
|
|
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
where += " and app_id in(" + appId + ")" |
|
|
} |
|
|
} |
|
@@ -400,7 +400,7 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string |
|
|
where %s %s |
|
|
where %s %s |
|
|
` |
|
|
` |
|
|
mediumId := GetAgentMediumId(c) |
|
|
mediumId := GetAgentMediumId(c) |
|
|
where := "uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
|
|
|
|
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
where += " and app_id in(" + appId + ")" |
|
|
} |
|
|
} |
|
@@ -496,7 +496,7 @@ func commAgent(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[s |
|
|
where %s %s |
|
|
where %s %s |
|
|
` |
|
|
` |
|
|
mediumId := GetAgentMediumId(c) |
|
|
mediumId := GetAgentMediumId(c) |
|
|
where := "uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
|
|
|
|
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id in(" + mediumId + ")" |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
where += " and app_id in(" + appId + ")" |
|
|
where += " and app_id in(" + appId + ")" |
|
|
} |
|
|
} |
|
|