|
|
@@ -27,7 +27,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen |
|
|
|
where %s |
|
|
|
` |
|
|
|
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 != "" { |
|
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
} |
|
|
@@ -164,7 +164,7 @@ func DataCenterCommissionRecordTotal(c *gin.Context, req md.DataCenterTableReq) |
|
|
|
where %s |
|
|
|
` |
|
|
|
mediumId := GetAgentMediumId(c) |
|
|
|
where := "uuid=" + c.GetString("mid") |
|
|
|
where := "is_generate_report=1 and uuid=" + c.GetString("mid") |
|
|
|
if req.AppId != "" || req.Platform != "" { |
|
|
|
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 |
|
|
|
` |
|
|
|
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 != "" { |
|
|
|
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 |
|
|
|
` |
|
|
|
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 != "" { |
|
|
|
where += " and app_id in(" + appId + ")" |
|
|
|
} |
|
|
|