|
@@ -22,7 +22,7 @@ func DataCenterIncomeDataListForOpen(c *gin.Context, req md.DataCenterGenerateDa |
|
|
engine := db.Db |
|
|
engine := db.Db |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
mediumId := req.MediumId |
|
|
mediumId := req.MediumId |
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), "", mediumId, "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
|
|
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), "", mediumId, "", "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
data := make([]md.DataCenterIncomeDataData, 0) |
|
|
data := make([]md.DataCenterIncomeDataData, 0) |
|
|
if len(MediumList) > 0 { |
|
|
if len(MediumList) > 0 { |
|
|
for _, v := range MediumList { |
|
|
for _, v := range MediumList { |
|
@@ -71,7 +71,7 @@ func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq) |
|
|
appId := GetAppletId(c, req.Name, req.Platform, req.AppId) |
|
|
appId := GetAppletId(c, req.Name, req.Platform, req.AppId) |
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
slotId := GetSlotId(c, req.State) |
|
|
slotId := GetSlotId(c, req.State) |
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, mediumId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
|
|
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, mediumId, slotId, req.AdType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
data := make([]md.DataCenterIncomeDataData, 0) |
|
|
data := make([]md.DataCenterIncomeDataData, 0) |
|
|
if len(MediumList) > 0 { |
|
|
if len(MediumList) > 0 { |
|
|
for _, v := range MediumList { |
|
|
for _, v := range MediumList { |
|
@@ -121,7 +121,7 @@ func DataCenterIncomeDataListOutput(c *gin.Context, req md.DataCenterGenerateDat |
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
slotId := GetSlotId(c, req.State) |
|
|
slotId := GetSlotId(c, req.State) |
|
|
req.Limit = "3000" |
|
|
req.Limit = "3000" |
|
|
MediumList, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMediumAll(c.GetString("mid"), appId, mediumId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
|
|
|
|
|
MediumList, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMediumAll(c.GetString("mid"), appId, mediumId, slotId, req.AdType, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
data := map[string]string{ |
|
|
data := map[string]string{ |
|
|
"A1": "名称", |
|
|
"A1": "名称", |
|
|
"B1": "日期", |
|
|
"B1": "日期", |
|
|