张晓波
2023-10-18 01a3add609a65cfe5c066ebc743ea6308d32a053
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
50
51
52
53
54
package com.thhy.staff.modules.biz.platuser.entity;
 
import com.alibaba.fastjson.JSONObject;
import com.thhy.general.annotations.Idkey;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
public class DoorLis implements Serializable {
 
    @Idkey
    private String id;
 
    private String ipAddress;
 
    private String macAddress;
 
    private Date dateTime;
 
    private int noticeType;
 
    private String name;
 
    private String employeeNoString;
 
    private int verify;
 
    private String oriStr;
 
    private Integer cmpType;
 
    private String captureScore;
 
 
    public DoorLis() {
    }
 
    public DoorLis(String oriStr) {
        this.oriStr = oriStr;
    }
 
    public DoorLis(JSONObject jsonObject) {
        this.macAddress = jsonObject.getString("dev_sno");
        long time = jsonObject.getLong("capture_time");
        this.dateTime = new Date(time);
        this.employeeNoString = jsonObject.getString("person_id");
        this.oriStr = jsonObject.getString("capture_img");
        this.cmpType = jsonObject.getInteger("cmp_type");
        this.verify = jsonObject.getInteger("capture_status");
        this.captureScore = jsonObject.getString("capture_score");
    }
}