fix: 使用前16%的数据进行计算

dev_refactor_0120_qoder
Lxy 4 months ago
parent 2ce533d145
commit cb477bcd76

@ -622,8 +622,8 @@ public class StockDailyTradeServiceImpl implements IStockDailyTradeService
}); });
// 3. 计算股票总数的16%,取整 // 3. 计算股票总数的16%,取整
// int topCount = (int) (totalCount * 0.16); int topCount = (int) (totalCount * 0.16);
int topCount = 600;//暂时为了验证计算使用600固定数 // int topCount = 600;//暂时为了验证计算使用600固定数
// 确保至少返回1只股票 // 确保至少返回1只股票
topCount = Math.max(1, topCount); topCount = Math.max(1, topCount);
logger.info("股票总数: {}, 前16%数量: {}", totalCount, topCount); logger.info("股票总数: {}, 前16%数量: {}", totalCount, topCount);

Loading…
Cancel
Save