瀏覽代碼

钉钉BUG

yingp 5 年之前
父節點
當前提交
2607586c68

+ 2 - 1
uas-office-dingtalk/src/main/java/com/usoftchina/uas/office/dingtalk/entity/CardLog.java

@@ -1,6 +1,7 @@
 package com.usoftchina.uas.office.dingtalk.entity;
 
 import com.dingtalk.api.response.OapiAttendanceListRecordResponse;
+import com.usoftchina.uas.office.util.StringUtils;
 
 import java.math.BigDecimal;
 import java.util.Date;
@@ -192,7 +193,7 @@ public class CardLog {
         this.cl_address = record.getUserAddress();
         this.cl_phone = employee.getEm_mobile();
         this.cl_checkintype = "OnDuty".equals(record.getCheckType()) ? "上班打卡" : "下班打卡";
-        if (!"Normal".equals(record.getTimeResult())) {
+        if (StringUtils.hasText(record.getTimeResult()) &&  !"Normal".equals(record.getTimeResult())) {
             switch (record.getTimeResult()) {
                 case "Early":
                     this.cl_exceptiontype = "早退";