Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
dengli
2023-12-19 14:23:34 +08:00
4 changed files with 80 additions and 5 deletions

View File

@@ -207,7 +207,7 @@ public class InvestingInvokerApis {
}
public static void main(String[] args) throws IOException {
JSONObject __market = of().__market(StockCode.of("17988"));
JSONObject __market = of().__page(1,100);
System.out.println(__market);
JSONObject __page = of().__page(1, 10);

View File

@@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit;
@Component
public class InvestingTask {
@Scheduled(cron = "0 0 5 * * ?")
@Scheduled(cron = "0 0 6 * * ?")
public void syncIndiaData(){
log.info("同步股票数据开始。。。。");
Map<String, Stock> stockMap = StockRepository.of().cacheCodeMap();
@@ -74,7 +74,7 @@ public class InvestingTask {
if((total - currentTotal) < pageSize ){
pageSize = total - currentTotal;
}
if(total == currentTotal){
if(total <= currentTotal){
break;
}
pageNum ++;