Kaynağa Gözat

feat:推送价格

wangshan 3 yıl önce
ebeveyn
işleme
a0e6683d7a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      jyBXSubscribe/rpc/util/push.go

+ 1 - 1
jyBXSubscribe/rpc/util/push.go

@@ -405,7 +405,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 		minPrice_str, maxPrice_str := strings.Split(spqp.Price, "-")[0], strings.Split(spqp.Price, "-")[1]
 		minPrice := common.Int64All(common.Float64All(minPrice_str) * 10000) //换成元
 		maxPrice := common.Int64All(common.Float64All(maxPrice_str) * 10000) //换成元
-		querys = append(querys, fmt.Sprintf("((budget>%d and budget<=%d) or (bidamount>%d and bidamount<=%d))", minPrice, maxPrice, minPrice, maxPrice))
+		querys = append(querys, fmt.Sprintf("((bidamount>=%d and bidamount<=%d) or (budget>=%d and budget<=%d and bidamount is null))", minPrice, maxPrice, minPrice, maxPrice))
 	}
 	//附件
 	if spqp.FileExists != "" {