吉安感知网项目-后端
xiebin
2026-01-06 d207a86cdf1ab52ef8cb7cd83bad8fceab8038cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package org.sxkj.resource.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.util.StringUtils;
 
import java.util.Date;
import java.util.Optional;
 
/**
 * 分析对比
 */
@Data
public class AnalysisAttachVo {
    //附件id
    private Long id;
    //事件名称
    //事件名称
    private String eventName;
    private String nickName;
 
    private String name;
 
    private String extension;
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    /**
     * 地址
     */
    private String link;
 
    private Integer resultType;
    /**
     * 是否被选中
     */
    private Boolean isCheck;
    public String getNickName() {
        if(!StringUtils.isEmpty(this.eventName)){
            return eventName;
        }
        if(!StringUtils.isEmpty(this.nickName)) {
            return this.nickName+ Optional.ofNullable(this.extension).orElse("");
        }
        return this.name.substring(this.name.lastIndexOf("/")+1);
    }
 
 
}