|
|
@@ -23,6 +23,15 @@ func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByIds(id |
|
|
|
} |
|
|
|
return medium, nil |
|
|
|
} |
|
|
|
func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) { |
|
|
|
|
|
|
|
medium = new([]model.AppletApplicationAdSpaceList) |
|
|
|
err = a.Db.Where("medium_id=?", mediumId).Find(medium) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
return medium, nil |
|
|
|
} |
|
|
|
func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceList(name, platform string, state string, mediumId, page, limit int) (list []dao.AppletApplicationAdSpaceListGroup, total int64, err error) { |
|
|
|
sess := a.Db.Where("applet_application_ad_space_list.id>0").Desc("applet_application_ad_space_list.id") |
|
|
|
if page > 0 { |
|
|
|