|
@@ -9,6 +9,7 @@ import (
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"sync"
|
|
|
+ "time"
|
|
|
)
|
|
|
|
|
|
|
|
@@ -49,6 +50,10 @@ func GetMicroRoadShowPageList(pageSize, currentIndex, audioId, videoId int, keyw
|
|
|
var audioPars []interface{}
|
|
|
|
|
|
audioCond += ` AND b.publish_status = 1 AND b.active_state = 3`
|
|
|
+
|
|
|
+ endTime := time.Now().AddDate(0, 0, -30).Format("2006-01-02 15:04:05")
|
|
|
+ audioCond += ` AND b.activity_time > ? `
|
|
|
+ audioPars = append(audioPars, endTime)
|
|
|
if keywords != "" {
|
|
|
audioCond += ` AND a.voice_name LIKE ? OR b.label LIKE ?`
|
|
|
audioPars = append(audioPars, keywords, keywords)
|