@@ -62,7 +62,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen | |||||
where %s | where %s | ||||
` | ` | ||||
user := GetUser(c) | 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 != "" { | if req.AppId != "" || req.Platform != "" { | ||||
where += " and app_id in(" + appId + ")" | 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 | where %s %s | ||||
` | ` | ||||
user := GetUser(c) | 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 != "" { | if req.AppId != "" || req.Platform != "" { | ||||
where += " and app_id in(" + appId + ")" | where += " and app_id in(" + appId + ")" | ||||
} | } | ||||
@@ -118,7 +118,7 @@ func commTotal(c *gin.Context, startDate, endDate string) []map[string]string { | |||||
where %s | where %s | ||||
` | ` | ||||
user := GetUser(c) | 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 startDate != "" { | if startDate != "" { | ||||
where += " and date>='" + startDate + "'" | where += " and date>='" + startDate + "'" | ||||
} | } | ||||
@@ -149,7 +149,7 @@ func commTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []ma | |||||
where %s group by app_id order by %s,id asc limit 10 | where %s group by app_id order by %s,id asc limit 10 | ||||
` | ` | ||||
user := GetUser(c) | 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.StartDate != "" { | if req.StartDate != "" { | ||||
where += " and date>='" + req.StartDate + "'" | where += " and date>='" + req.StartDate + "'" | ||||
} | } | ||||
@@ -6,7 +6,7 @@ go 1.18 | |||||
// | // | ||||
require ( | require ( | ||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240918130541-2345c97fc95a | |||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241009031730-6c5d31eb7458 | |||||
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 | github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 | ||||
github.com/boombuler/barcode v1.0.1 | github.com/boombuler/barcode v1.0.1 | ||||
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 | github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 | ||||