|
@@ -125,8 +125,16 @@ public class WxCheckService extends BaseService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 当天数据再次执行清空
|
|
|
|
+ * @param startDay
|
|
|
|
+ * @param endDay
|
|
|
|
+ * @param specialCheckinDay
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
public void saveReportResultData(String startDay, String endDay, boolean specialCheckinDay) throws Exception {
|
|
public void saveReportResultData(String startDay, String endDay, boolean specialCheckinDay) throws Exception {
|
|
Map<String, Object> param = Maps.newHashMap();
|
|
Map<String, Object> param = Maps.newHashMap();
|
|
|
|
+ param.put("hour", "");
|
|
param.put("startDay", startDay);
|
|
param.put("startDay", startDay);
|
|
param.put("endDay", endDay);
|
|
param.put("endDay", endDay);
|
|
param.put("startDayT", startDay.replace("-", ""));
|
|
param.put("startDayT", startDay.replace("-", ""));
|
|
@@ -136,31 +144,32 @@ public class WxCheckService extends BaseService {
|
|
// 生成报表数据
|
|
// 生成报表数据
|
|
update("SapCheckMapper.deleteCheckReport", param);
|
|
update("SapCheckMapper.deleteCheckReport", param);
|
|
update("SapCheckMapper.saveCheckReport", param);
|
|
update("SapCheckMapper.saveCheckReport", param);
|
|
- }
|
|
|
|
-
|
|
|
|
- public void updateReportResultData(String startDay, String endDay) throws Exception {
|
|
|
|
- Map<String, String> param = Maps.newHashMap();
|
|
|
|
- param.put("hour", "");
|
|
|
|
- param.put("startDay", startDay);
|
|
|
|
- param.put("endDay", endDay);
|
|
|
|
- param.put("startDayT", startDay.replace("-", ""));
|
|
|
|
- param.put("endDayT", endDay.replace("-", ""));
|
|
|
|
-
|
|
|
|
|
|
+
|
|
// 更新打卡规则时间
|
|
// 更新打卡规则时间
|
|
update("SapCheckMapper.updateWorkTime", param);
|
|
update("SapCheckMapper.updateWorkTime", param);
|
|
update("SapCheckMapper.updateOffWorkTime", param);
|
|
update("SapCheckMapper.updateOffWorkTime", param);
|
|
|
|
+
|
|
// 更新noNeedOffwork
|
|
// 更新noNeedOffwork
|
|
update("SapCheckMapper.updateNoNeedOffwork", param);
|
|
update("SapCheckMapper.updateNoNeedOffwork", param);
|
|
update("SapCheckMapper.updateNoNeedOffworkDefault", param);
|
|
update("SapCheckMapper.updateNoNeedOffworkDefault", param);
|
|
|
|
+
|
|
// 更新时间为空的为后台更新未打卡
|
|
// 更新时间为空的为后台更新未打卡
|
|
update("SapCheckMapper.updateCheckinNullException", param);
|
|
update("SapCheckMapper.updateCheckinNullException", param);
|
|
update("SapCheckMapper.updateCheckoffNullException", param);
|
|
update("SapCheckMapper.updateCheckoffNullException", param);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void updateReportResultData(String startDay, String endDay) throws Exception {
|
|
|
|
+ Map<String, String> param = Maps.newHashMap();
|
|
|
|
+ param.put("hour", "");
|
|
|
|
+ param.put("startDay", startDay);
|
|
|
|
+ param.put("endDay", endDay);
|
|
|
|
+ param.put("startDayT", startDay.replace("-", ""));
|
|
|
|
+ param.put("endDayT", endDay.replace("-", ""));
|
|
|
|
+
|
|
// 更新补卡日期
|
|
// 更新补卡日期
|
|
update("SapCheckMapper.updateBuKaDay", param);
|
|
update("SapCheckMapper.updateBuKaDay", param);
|
|
- // 查询请假日期
|
|
|
|
|
|
+ // 更新请假日期
|
|
update("SapCheckMapper.updateLeaveTime", param);
|
|
update("SapCheckMapper.updateLeaveTime", param);
|
|
- // 更新hour字段
|
|
|
|
- update("SapCheckMapper.updateAllHour", param);
|
|
|
|
// 新增列:上班时间
|
|
// 新增列:上班时间
|
|
// 如“固定打卡”未打,“最早外出打卡时间”有则取“最早外出打卡时间”作为“上班时间”
|
|
// 如“固定打卡”未打,“最早外出打卡时间”有则取“最早外出打卡时间”作为“上班时间”
|
|
// 如“固定打卡”or“最早外出打卡时间”都有则取“固定时间”作为“上班时间”
|
|
// 如“固定打卡”or“最早外出打卡时间”都有则取“固定时间”作为“上班时间”
|