Browse Source

未成年记录上报-未完成

Shangyp 8 months ago
parent
commit
3ab5930df6

+ 7 - 5
app/src/main/java/com/telpo/facenormal/activity/MainActivity.java

@@ -998,10 +998,10 @@ import static com.telpo.facenormal.utile.Config.CheckList;
             if (!Config.IsStringNull(alipayUserInfoBean.getData().getPhotoBase64())) {
                 Config.avatarBitmap = Config.base642Bitmap(alipayUserInfoBean.getData().getPhotoBase64());
             }
-            //推送刷脸刷卡记录
-            setEventRecords("face", alipayUserInfoBean.getData().getUserName(),
-                    alipayUserInfoBean.getData().getCertNo(), alipayUserInfoBean.getData().getPhotoBase64(), "",
-                    alipayUserInfoBean.getData().getMobile());
+//            //推送刷脸刷卡记录
+//            setEventRecords("face", alipayUserInfoBean.getData().getUserName(),
+//                    alipayUserInfoBean.getData().getCertNo(), alipayUserInfoBean.getData().getPhotoBase64(), "",
+//                    alipayUserInfoBean.getData().getMobile());
         } else {
             if (alipayUserInfoBean.getErrmsg().isEmpty()) {
                 alipayUserInfoBean.setErrmsg("联动平台请求失败");
@@ -1118,7 +1118,7 @@ import static com.telpo.facenormal.utile.Config.CheckList;
     }
 
     private void setEventRecords(String type, String name, String Cardid, String Photo, String idCardInfo,
-                                 String phone) {
+                                 String phone,boolean Status,int ReasonType) {
         EventRecordsBean eventRecordsBean = new EventRecordsBean();
         eventRecordsBean.setSN(Config.SN);
         //0:离线(即开⻔提示逻辑由设备离线处理事后上报)1:在线(即开⻔提示逻辑由平台实时控制
@@ -1152,6 +1152,8 @@ import static com.telpo.facenormal.utile.Config.CheckList;
         dataDTO.setYmStatus("2022-09-19 15:39:17,3");
         dataDTO.setXcInfo("⽆异常⾏程");
         dataDTO.setExtend5("绿码");
+        dataDTO.setStatus(Status);
+        dataDTO.setReasonType(ReasonType);
         //佩戴⼝罩  0:未戴  1:已戴  2:未启⽤⼝罩检测/开启仅检测体温
         dataDTO.setExtend1("");
         dataDTO.setExtend3("");//体温测量度数

+ 20 - 0
app/src/main/java/com/telpo/facenormal/bean/EventRecordsBean.java

@@ -99,6 +99,26 @@ public class EventRecordsBean {
         private String idCard;
         @SerializedName("phone")
         private String phone;
+        @SerializedName("status")
+        private boolean status;
+        @SerializedName("reasonType")
+        private int reasonType;
+
+        public boolean isStatus() {
+            return status;
+        }
+
+        public void setStatus(boolean status) {
+            this.status = status;
+        }
+
+        public int getReasonType() {
+            return reasonType;
+        }
+
+        public void setReasonType(int reasonType) {
+            this.reasonType = reasonType;
+        }
 
         public String getPhone() {
             return phone;

+ 14 - 0
app/src/main/java/com/telpo/facenormal/bean/RecordsRetentionBean.java

@@ -0,0 +1,14 @@
+package com.telpo.facenormal.bean;
+
+public class RecordsRetentionBean {
+    private String type;
+    private String name;
+    private String Cardid;
+    private String Photo;
+    private String idCardInfo;
+    private String phone;
+    private boolean Status;
+    private int ReasonType;
+
+
+}