Parcourir la source

feat:最新标讯调整

fuwencai il y a 2 ans
Parent
commit
2ee652e071

+ 1 - 0
jyBXBase/rpc/internal/logic/newestbiddinglogic.go

@@ -80,6 +80,7 @@ func (l *NewestBiddingLogic) NewestBidding(in *bxbase.NewestBiddingReq) (*bxbase
 			list = roleNewestInfo.GetPushHistory()
 			if list != nil && len(list) > 0 {
 				res.Data.List = list
+				res.Data.Count = int64(len(list))
 				return res, model.StatusLoginUser
 			}
 		}

+ 1 - 1
jyBXBase/rpc/model/newestBidding.go

@@ -104,7 +104,7 @@ func (n *NewestInfo) GetPushHistoryCount() int64 {
 	if b, err := redis.Exists("other", countKey); err == nil && b {
 		return 1
 	}
-	countSql := "SELECT COUNT(1) FROM (SELECT 1 FROM %s WHERE s_userid = %d LIMIT 1) AS ph"
+	countSql := "SELECT COUNT(1) FROM (SELECT 1 FROM %s WHERE userid = %d LIMIT 1) AS ph"
 	//countSql := "select count(1) from %s  a  where a.userid=%d order by a.id desc"
 	countSql = fmt.Sprintf(countSql, n.TableName, n.NewUserId)
 	if c := n.MysqlDb.CountBySql(countSql); c > 0 {