|
@@ -2,6 +2,8 @@ package com.zhongshu.card.client.model.attendance;
|
|
|
|
|
|
|
|
import com.zhongshu.card.client.model.org.UserCountModel;
|
|
import com.zhongshu.card.client.model.org.UserCountModel;
|
|
|
import com.zhongshu.card.client.type.LeaveStatus;
|
|
import com.zhongshu.card.client.type.LeaveStatus;
|
|
|
|
|
+import com.zhongshu.card.client.type.visitor.VisitorState;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import org.springframework.stereotype.Indexed;
|
|
import org.springframework.stereotype.Indexed;
|
|
|
|
|
|
|
@@ -42,6 +44,18 @@ public class LeaveApprovalModel {
|
|
|
//审核状态
|
|
//审核状态
|
|
|
private LeaveStatus leaveStatus;
|
|
private LeaveStatus leaveStatus;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "是否显示警告红点")
|
|
|
|
|
+ private Boolean isWarning = Boolean.FALSE;
|
|
|
|
|
+
|
|
|
|
|
+ public Boolean getIsWarning() {
|
|
|
|
|
+ if (leaveStatus != null) {
|
|
|
|
|
+ if (leaveStatus == LeaveStatus.Wait) {
|
|
|
|
|
+ return Boolean.TRUE;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return Boolean.FALSE;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private Long approvalTime;
|
|
private Long approvalTime;
|
|
|
|
|
|
|
|
//审核意见
|
|
//审核意见
|