Browse Source

1.2.3 推送时,新增字段

xulh 7 months ago
parent
commit
7b0cf138eb

+ 49 - 0
app/src/main/java/com/hh/bdface/bean/PushEnterExitRecordRequestBean.java

@@ -36,6 +36,7 @@ public class PushEnterExitRecordRequestBean implements Serializable {
         private String extend1;
         private String extend3;
         private String verifyScore;
+        private String verify_score;
         private String twStatus;
         private String idCard;
 
@@ -223,6 +224,43 @@ public class PushEnterExitRecordRequestBean implements Serializable {
         public void setIdCard(String idCard) {
             this.idCard = idCard;
         }
+
+        public String getVerify_score() {
+            return verify_score;
+        }
+
+        public void setVerify_score(String verify_score) {
+            this.verify_score = verify_score;
+        }
+
+        @Override
+        public String toString() {
+            return "DataDTO{" +
+                    "recordid=" + recordid +
+                    ", name='" + name + '\'' +
+                    ", sn='" + sn + '\'' +
+                    ", pin='" + pin + '\'' +
+                    ", cardid='" + cardid + '\'' +
+                    ", cardIdEx='" + cardIdEx + '\'' +
+                    ", verifytype=" + verifytype +
+                    ", time='" + time + '\'' +
+                    ", outtype=" + outtype +
+                    ", rightno=" + rightno +
+                    ", extend4='" + extend4 + '\'' +
+                    ", jkmStatus='" + jkmStatus + '\'' +
+                    ", jkmType=" + jkmType +
+                    ", hsStatus='" + hsStatus + '\'' +
+                    ", ymStatus='" + ymStatus + '\'' +
+                    ", xcInfo='" + xcInfo + '\'' +
+                    ", extend5='" + extend5 + '\'' +
+                    ", extend1='" + extend1 + '\'' +
+                    ", extend3='" + extend3 + '\'' +
+                    ", verifyScore='" + verifyScore + '\'' +
+                    ", verify_score='" + verify_score + '\'' +
+                    ", idCard='" + idCard + '\'' +
+                    ", twStatus='" + twStatus + '\'' +
+                    '}';
+        }
     }
 
 
@@ -257,4 +295,15 @@ public class PushEnterExitRecordRequestBean implements Serializable {
     public void setData(List<DataDTO> data) {
         this.data = data;
     }
+
+
+    @Override
+    public String toString() {
+        return "PushEnterExitRecordRequestBean{" +
+                "SN='" + SN + '\'' +
+                ", action=" + action +
+                ", orgid='" + orgid + '\'' +
+                ", data=" + data +
+                '}';
+    }
 }

+ 6 - 0
app/src/main/java/com/hh/bdface/ui/MainActivity.java

@@ -1651,6 +1651,9 @@ public class MainActivity extends BaseActivity implements View.OnClickListener,
                                         dataDTO.setOuttype(0);
                                         dataDTO.setRightno(103);
                                         dataDTO.setVerifytype(0);
+                                        // 比对分值
+                                        dataDTO.setVerifyScore(score+"");
+                                        dataDTO.setVerify_score(score+"");
 
 
                                         List<PushEnterExitRecordRequestBean.DataDTO> dataDTOList = new ArrayList<>();
@@ -1658,6 +1661,9 @@ public class MainActivity extends BaseActivity implements View.OnClickListener,
                                         pushbean.setData(dataDTOList);
                                         pushbean.setSN(deviceSN);
 
+
+                                        AppLogUtils.e("pushbean--"+pushbean.toString());
+
                                         mPushEnterExitRecordPresenter.requestPushEnterExitRecord(pushbean);
 
 

+ 2 - 2
config.gradle

@@ -7,8 +7,8 @@ ext {
 //            minSdkVersion    : 24,
             minSdkVersion    : 22,
             targetSdkVersion : 22,
-            versionCode      : 2,
-            versionName      : "1.2.2"
+            versionCode      : 3,
+            versionName      : "1.2.3"
     ]
     //依赖 配置
     dependencies = [