xuxiuxi
2017-07-10 d6119c2d7fe2f802dd224d77bf2d95eeeedb4526
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
@@ -49,6 +49,20 @@
   private Date createTime;
    public static long initialSelectId = 1;
    private long idForSelect;
   private String surveillancePhoto;
    public SurveillanceQueryItem() {
        if (initialSelectId > 10000) {
            initialSelectId = 1;
        }
        idForSelect = initialSelectId;
        initialSelectId++;
    }
   /**
    * Get 人员主键
    */
@@ -189,11 +203,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 +255,19 @@
      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;
   }
}