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");
|
}
|
}
|