|
@@ -82,7 +82,7 @@ public class SapCheckService extends BaseService {
|
|
|
System.out.println(count);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public void saveAllUserCheckOption() throws Exception {
|
|
|
List<SapUser> users = userService.selectSuccessList();
|
|
|
Map<String, List<String>> map = groupList(users);
|
|
@@ -133,6 +133,8 @@ public class SapCheckService extends BaseService {
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public void updateReportData() throws Exception {
|
|
|
+ // 更新华人时代人员上班时间可以推迟30分钟
|
|
|
+ update("SapCheckMapper.updateHrsdWorkTime", null);
|
|
|
// 更新所有异常事件的数据为异常数据
|
|
|
update("SapCheckMapper.updateAllExceptionResult", null);
|
|
|
// 查询有请假情况的数据
|
|
@@ -158,12 +160,8 @@ public class SapCheckService extends BaseService {
|
|
|
|
|
|
// 是不是正确的上班时间
|
|
|
private boolean isOkWorkTime(SapCheckReport checkReport) throws Exception {
|
|
|
- if (StringUtils.isBlank(checkReport.getCheckinException())
|
|
|
- && StringUtils.isNotBlank(checkReport.getCheckinDate())) {
|
|
|
- if (DateUtil.sdfTime.parse(checkReport.getCheckinDate()).getTime() <= DateUtil.sdfsTime
|
|
|
- .parse(checkReport.getCheckinDay() + " " + checkReport.getWorkTime()).getTime()) {
|
|
|
- return true;
|
|
|
- }
|
|
|
+ if (StringUtils.isBlank(checkReport.getCheckinException())) {
|
|
|
+ return true;
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(checkReport.getCheckoutDate1())) {
|
|
|
if (DateUtil.sdfTime.parse(checkReport.getCheckoutDate1()).getTime() <= DateUtil.sdfsTime
|
|
@@ -182,12 +180,8 @@ public class SapCheckService extends BaseService {
|
|
|
|
|
|
// 是不是正确的下班时间
|
|
|
private boolean isOkOffWorkTime(SapCheckReport checkReport) throws Exception {
|
|
|
- if (StringUtils.isBlank(checkReport.getCheckoffException())
|
|
|
- && StringUtils.isNotBlank(checkReport.getCheckoffDate())) {
|
|
|
- if (DateUtil.sdfTime.parse(checkReport.getCheckoffDate()).getTime() >= DateUtil.sdfsTime
|
|
|
- .parse(checkReport.getCheckinDay() + " " + checkReport.getOffWorkTime()).getTime()) {
|
|
|
- return true;
|
|
|
- }
|
|
|
+ if (StringUtils.isBlank(checkReport.getCheckoffException())) {
|
|
|
+ return true;
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(checkReport.getCheckoutDate1())) {
|
|
|
if (DateUtil.sdfTime.parse(checkReport.getCheckoutDate1()).getTime() >= DateUtil.sdfsTime
|