|
|
@@ -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 = "早退";
|