Explorar o código

个人同步任意日期企业微信考勤打卡记录同

yurk %!s(int64=2) %!d(string=hai) anos
pai
achega
2dc79ec4a9

+ 2 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/WxCorpInfoServiceImpl.java

@@ -546,9 +546,9 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
                         if (jsonObject.get("userid").equals(objects[i])) {
                             //todo: 获取最早上班打卡时间以及最晚下班打卡时间
                             Integer time = (Integer) jsonObject.get("checkin_time");
-                            if (jsonObject.get("checkin_type").equals("上班打卡")) {
+                            if (jsonObject.get("checkin_type").equals("上班打卡")&&!jsonObject.get("exception_type").equals("未打卡")) {
                                 upList.add(time);
-                            } else if(jsonObject.get("checkin_type").equals("下班打卡")) downList.add(time);
+                            } else if(jsonObject.get("checkin_type").equals("下班打卡")&&!jsonObject.get("exception_type").equals("未打卡")) downList.add(time);
                         }
                     }
                     double restTime = 0.0;//小时为单位