huangjiajun 1 день назад
Родитель
Сommit
a9535ffe5e
3 измененных файлов: 9 добавлений и 4 удалений
  1. +1
    -1
      app/svc/svc_applet_application_ad_space.go
  2. +7
    -2
      app/svc/svc_data_center_original_data.go
  3. +1
    -1
      go.mod

+ 1
- 1
app/svc/svc_applet_application_ad_space.go Просмотреть файл

@@ -80,7 +80,7 @@ func AppletApplicationAdSpaceList(c *gin.Context) {
}
engine := MasterDb(c)
NewAppletApplicationDb := implement.NewAppletApplicationAdSpaceListDb(engine)
appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.AdType, req.CooperateState, utils.StrToInt(req.MediumId), utils.StrToInt(req.Page), utils.StrToInt(req.Limit))
appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.AdType, req.CooperateState, req.MediumId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit))
data := make([]md.AppletApplicationAdSpaceListData, 0)
if len(appletApplicationList) > 0 {
for _, v := range appletApplicationList {


+ 7
- 2
app/svc/svc_data_center_original_data.go Просмотреть файл

@@ -83,7 +83,10 @@ func DataCenterOriginalDataDel(c *gin.Context, req md.DataCenterOriginalDataComm
func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMoreApplicationReq) md.DataCenterOriginalDataMoreApplicationRes {
engine := MasterDb(c)
NewAppletApplicationAdSpaceListDb := implement2.NewAppletApplicationAdSpaceListDb(engine)
MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", 0, utils.StrToInt(req.Page), utils.StrToInt(req.Limit))
user := GetUser(c)
appId := GetAppletIdByAdminId(c, user.AdmId, req.Name, "", "")

MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", appId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit))
data := make([]md.DataCenterOriginalDataMoreApplicationData, 0)
if len(MediumList) > 0 {
for _, v := range MediumList {
@@ -109,7 +112,9 @@ func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMo
func OriginalDataOneApplication(c *gin.Context) {
list := make([]md.DataCenterOriginalDataOneApplicationData, 0)
NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c))
applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationList()
user := GetUser(c)
appId := GetAppletIdByAdminId(c, user.AdmId, "", "", "")
applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationListByMediumId(appId)
for _, v := range applicationList {
tmp := md.DataCenterOriginalDataOneApplicationData{
Id: utils.IntToStr(v.Id),


+ 1
- 1
go.mod Просмотреть файл

@@ -35,7 +35,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.20241126015955-4cad07333980
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241126021550-33ea9c4c90f2
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/gin-contrib/cors v1.7.2
github.com/jinzhu/copier v0.4.0


Загрузка…
Отмена
Сохранить