From 74e5a0efcda0eff0f23037c3439ef5405bafe922 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Sun, 08 Mar 2026 17:41:26 +0800
Subject: [PATCH] 1

---
 trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java |   66 ++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 18 deletions(-)

diff --git a/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java b/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
index 89560c7..5c6d5e1 100644
--- a/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
+++ b/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
@@ -3,30 +3,60 @@
 import com.yami.trading.huobi.data.model.AdjustmentValue;
 
 import java.math.BigDecimal;
+import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
 public class AdjustmentValueCache {
-	/**
-	 * 当前值
-	 */
-	private static volatile Map<String, BigDecimal> currentValue = new ConcurrentHashMap();
-	/**
-	 * 延时值
-	 */
-	private static volatile Map<String, AdjustmentValue> delayValue = new ConcurrentHashMap();
+    /**
+     * 当前值
+     */
+    private static volatile Map<String, BigDecimal> currentValue = new ConcurrentHashMap();
+    /**
+     * 延时值
+     */
+    private static volatile Map<String, AdjustmentValue> delayValue = new ConcurrentHashMap();
 
-	private static volatile Map<String, BigDecimal> lastValue = new ConcurrentHashMap();
+    private static volatile Map<String, BigDecimal> lastValue = new ConcurrentHashMap();
 
-	public static Map<String, BigDecimal> getCurrentValue() {
-		return currentValue;
-	}
+    public static Map<String, BigDecimal> getCurrentValue() {
+        return currentValue;
+    }
 
-	public static Map<String, AdjustmentValue> getDelayValue() {
-		return delayValue;
-	}
+    public static Map<String, AdjustmentValue> getDelayValue() {
+        return delayValue;
+    }
 
-	public static Map<String, BigDecimal> getLastValue() {
-		return lastValue;
-	}
+    public static Map<String, BigDecimal> getLastValue() {
+        return lastValue;
+    }
+
+
+
+
+    //初始次数
+    private static final Map<String, Integer> frequency = new ConcurrentHashMap<>();
+
+    //存储预生成的随机分配值列表
+    private static final Map<String, List<BigDecimal>> preAllocationList = new ConcurrentHashMap<>();
+
+    //记录当前分配到第几个值
+    private static final Map<String, Integer> currentAllocationIndex = new ConcurrentHashMap<>();
+
+    public static Map<String, Integer> getFrequency() {
+        return frequency;
+    }
+
+    public static Map<String, List<BigDecimal>> getPreAllocatedAdjustments() {
+        return preAllocationList;
+    }
+
+
+    public static Map<String, Integer> getCurrentAdjustmentIndex() {
+        return currentAllocationIndex;
+    }
+
+
+
+
 }

--
Gitblit v1.9.3