Commit c238252f authored by 赵啸非's avatar 赵啸非

修改本月统计

parent 92f9756c
......@@ -51,7 +51,17 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService {
@Override
public void excuteTask(ITask task) throws AppException {
// syncDoorEvents();
calculateAttendByDay();
//判断时间段 不在时间段的 不做计算
//早上9点 子晚上8点 计算
Date beginDateTime=DateUtil.parseDateTime(DateUtil.today()+" 09:00:00");
Date endDateTime=DateUtil.parseDateTime(DateUtil.today()+" 20:30:00");
boolean in = DateUtil.isIn(new Date(), beginDateTime, endDateTime);
if(in){
calculateAttendByDay();
}
}
private void calculateAttendByDay() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment