|
|
|
@ -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);
|
|
|
|
|