huangjiajun před 2 měsíci
rodič
revize
7b6cecbefd
2 změnil soubory, kde provedl 7 přidání a 5 odebrání
  1. +6
    -4
      app/svc/svc_data_center_generate_data.go
  2. +1
    -1
      go.mod

+ 6
- 4
app/svc/svc_data_center_generate_data.go Zobrazit soubor

@@ -18,9 +18,10 @@ func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq)
engine := db.Db
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine)
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)
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)
if len(MediumList) > 0 {
for _, v := range MediumList {
@@ -122,9 +123,10 @@ func DataCenterGenerateDataList(c *gin.Context, req md.DataCenterGenerateDataReq
engine := db.Db
NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine)
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)
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)
if len(MediumList) > 0 {
NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(engine)


+ 1
- 1
go.mod Zobrazit soubor

@@ -36,7 +36,7 @@ require (
require (
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20240830072333-a1980ffb256e
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241025014113-d86cf0dcee0e
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241025040814-725e7331c9a8
github.com/jinzhu/copier v0.4.0
)



Načítá se…
Zrušit
Uložit