|
|
@@ -151,7 +151,7 @@ public class PromoteQrcodePoolController extends BaseController<PromoteQrcodePoo
|
|
|
}
|
|
|
|
|
|
private Boolean addRedis(Integer promoteId, Integer custserviceId, Integer weight) {
|
|
|
- String scoreStr = BigDecimal.valueOf(weight.doubleValue()/10000).setScale(5, RoundingMode.HALF_EVEN).stripTrailingZeros().toPlainString();
|
|
|
+ String scoreStr = BigDecimal.valueOf(weight.doubleValue()/1000).setScale(4, RoundingMode.HALF_EVEN).stripTrailingZeros().toPlainString();
|
|
|
float score = Float.parseFloat(scoreStr);
|
|
|
Long index = stringRedisTemplate.opsForZSet().rank(RedisKey.PanCustServiceIdView + promoteId, Integer.toString(custserviceId));
|
|
|
if (index == null) {
|