|
@@ -4,7 +4,6 @@ import (
|
|
"fmt"
|
|
"fmt"
|
|
"jyBXBase/rpc/bxbase"
|
|
"jyBXBase/rpc/bxbase"
|
|
IC "jyBXBase/rpc/init"
|
|
IC "jyBXBase/rpc/init"
|
|
- "log"
|
|
|
|
"strings"
|
|
"strings"
|
|
"time"
|
|
"time"
|
|
|
|
|
|
@@ -57,7 +56,7 @@ func GetNewestInfo(userId, userType string, newUserId int64) *NewestInfo {
|
|
func (n *NewestInfo) GetPushHistory() (res []*bxbase.NewestList) {
|
|
func (n *NewestInfo) GetPushHistory() (res []*bxbase.NewestList) {
|
|
findSQL := "select a.infoid,a.matchkeys,b.isvalidfile as attachment_count,b.budget,b.bidamount from %s a INNER JOIN %s b ON a.userid=%d and a.date>=%d and a.infoid=b.infoid order by a.id desc limit 50"
|
|
findSQL := "select a.infoid,a.matchkeys,b.isvalidfile as attachment_count,b.budget,b.bidamount from %s a INNER JOIN %s b ON a.userid=%d and a.date>=%d and a.infoid=b.infoid order by a.id desc limit 50"
|
|
findSQL = fmt.Sprintf(findSQL, n.TableName, Pushbidding, n.NewUserId, time.Now().AddDate(0, 0, -7).Unix())
|
|
findSQL = fmt.Sprintf(findSQL, n.TableName, Pushbidding, n.NewUserId, time.Now().AddDate(0, 0, -7).Unix())
|
|
- log.Println("findSQL:", findSQL)
|
|
|
|
|
|
+ logx.Info(n.TableName, "-------", n.NewUserId, ",findSQL:", findSQL)
|
|
list := n.MysqlDb.SelectBySql(findSQL)
|
|
list := n.MysqlDb.SelectBySql(findSQL)
|
|
if len(*list) > 0 && list != nil {
|
|
if len(*list) > 0 && list != nil {
|
|
m := map[string]bool{}
|
|
m := map[string]bool{}
|