From 2a0971f8eb9df07ef3fbf1ad7dcdfe13508cd6df Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 30 Oct 2024 10:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dao/applet_application_ad_space_list_dao.go | 1 + .../applet_application_ad_space_list_implement.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/dao/applet_application_ad_space_list_dao.go b/src/dao/applet_application_ad_space_list_dao.go index 05d4486..192d86e 100644 --- a/src/dao/applet_application_ad_space_list_dao.go +++ b/src/dao/applet_application_ad_space_list_dao.go @@ -6,6 +6,7 @@ type AppletApplicationAdSpaceListDao interface { GetAppletApplicationAdSpaceListByAdId(adId string) (medium *model.AppletApplicationAdSpaceList, err error) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) FindAppletApplicationAdSpaceListByIds(id []string) (medium *[]model.AppletApplicationAdSpaceList, err error) + FindAppletApplicationAdSpaceListByAppidIds(id string) (medium *[]model.AppletApplicationAdSpaceList, err error) FindAppletApplicationAdSpaceList(name, platform string, adType, state string, mediumId, page, limit int) (list []AppletApplicationAdSpaceListGroup, total int64, err error) FindAllAppletApplicationAdSpaceListList(appId string) (list []model.AppletApplicationAdSpaceList, err error) } diff --git a/src/implement/applet_application_ad_space_list_implement.go b/src/implement/applet_application_ad_space_list_implement.go index 5f95c53..837cf8e 100644 --- a/src/implement/applet_application_ad_space_list_implement.go +++ b/src/implement/applet_application_ad_space_list_implement.go @@ -23,6 +23,14 @@ func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByIds(id } return medium, nil } +func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByAppidIds(id string) (medium *[]model.AppletApplicationAdSpaceList, err error) { + medium = new([]model.AppletApplicationAdSpaceList) + err = a.Db.Where("app_id=?", id).Find(medium) + if err != nil { + return nil, zhios_order_relate_logx.Error(err) + } + return medium, nil +} func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) { medium = new([]model.AppletApplicationAdSpaceList)