|
@@ -74,7 +74,7 @@ type Activity struct {
|
|
ShowType string `description:"人数限制类型,1不展示限制,2可选限制,3强制限制"`
|
|
ShowType string `description:"人数限制类型,1不展示限制,2可选限制,3强制限制"`
|
|
}
|
|
}
|
|
type ActivityIdRep struct {
|
|
type ActivityIdRep struct {
|
|
- ActivityId int `description:"活动id"`
|
|
|
|
|
|
+ ActivityId int `description:"活动id"`
|
|
PlaySeconds int `description:"播放时长"`
|
|
PlaySeconds int `description:"播放时长"`
|
|
}
|
|
}
|
|
|
|
|
|
@@ -189,6 +189,8 @@ type ActivityDetail struct {
|
|
AdminId int `description:"管理员、销售ID "`
|
|
AdminId int `description:"管理员、销售ID "`
|
|
IsMakerShow int `description:"是否仅决策人可见 0,否 、1,是"`
|
|
IsMakerShow int `description:"是否仅决策人可见 0,否 、1,是"`
|
|
VisibleRange int `description:"可见范围 1,仅本组可见 、2,全部客户可见"`
|
|
VisibleRange int `description:"可见范围 1,仅本组可见 、2,全部客户可见"`
|
|
|
|
+ VideoDetail *CygxActivityVideoListResp `description:"视频数据"`
|
|
|
|
+ FileType int `description:"类型: 1-音频; 2-视频"`
|
|
}
|
|
}
|
|
|
|
|
|
type CygxActivityResp struct {
|
|
type CygxActivityResp struct {
|
|
@@ -280,7 +282,7 @@ type GetCygxActivityListRep struct {
|
|
func GetActivityListAll(condition string, pars []interface{}, uid, startSize, pageSize, playBack int) (items []*ActivityDetail, err error) {
|
|
func GetActivityListAll(condition string, pars []interface{}, uid, startSize, pageSize, playBack int) (items []*ActivityDetail, err error) {
|
|
var sqlJiontable string
|
|
var sqlJiontable string
|
|
if playBack == 1 {
|
|
if playBack == 1 {
|
|
- sqlJiontable = ` INNER JOIN cygx_activity_voice AS ac ON ac.activity_id = art.activity_id `
|
|
|
|
|
|
+ //sqlJiontable = ` INNER JOIN cygx_activity_voice AS ac ON ac.activity_id = art.activity_id `
|
|
}
|
|
}
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `SELECT art.* ,t.activity_type,t.img_url_text,c.image_url as img_url,
|
|
sql := `SELECT art.* ,t.activity_type,t.img_url_text,c.image_url as img_url,
|
|
@@ -316,7 +318,7 @@ func GetActivityListByDateTime(startDate, endDate, activityIds, activityIdsLongT
|
|
func GetActivityCount(condition string, playBack int, pars []interface{}) (count int, err error) {
|
|
func GetActivityCount(condition string, playBack int, pars []interface{}) (count int, err error) {
|
|
var sqlJiontable string
|
|
var sqlJiontable string
|
|
if playBack == 1 {
|
|
if playBack == 1 {
|
|
- sqlJiontable = ` INNER JOIN cygx_activity_voice AS ac ON ac.activity_id = art.activity_id `
|
|
|
|
|
|
+ //sqlJiontable = ` INNER JOIN cygx_activity_voice AS ac ON ac.activity_id = art.activity_id `
|
|
}
|
|
}
|
|
sqlCount := ` SELECT COUNT(1) AS count FROM cygx_activity as art ` + sqlJiontable + ` WHERE 1= 1 `
|
|
sqlCount := ` SELECT COUNT(1) AS count FROM cygx_activity as art ` + sqlJiontable + ` WHERE 1= 1 `
|
|
if condition != "" {
|
|
if condition != "" {
|