Bladeren bron

更新

master
huangjiajun 1 maand geleden
bovenliggende
commit
b51a301c95
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +2
    -2
      app/svc/svc_data_center.go
  2. +1
    -1
      app/svc/svc_index.go

+ 2
- 2
app/svc/svc_data_center.go Bestand weergeven

@@ -64,7 +64,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen
user := GetUser(c)
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 + ")"
where += " and app_id in('" + appId + "')"
}
if 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)
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 + ")"
where += " and app_id in('" + appId + "')"
}
if req.AdType != "" {
where += " and ad_slot='" + req.AdType + "'"


+ 1
- 1
app/svc/svc_index.go Bestand weergeven

@@ -158,7 +158,7 @@ func commTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []ma
where += " and date<='" + req.EndDate + "'"
}
if len(appId) > 0 {
where += " and app_id in(" + strings.Join(appId, ",") + ")"
where += " and app_id in('" + strings.Join(appId, ",") + "')"
}
if req.Sort == "" {
req.Sort = "media_revenue desc"


Laden…
Annuleren
Opslaan