Commit 24f49547 authored by 赵啸非's avatar 赵啸非

考勤异常添加绩效考核

parent ebab08ac
...@@ -56,11 +56,13 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService { ...@@ -56,11 +56,13 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService {
String excuteParam = task.getExcuteParam(); String excuteParam = task.getExcuteParam();
if (!ObjectUtils.isEmpty(excuteParam)) { if (!ObjectUtils.isEmpty(excuteParam)) {
day = DataUtil.converStr2Int(excuteParam, 0); day = DataUtil.converStr2Int(excuteParam, 0);
}else{ } else {
day=0; day = 0;
} }
syncDoorEvents(); syncDoorEvents();
//calculateAttendByDay();
calculateAttendByDay();
} }
private void calculateAttendByDay() { private void calculateAttendByDay() {
...@@ -74,8 +76,8 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService { ...@@ -74,8 +76,8 @@ public class SyncDoorsEventTaskImpl 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