xg
This commit is contained in:
parent
170264a09f
commit
087016bc46
@ -152,25 +152,25 @@ public class GetFutDailyController {
|
|||||||
@GetMapping("/getDateNow")
|
@GetMapping("/getDateNow")
|
||||||
public Object getDateNow() {
|
public Object getDateNow() {
|
||||||
|
|
||||||
// LocalDate d = LocalDate.now();
|
LocalDate d = LocalDate.now();
|
||||||
// var from = select(ContractInfoMapper.selectList)
|
|
||||||
// .from(ContractInfoDynamicSqlSupport.contractInfo)
|
|
||||||
// .where(ContractInfoDynamicSqlSupport.contractInfo.delist_date, isGreaterThan(d))
|
|
||||||
// //.and(ContractInfoDynamicSqlSupport.ts_code, )
|
|
||||||
// .build()
|
|
||||||
// .render(RenderingStrategies.MYBATIS3);
|
|
||||||
|
|
||||||
var from = select(ContractInfoMapper.selectList)
|
var from = select(ContractInfoMapper.selectList)
|
||||||
.from(select(ContractInfoMapper.selectList)
|
|
||||||
.from(ContractInfoDynamicSqlSupport.contractInfo)
|
.from(ContractInfoDynamicSqlSupport.contractInfo)
|
||||||
.orderBy(ContractInfoDynamicSqlSupport.delist_date.descending())
|
.where(ContractInfoDynamicSqlSupport.contractInfo.delist_date, isGreaterThan(d))
|
||||||
.limit(20000),
|
//.and(ContractInfoDynamicSqlSupport.ts_code, )
|
||||||
"t1"
|
|
||||||
)
|
|
||||||
.groupBy(ContractInfoDynamicSqlSupport.fut_code)
|
|
||||||
.build()
|
.build()
|
||||||
.render(RenderingStrategies.MYBATIS3);
|
.render(RenderingStrategies.MYBATIS3);
|
||||||
|
|
||||||
|
// var from = select(ContractInfoMapper.selectList)
|
||||||
|
// .from(select(ContractInfoMapper.selectList)
|
||||||
|
// .from(ContractInfoDynamicSqlSupport.contractInfo)
|
||||||
|
// .orderBy(ContractInfoDynamicSqlSupport.delist_date.descending())
|
||||||
|
// .limit(20000),
|
||||||
|
// "t1"
|
||||||
|
// )
|
||||||
|
// .groupBy(ContractInfoDynamicSqlSupport.fut_code)
|
||||||
|
// .build()
|
||||||
|
// .render(RenderingStrategies.MYBATIS3);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List<ContractInfo> contractInfos = contractInfoMapper.selectMany(from);
|
List<ContractInfo> contractInfos = contractInfoMapper.selectMany(from);
|
||||||
|
|||||||
@ -11,12 +11,12 @@ public class FutDailyTime {
|
|||||||
@Autowired GetFutDailyController getFutDailyController;
|
@Autowired GetFutDailyController getFutDailyController;
|
||||||
|
|
||||||
//@Scheduled(cron = "0 0/5 * * * ?") //5分钟
|
//@Scheduled(cron = "0 0/5 * * * ?") //5分钟
|
||||||
@Scheduled(cron = "0 0 02 * * ?") //每天早上2点
|
@Scheduled(cron = "0 30 15 * * ?") //每天中午3点半
|
||||||
public void getDateNow() throws Exception {
|
public void getDateNow() throws Exception {
|
||||||
getFutDailyController.getDateNow();
|
getFutDailyController.getDateNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 0 03 * * ?") //每天早上3点
|
@Scheduled(cron = "0 30 13 * * ?") //每天中午1点半
|
||||||
public void checkUser() throws Exception {
|
public void checkUser() throws Exception {
|
||||||
getFutDailyController.getDate();
|
getFutDailyController.getDate();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user