|
|
@@ -71,7 +71,9 @@ func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq) |
|
|
|
appId := GetAppletId(c, req.Name, req.Platform, req.AppId) |
|
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
|
slotId := GetSlotId(c, req.State) |
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, mediumId, slotId, req.AdType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
_, adType := GetSlotIds(c, req.AdType) |
|
|
|
|
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, mediumId, slotId, adType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
data := make([]md.DataCenterIncomeDataData, 0) |
|
|
|
if len(MediumList) > 0 { |
|
|
|
for _, v := range MediumList { |
|
|
@@ -120,8 +122,9 @@ func DataCenterIncomeDataListOutput(c *gin.Context, req md.DataCenterGenerateDat |
|
|
|
appId := GetAppletId(c, req.Name, req.Platform, req.AppId) |
|
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
|
slotId := GetSlotId(c, req.State) |
|
|
|
_, adType := GetSlotIds(c, req.AdType) |
|
|
|
req.Limit = "3000" |
|
|
|
MediumList, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMediumAll(c.GetString("mid"), appId, mediumId, slotId, req.AdType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
MediumList, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMediumAll(c.GetString("mid"), appId, mediumId, slotId, adType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
data := map[string]string{ |
|
|
|
"A1": "名称", |
|
|
|
"B1": "日期", |
|
|
@@ -510,7 +513,8 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string |
|
|
|
where += " and app_id in(" + str + ")" |
|
|
|
} |
|
|
|
if req.AdType != "" { |
|
|
|
where += " and ad_slot='" + req.AdType + "'" |
|
|
|
adType, _ := GetSlotIds(c, req.AdType) |
|
|
|
where += " and slot_id in(" + adType + ")" |
|
|
|
} |
|
|
|
if req.StartDate != "" { |
|
|
|
where += " and date>='" + req.StartDate + "'" |
|
|
|