xuxiuxi
2017-08-01 db2c035c3406d310af30094ec2bbf55ab396bf83
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
@@ -49,6 +49,24 @@
   private Date createTime;
    public static long initialSelectId = 1;
    private long idForSelect;
   private String surveillancePhoto;
   private int stTrackId;
   private String visitorType;
   private String authentication;
    public SurveillanceQueryItem() {
        if (initialSelectId > 10000) {
            initialSelectId = 1;
        }
        idForSelect = initialSelectId;
        initialSelectId++;
    }
   /**
    * Get 人员主键
    */
@@ -189,11 +207,12 @@
    }
    public String getBase64Image() {
      ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
      bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
      byte[] imageBytes = byteArrayOutputStream.toByteArray();
      String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
        return encodedImage;
//      ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
//      bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
//      byte[] imageBytes = byteArrayOutputStream.toByteArray();
//      String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
//        return encodedImage;
      return "";
    }
    public void setBase64Image(String base64Image) {
@@ -240,4 +259,43 @@
      this.createTime = createTime;
   }
    public long getIdForSelect() {
        return idForSelect;
    }
    public void setIdForSelect(long idForSelect) {
        this.idForSelect = idForSelect;
    }
   public String getSurveillancePhoto() {
      return surveillancePhoto;
   }
   public void setSurveillancePhoto(String surveillancePhoto) {
      this.surveillancePhoto = surveillancePhoto;
   }
   public int getStTrackId() {
      return stTrackId;
   }
   public void setStTrackId(int stTrackId) {
      this.stTrackId = stTrackId;
   }
   public String getVisitorType() {
      return visitorType;
   }
   public void setVisitorType(String visitorType) {
      this.visitorType = visitorType;
   }
   public String getAuthentication() {
      return authentication;
   }
   public void setAuthentication(String authentication) {
      this.authentication = authentication;
   }
}