From 01a3add609a65cfe5c066ebc743ea6308d32a053 Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期三, 18 十月 2023 16:12:54 +0800 Subject: [PATCH] 苏州配置文件简化 --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/entity/DoorLis.java | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/entity/DoorLis.java b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/entity/DoorLis.java index 75a641e..9eb2367 100644 --- a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/platuser/entity/DoorLis.java +++ b/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"); + } } -- Gitblit v1.9.3