|
@@ -253,7 +253,7 @@ type RoadshowDataTitleResp struct {
|
|
|
|
|
|
func GetRoadshowDataTitleList(startTime, endTime, title string) (list []*RoadshowDataTitle, err error) {
|
|
|
o := orm.NewOrmUsingDB("comein_data")
|
|
|
- sql := `SELECT roadshow_title, roadshow_begin_time as activity_time FROM roadshow_data WHERE roadshow_begin_time > ? AND roadshow_end_time < ? roadshow_title LIKE '%` + title + `%' GROUP BY roadshow_id `
|
|
|
+ sql := `SELECT roadshow_title, roadshow_begin_time as activity_time FROM roadshow_data WHERE roadshow_begin_time > ? AND roadshow_end_time < ? AND roadshow_title LIKE '%` + title + `%' GROUP BY roadshow_id `
|
|
|
_, err = o.Raw(sql, startTime, endTime).QueryRows(&list)
|
|
|
return
|
|
|
}
|