|
@@ -18,9 +18,10 @@ func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq) |
|
|
engine := db.Db |
|
|
engine := db.Db |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
user := GetUser(c) |
|
|
user := GetUser(c) |
|
|
appId := GetAppletIdByAdminId(c, user.AdmId, req.Name, req.Platform) |
|
|
|
|
|
|
|
|
appId := GetAppletId(c, req.Name, req.Platform) |
|
|
|
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
slotId := GetSlotId(c, req.State) |
|
|
slotId := GetSlotId(c, req.State) |
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
|
|
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataListMedium(c.GetString("mid"), appId, mediumId, slotId, 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 { |
|
@@ -122,9 +123,10 @@ func DataCenterGenerateDataList(c *gin.Context, req md.DataCenterGenerateDataReq |
|
|
engine := db.Db |
|
|
engine := db.Db |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) |
|
|
user := GetUser(c) |
|
|
user := GetUser(c) |
|
|
appId := GetAppletIdByAdminId(c, user.AdmId, req.Name, req.Platform) |
|
|
|
|
|
|
|
|
appId := GetAppletId(c, req.Name, req.Platform) |
|
|
|
|
|
mediumId := GetMediumIdStr(c, user.AdmId, "", "") |
|
|
slotId := GetSlotId(c, req.State) |
|
|
slotId := GetSlotId(c, req.State) |
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataList(c.GetString("mid"), appId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
|
|
|
|
|
MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataList(c.GetString("mid"), appId, mediumId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
data := make([]md.DataCenterGenerateDataData, 0) |
|
|
data := make([]md.DataCenterGenerateDataData, 0) |
|
|
if len(MediumList) > 0 { |
|
|
if len(MediumList) > 0 { |
|
|
NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(engine) |
|
|
NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(engine) |
|
|