|
@@ -24,14 +24,15 @@ public class WxCheckService extends BaseService {
|
|
@Autowired
|
|
@Autowired
|
|
private WxUserService wxUserService;
|
|
private WxUserService wxUserService;
|
|
|
|
|
|
- public void saveCheckInOffOuts(String startDay, String endDay) throws Exception {
|
|
|
|
|
|
+ public void saveCheckInOffOuts(String checkinDay) throws Exception {
|
|
// 重新生成制定日期范围内的打卡数据
|
|
// 重新生成制定日期范围内的打卡数据
|
|
update("SapCheckMapper.deleteCheckinList", null);
|
|
update("SapCheckMapper.deleteCheckinList", null);
|
|
update("SapCheckMapper.deleteCheckoffList", null);
|
|
update("SapCheckMapper.deleteCheckoffList", null);
|
|
update("SapCheckMapper.deleteCheckoutList", null);
|
|
update("SapCheckMapper.deleteCheckoutList", null);
|
|
|
|
|
|
- Date startDate = DateUtil.sdfTime.parse(startDay + " 00:00:00");
|
|
|
|
- Date endDate = DateUtil.sdfTime.parse(endDay + " 23:59:59");
|
|
|
|
|
|
+ Date startDate = DateUtil.sdfTime.parse(checkinDay + " 03:00:00");
|
|
|
|
+ String nextDay = DateUtil.getAfterDay(startDate, 1);
|
|
|
|
+ Date endDate = DateUtil.sdfTime.parse(nextDay + " 03:00:00");
|
|
|
|
|
|
List<String> userIds = wxUserService.selectAllUserIds();
|
|
List<String> userIds = wxUserService.selectAllUserIds();
|
|
Map<String, List<String>> map = groupList(userIds, 100);
|
|
Map<String, List<String>> map = groupList(userIds, 100);
|
|
@@ -127,18 +128,17 @@ public class WxCheckService extends BaseService {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 当天数据再次执行清空
|
|
* 当天数据再次执行清空
|
|
- * @param startDay
|
|
|
|
- * @param endDay
|
|
|
|
|
|
+ * @param checkinDay
|
|
* @param specialCheckinDay
|
|
* @param specialCheckinDay
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- public void saveReportResultData(String startDay, String endDay, boolean specialCheckinDay) throws Exception {
|
|
|
|
|
|
+ public void saveReportResultData(String checkinDay, boolean specialCheckinDay) throws Exception {
|
|
Map<String, Object> param = Maps.newHashMap();
|
|
Map<String, Object> param = Maps.newHashMap();
|
|
param.put("hour", "");
|
|
param.put("hour", "");
|
|
- param.put("startDay", startDay);
|
|
|
|
- param.put("endDay", endDay);
|
|
|
|
- param.put("startDayT", startDay.replace("-", ""));
|
|
|
|
- param.put("endDayT", endDay.replace("-", ""));
|
|
|
|
|
|
+ param.put("startDay", checkinDay);
|
|
|
|
+ param.put("endDay", checkinDay);
|
|
|
|
+ param.put("startDayT", checkinDay.replace("-", ""));
|
|
|
|
+ param.put("endDayT", checkinDay.replace("-", ""));
|
|
param.put("specialCheckinDay", specialCheckinDay);
|
|
param.put("specialCheckinDay", specialCheckinDay);
|
|
|
|
|
|
// 生成报表数据
|
|
// 生成报表数据
|
|
@@ -158,13 +158,13 @@ public class WxCheckService extends BaseService {
|
|
update("SapCheckMapper.updateCheckoffNullException", param);
|
|
update("SapCheckMapper.updateCheckoffNullException", param);
|
|
}
|
|
}
|
|
|
|
|
|
- public void updateReportResultData(String startDay, String endDay) throws Exception {
|
|
|
|
|
|
+ public void updateReportResultData(String checkinDay) throws Exception {
|
|
Map<String, String> param = Maps.newHashMap();
|
|
Map<String, String> param = Maps.newHashMap();
|
|
param.put("hour", "");
|
|
param.put("hour", "");
|
|
- param.put("startDay", startDay);
|
|
|
|
- param.put("endDay", endDay);
|
|
|
|
- param.put("startDayT", startDay.replace("-", ""));
|
|
|
|
- param.put("endDayT", endDay.replace("-", ""));
|
|
|
|
|
|
+ param.put("startDay", checkinDay);
|
|
|
|
+ param.put("endDay", checkinDay);
|
|
|
|
+ param.put("startDayT", checkinDay.replace("-", ""));
|
|
|
|
+ param.put("endDayT", checkinDay.replace("-", ""));
|
|
|
|
|
|
// 更新补卡日期
|
|
// 更新补卡日期
|
|
update("SapCheckMapper.updateBuKaDay", param);
|
|
update("SapCheckMapper.updateBuKaDay", param);
|