wangshan %!s(int64=3) %!d(string=hai) anos
pai
achega
fde53ab563
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      jyBXSubscribe/rpc/util/push.go

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

@@ -403,8 +403,8 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 	//价格- 预算和中标金额
 	if spqp.Price != "" && strings.Contains(spqp.Price, "-") {
 		minPrice_str, maxPrice_str := strings.Split(spqp.Price, "-")[0], strings.Split(spqp.Price, "-")[1]
-		minPrice := common.Int64All(minPrice_str) * 10000
-		maxPrice := common.Int64All(maxPrice_str) * 10000
+		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))
 	}
 	//附件