Commit 8b2dadf0 authored by 赵啸非's avatar 赵啸非

修改固定班次考勤

parent cef589e6
...@@ -51,7 +51,7 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService { ...@@ -51,7 +51,7 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService {
public void excuteTask(ITask task) throws AppException { public void excuteTask(ITask task) throws AppException {
syncDoorEvents(); syncDoorEvents();
//calculateAttendByDay(); calculateAttendByDay();
} }
private void calculateAttendByDay() { private void calculateAttendByDay() {
...@@ -65,8 +65,8 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService { ...@@ -65,8 +65,8 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService {
// Date todayStart = DateUtil.offsetHour(new Date(), -5).toJdkDate(); // Date todayStart = DateUtil.offsetHour(new Date(), -5).toJdkDate();
// recordHikEntity.setAttendanceDateStart(DateUtils.getCurrStrDate()); // recordHikEntity.setAttendanceDateStart(DateUtils.getCurrStrDate());
recordHikEntity.setAttendanceDateStart(DateUtil.offsetHour(new Date(), -5).toString()); recordHikEntity.setAttendanceDateStart(DateUtil.today());
recordHikEntity.setAttendanceDateEnd(DateUtils.getCurrStrDate()); recordHikEntity.setAttendanceDateEnd(DateUtil.today());
try { try {
recordHikService.addAttendanceRecordByQuery(recordHikEntity, context); recordHikService.addAttendanceRecordByQuery(recordHikEntity, context);
} catch (Exception e) { } catch (Exception e) {
......
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