2023年12月8日 修改课程时间判断
This commit is contained in:
parent
7c52002edb
commit
3b87d758a9
|
@ -105,12 +105,13 @@ public class KcZhihuijiaoshiController extends JeecgController<KcZhihuijiaoshi,
|
|||
|
||||
log.info("01: {}",timer.intervalRestart());
|
||||
//查询今天的课,
|
||||
//DateTime starTime = DateUtil.parse("2023-12-08 07:29:00");
|
||||
DateTime starTime = DateTime.now();
|
||||
|
||||
String nowTimeStr = starTime.toString("HHmm");
|
||||
int nowTimeNum = Integer.parseInt(nowTimeStr);
|
||||
|
||||
DateTime nowPlus30Time = DateUtil.offset(starTime,DateField.MINUTE,-30);//提前30分钟
|
||||
DateTime nowPlus30Time = DateUtil.offset(starTime,DateField.MINUTE,30);//提前30分钟
|
||||
String nowPlus30TimeStr = nowPlus30Time.toString("HHmm");
|
||||
int nowPlus30TimeNum = Integer.parseInt(nowPlus30TimeStr);
|
||||
starTime = DateUtil.endOfDay(starTime);//校正为今天末尾
|
||||
|
@ -299,6 +300,11 @@ public class KcZhihuijiaoshiController extends JeecgController<KcZhihuijiaoshi,
|
|||
System.out.println("有效!");
|
||||
}
|
||||
|
||||
if(730 <= (745) && 815 <= 930){
|
||||
System.out.println("有效!");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue