张晓波
2023-10-18 01a3add609a65cfe5c066ebc743ea6308d32a053
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/entity/DoorLis.java
@@ -1,5 +1,6 @@
package com.thhy.staff.modules.biz.platuser.entity;
import com.alibaba.fastjson.JSONObject;
import com.thhy.general.annotations.Idkey;
import lombok.Data;
@@ -28,6 +29,10 @@
    private String oriStr;
    private Integer cmpType;
    private String captureScore;
    public DoorLis() {
    }
@@ -35,4 +40,15 @@
    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");
    }
}