From 37ab8b5ba208303f9f47454c053528f4e4fdf68c Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 20 三月 2017 15:11:31 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Image.java | 85 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/PersonExt.java | 44 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visiting.java | 126 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VistorTypeQueryItem.java | 43 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VistorTypeQueryCondition.java | 27 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitMatter.java | 105 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/CommonVariables.java | 43 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/ResultBean.java | 64 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PlaceQueryItem.java | 76 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseEntity.java | 13 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Place.java | 105 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitPersonType.java | 85 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Checking.java | 126 ++ VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/listeners/OkButtonClickedListener.java | 11 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visit.java | 269 +++++ VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseActivity.java | 2 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitStat.java | 85 + VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/widget/SingleSelectionPopup.java | 12 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Calling.java | 126 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Company.java | 64 + VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/UrlUtil.java | 2 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/FaceImage.java | 125 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/BaseCondition.java | 14 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PersonQueryItem.java | 372 +++++++ VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseApplication.java | 3 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/CheckingCompany.java | 64 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PlaceQueryCondition.java | 27 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Person.java | 370 +++++++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PersonQueryCondition.java | 43 VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java | 51 VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/GetNetResultJson.java | 14 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitorType.java | 105 ++ VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/activity/TestARGB8888Actiivty.java | 2 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseCommonCallBack.java | 67 + VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Department.java | 85 + VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/AppApi.java | 9 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Post.java | 64 + 37 files changed, 2,921 insertions(+), 7 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseCommonCallBack.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseCommonCallBack.java new file mode 100644 index 0000000..cb986e1 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseCommonCallBack.java @@ -0,0 +1,67 @@ +package cn.com.basic.face.discern.common; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +import org.xutils.common.Callback; + +import java.util.List; + + +import cn.com.basic.face.discern.query.item.VistorTypeQueryItem; + +/** + * Created by xiuxi on 2017/3/20. + */ + +public abstract class BaseCommonCallBack implements Callback.CommonCallback<ResultBean>{ + + public ResultBean resultBean; + + public <T> T getBean(Class<T> requiredType) { + Object data = resultBean.getData(); + if (data != null) { + if (data instanceof JSONObject) { + JSONObject jsonObj = (JSONObject) data; + return JSON.parseObject(jsonObj.toJSONString(), requiredType); + } + } + return null; + } + + public <T> List<T> getList(Class<T> requiredType) { + Object data = resultBean.getData(); + if (data != null) { + if (data instanceof JSONArray) { + JSONArray jsonArray = (JSONArray) data; + return JSON.parseArray(jsonArray.toJSONString(), requiredType); + } + } + return null; + } + + @Override + public void onSuccess(ResultBean resultBean) { + this.resultBean = resultBean; + success(); + } + + public abstract void success(); + + @Override + public void onCancelled(CancelledException cex) { + System.out.print("hello"); + } + + @Override + public void onError(Throwable ex, boolean isOnCallback) { + System.out.print("hello"); + } + + @Override + public void onFinished() { + System.out.print("hello"); + } + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseEntity.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseEntity.java new file mode 100644 index 0000000..69f4b7f --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/BaseEntity.java @@ -0,0 +1,13 @@ +package cn.com.basic.face.discern.common; +public class BaseEntity { + + public int getPageNum() { + return 1; + } + + public int getPageSize() { + return 10; + } + + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/CommonVariables.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/CommonVariables.java new file mode 100644 index 0000000..5fca1d6 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/CommonVariables.java @@ -0,0 +1,43 @@ +package cn.com.basic.face.discern.common; + +public class CommonVariables { + + public static class ImageType { + private static final int FACE1 = 1; //姝i潰鐓х墖1锛堝瓨鏀惧埌EmployeeFace/VisitFace琛級 + private static final int FACE2 = 2; //姝i潰鐓х墖2锛堝瓨鏀惧埌EmployeeFace/VisitFace琛級 + private static final int FACE_L_SIDE = 3; //锛堜富浣撹瀵燂紝<=45搴︼級宸︿晶鑴哥収鐗囷紙瀛樻斁鍒癊mployeeFace/VisitFace琛級 + private static final int FACE_R_SIDE = 4; //锛堜富浣撹瀵燂紝<=45搴︼級鍙充晶鑴哥収鐗囷紙瀛樻斁鍒癊mployeeFace/VisitFace琛級 + private static final int FACE_T_SIDE = 5; //锛堜富浣撹瀵燂紝<=45搴︼級椤朵晶鑴哥収鐗囷紙瀛樻斁鍒癊mployeeFace/VisitFace琛級 + private static final int FACE_B_SIDE = 6; //锛堜富浣撹瀵燂紝<=45搴︼級搴曚晶鑴哥収鐗囷紙瀛樻斁鍒癊mployeeFace/VisitFace琛級 + private static final int FACE_UPLOADED = 7; //涓婁紶鐓х墖锛堝瓨鏀惧埌EmployeeFace/VisitFace琛級 + private static final int ICON = 8; // 鍥炬爣锛堝瓨鏀惧埌Image琛級 + private static final int IDENTIFICATION_CARD = 9; //韬唤璇佺収鐗囷紙瀛樻斁鍒癐mage琛級 + private static final int BUSINESS_CARD = 10; //鍚嶇墖鐓х墖锛堝瓨鏀惧埌Image琛級 + private static final int OTHER_CARD = 11; //鍏朵粬璇佷欢锛堝瓨鏀惧埌Image琛級 + } + + public static class Type { + private static final int NORMAL_VISITOR = 1; //鏅�氳瀹� + private static final int BLACK_LIST = 2; //榛戝悕鍗� + private static final int TEACHER = 3; //鏁欏笀 + private static final int STUDENT = 4; //瀛︾敓 + private static final int LEADER = 5; //棰嗗骞查儴 + + } + + + public static class StatusID { + private static final int NO_REGISTER = 1; //鏈敞鍐� + private static final int REGISTERED = 2; //宸叉敞鍐岋紙璁垮锛� + private static final int VISITOR_ENTERED = 3; //鏉ヨ鐧昏锛堣瀹級 + private static final int VISITOR_EXITED = 4; //绛剧锛堣瀹級 + private static final int EMP_ENTERED = 5; //绛惧埌锛堝憳宸ワ級 + private static final int EMP_EXITED = 6; //绛鹃��锛堝憳宸ワ級 + } + + public static class EnterOrExit { + private static final int ENTER = 1; //杩� + private static final int EXIT = 2; //鍑� + } + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/ResultBean.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/ResultBean.java new file mode 100644 index 0000000..06e8c4f --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/common/ResultBean.java @@ -0,0 +1,64 @@ +package cn.com.basic.face.discern.common; + +import java.util.List; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import org.xutils.http.annotation.HttpResponse; +import org.xutils.sample.http.JsonResponseParser; + +@HttpResponse(parser = JsonResponseParser.class) +public class ResultBean { + public static final String OK = "0"; + private String code; + private String message; + private Object data; + public String getCode() { + return code; + } + public void setCode(String code) { + this.code = code; + } + public String getMessage() { + return message; + } + public void setMessage(String message) { + this.message = message; + } + public Object getData() { + return data; + } + public void setData(Object data) { + this.data = data; + } + + public <T> T getBeanOfType(Class<T> requiredType) { + if (data != null) { + if (data instanceof JSONObject) { + JSONObject jsonObj = (JSONObject) data; + return JSON.parseObject(jsonObj.toJSONString(), requiredType); + } + } + return null; + } + + public <T> List<T> getListBeanOfType(Class<T> requiredType) { + if (data != null) { + if (data instanceof JSONArray) { + JSONArray jsonArray = (JSONArray) data; + return JSON.parseArray(jsonArray.toJSONString(), requiredType); + } + } + return null; + } + + public boolean isSuccess() { + if (OK.equals(getCode())) { + return true; + } else { + return false; + } + } + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Calling.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Calling.java new file mode 100644 index 0000000..beaf4eb --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Calling.java @@ -0,0 +1,126 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; +import java.util.Date; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Calling + */ +public class Calling extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Calling"; + + public static final class FieldNames { + /** + * 绛惧埌浜嬩欢涓婚敭 + */ + public static final String id = "id"; + /** + * 鍛煎彨鏃堕棿 + */ + public static final String callDt = "callDt"; + /** + * 鍛煎彨浜哄憳涓婚敭 + */ + public static final String callerPersonId = "callerPersonId"; + /** + * 琚懠鍙汉鍛樹富閿� + */ + public static final String calleePersonId = "calleePersonId"; + /** + * 鍛煎彨鍙戠敓鎵�鍦ㄨ澶�(鍦扮偣) + */ + public static final String placeId = "placeId"; + } + + // 绛惧埌浜嬩欢涓婚敭 + private Integer id; + // 鍛煎彨鏃堕棿 + private Date callDt; + // 鍛煎彨浜哄憳涓婚敭 + private Integer callerPersonId; + // 琚懠鍙汉鍛樹富閿� + private Integer calleePersonId; + // 鍛煎彨鍙戠敓鎵�鍦ㄨ澶�(鍦扮偣) + private Integer placeId; + + /** + * Get 绛惧埌浜嬩欢涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 绛惧埌浜嬩欢涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 鍛煎彨鏃堕棿 + */ + public Date getCallDt() { + return callDt; + } + + /** + * Set 鍛煎彨鏃堕棿 + */ + public void setCallDt(Date callDt) { + this.callDt = callDt; + } + + /** + * Get 鍛煎彨浜哄憳涓婚敭 + */ + public Integer getCallerPersonId() { + return callerPersonId; + } + + /** + * Set 鍛煎彨浜哄憳涓婚敭 + */ + public void setCallerPersonId(Integer callerPersonId) { + this.callerPersonId = callerPersonId; + } + + /** + * Get 琚懠鍙汉鍛樹富閿� + */ + public Integer getCalleePersonId() { + return calleePersonId; + } + + /** + * Set 琚懠鍙汉鍛樹富閿� + */ + public void setCalleePersonId(Integer calleePersonId) { + this.calleePersonId = calleePersonId; + } + + /** + * Get 鍛煎彨鍙戠敓鎵�鍦ㄨ澶�(鍦扮偣) + */ + public Integer getPlaceId() { + return placeId; + } + + /** + * Set 鍛煎彨鍙戠敓鎵�鍦ㄨ澶�(鍦扮偣) + */ + public void setPlaceId(Integer placeId) { + this.placeId = placeId; + } + + public String toString() { + return + ",绛惧埌浜嬩欢涓婚敭 ="+ id + ",鍛煎彨鏃堕棿 =" + callDt + ",鍛煎彨浜哄憳涓婚敭 ="+ callerPersonId + + ",琚懠鍙汉鍛樹富閿� ="+ calleePersonId + ",鍛煎彨鍙戠敓鎵�鍦ㄨ澶�(鍦扮偣) ="+ placeId ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Checking.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Checking.java new file mode 100644 index 0000000..7b912f2 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Checking.java @@ -0,0 +1,126 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; +import java.util.Date; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Checking + */ +public class Checking extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Checking"; + + public static final class FieldNames { + /** + * 绛惧埌浜嬩欢涓婚敭 + */ + public static final String id = "id"; + /** + * 绛惧埌鐘舵�� + */ + public static final String statusId = "statusId"; + /** + * 绛惧埌鏃堕棿 + */ + public static final String statusDt = "statusDt"; + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + /** + * 绛惧埌浣嶇疆 + */ + public static final String placeId = "placeId"; + } + + // 绛惧埌浜嬩欢涓婚敭 + private Integer id; + // 绛惧埌鐘舵�� + private Integer statusId; + // 绛惧埌鏃堕棿 + private Date statusDt; + // 浜哄憳涓婚敭 + private Integer personId; + // 绛惧埌浣嶇疆 + private Integer placeId; + + /** + * Get 绛惧埌浜嬩欢涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 绛惧埌浜嬩欢涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 绛惧埌鐘舵�� + */ + public Integer getStatusId() { + return statusId; + } + + /** + * Set 绛惧埌鐘舵�� + */ + public void setStatusId(Integer statusId) { + this.statusId = statusId; + } + + /** + * Get 绛惧埌鏃堕棿 + */ + public Date getStatusDt() { + return statusDt; + } + + /** + * Set 绛惧埌鏃堕棿 + */ + public void setStatusDt(Date statusDt) { + this.statusDt = statusDt; + } + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 绛惧埌浣嶇疆 + */ + public Integer getPlaceId() { + return placeId; + } + + /** + * Set 绛惧埌浣嶇疆 + */ + public void setPlaceId(Integer placeId) { + this.placeId = placeId; + } + + public String toString() { + return + ",绛惧埌浜嬩欢涓婚敭 ="+ id + ",绛惧埌鐘舵�� =" + statusId + ",绛惧埌鏃堕棿 =" + statusDt + + ",浜哄憳涓婚敭 =" + personId + ",绛惧埌浣嶇疆 =" + placeId ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/CheckingCompany.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/CheckingCompany.java new file mode 100644 index 0000000..8acb5d1 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/CheckingCompany.java @@ -0,0 +1,64 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * CheckingCompany + */ +public class CheckingCompany extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "CheckingCompany"; + + public static final class FieldNames { + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + /** + * 鍏徃涓婚敭 + */ + public static final String companyId = "companyId"; + } + + // 浜哄憳涓婚敭 + private Integer personId; + // 鍏徃涓婚敭 + private Integer companyId; + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public String toString() { + return + ",浜哄憳涓婚敭 =" + personId + ",鍏徃涓婚敭 =" + companyId ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Company.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Company.java new file mode 100644 index 0000000..d4ec8cc --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Company.java @@ -0,0 +1,64 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Company + */ +public class Company extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Company"; + + public static final class FieldNames { + /** + * 鍏徃涓婚敭 + */ + public static final String id = "id"; + /** + * 鍏徃鍚嶇О + */ + public static final String name = "name"; + } + + // 鍏徃涓婚敭 + private Integer id; + // 鍏徃鍚嶇О + private String name; + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 鍏徃鍚嶇О + */ + public String getName() { + return name; + } + + /** + * Set 鍏徃鍚嶇О + */ + public void setName(String name) { + this.name = name; + } + + public String toString() { + return + ",鍏徃涓婚敭 =" + id + ",鍏徃鍚嶇О =" + name ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Department.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Department.java new file mode 100644 index 0000000..e4b7a52 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Department.java @@ -0,0 +1,85 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Department + */ +public class Department extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Department"; + + public static final class FieldNames { + /** + * 閮ㄩ棬涓婚敭 + */ + public static final String id = "id"; + /** + * 閮ㄩ棬鍚嶇О + */ + public static final String label = "label"; + /** + * 閮ㄩ棬棣栧瓧姣� + */ + public static final String labelSpell = "labelSpell"; + } + + // 閮ㄩ棬涓婚敭 + private Integer id; + // 閮ㄩ棬鍚嶇О + private String label; + // 閮ㄩ棬棣栧瓧姣� + private String labelSpell; + + /** + * Get 閮ㄩ棬涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 閮ㄩ棬涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 閮ㄩ棬鍚嶇О + */ + public String getLabel() { + return label; + } + + /** + * Set 閮ㄩ棬鍚嶇О + */ + public void setLabel(String label) { + this.label = label; + } + + /** + * Get 閮ㄩ棬棣栧瓧姣� + */ + public String getLabelSpell() { + return labelSpell; + } + + /** + * Set 閮ㄩ棬棣栧瓧姣� + */ + public void setLabelSpell(String labelSpell) { + this.labelSpell = labelSpell; + } + + public String toString() { + return + ",閮ㄩ棬涓婚敭 =" + id + ",閮ㄩ棬鍚嶇О =" + label + ",閮ㄩ棬棣栧瓧姣� ="+ labelSpell + ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/FaceImage.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/FaceImage.java new file mode 100644 index 0000000..64680d4 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/FaceImage.java @@ -0,0 +1,125 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * FaceImage + */ +public class FaceImage extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "FaceImage"; + + public static final class FieldNames { + /** + * 鍛樺伐鍥剧墖涓婚敭 + */ + public static final String faceId = "faceId"; + /** + * 娉ㄥ唽鍏徃涓婚敭 + */ + public static final String registerCompanyId = "registerCompanyId"; + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + /** + * 鍥剧墖鍦板潃 + */ + public static final String imagePath = "imagePath"; + /** + * 鍥剧墖绫诲瀷 + */ + public static final String imageTypeId = "imageTypeId"; + } + + // 鍛樺伐鍥剧墖涓婚敭 + private Integer faceId; + // 娉ㄥ唽鍏徃涓婚敭 + private Integer registerCompanyId; + // 浜哄憳涓婚敭 + private Integer personId; + // 鍥剧墖鍦板潃 + private String imagePath; + // 鍥剧墖绫诲瀷 + private Integer imageTypeId; + + /** + * Get 鍛樺伐鍥剧墖涓婚敭 + */ + public Integer getFaceId() { + return faceId; + } + + /** + * Set 鍛樺伐鍥剧墖涓婚敭 + */ + public void setFaceId(Integer faceId) { + this.faceId = faceId; + } + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public Integer getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setRegisterCompanyId(Integer registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 鍥剧墖鍦板潃 + */ + public String getImagePath() { + return imagePath; + } + + /** + * Set 鍥剧墖鍦板潃 + */ + public void setImagePath(String imagePath) { + this.imagePath = imagePath; + } + + /** + * Get 鍥剧墖绫诲瀷 + */ + public Integer getImageTypeId() { + return imageTypeId; + } + + /** + * Set 鍥剧墖绫诲瀷 + */ + public void setImageTypeId(Integer imageTypeId) { + this.imageTypeId = imageTypeId; + } + + public String toString() { + return + ",鍛樺伐鍥剧墖涓婚敭 ="+ faceId + ",娉ㄥ唽鍏徃涓婚敭 ="+ registerCompanyId + ",浜哄憳涓婚敭 =" + personId + + ",鍥剧墖鍦板潃 =" + imagePath + ",鍥剧墖绫诲瀷 =" + imageTypeId; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Image.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Image.java new file mode 100644 index 0000000..f1590e7 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Image.java @@ -0,0 +1,85 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Image + */ +public class Image extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Image"; + + public static final class FieldNames { + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + /** + * 鍥剧墖绫诲瀷 + */ + public static final String imageType = "imageType"; + /** + * 鍥剧墖鍦板潃 + */ + public static final String imagePath = "imagePath"; + } + + // 浜哄憳涓婚敭 + private Integer personId; + // 鍥剧墖绫诲瀷 + private Integer imageType; + // 鍥剧墖鍦板潃 + private String imagePath; + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 鍥剧墖绫诲瀷 + */ + public Integer getImageType() { + return imageType; + } + + /** + * Set 鍥剧墖绫诲瀷 + */ + public void setImageType(Integer imageType) { + this.imageType = imageType; + } + + /** + * Get 鍥剧墖鍦板潃 + */ + public String getImagePath() { + return imagePath; + } + + /** + * Set 鍥剧墖鍦板潃 + */ + public void setImagePath(String imagePath) { + this.imagePath = imagePath; + } + + public String toString() { + return + ",浜哄憳涓婚敭 =" + personId + ",鍥剧墖绫诲瀷 =" + imageType + ",鍥剧墖鍦板潃 =" + imagePath + ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Person.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Person.java new file mode 100644 index 0000000..c606ec0 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Person.java @@ -0,0 +1,370 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; +import java.util.Date; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Person + */ +public class Person extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Person"; + + public static final class FieldNames { + /** + * 浜哄憳涓婚敭 + */ + public static final String id = "id"; + /** + * 浜哄憳鍚嶅瓧 + */ + public static final String name = "name"; + /** + * 浜哄憳鍚嶉瀛楁瘝 + */ + public static final String nameSpell = "nameSpell"; + /** + * 鎬у埆 + */ + public static final String gender = "gender"; + /** + * 鍥界睄 + */ + public static final String country = "country"; + /** + * 鐪� + */ + public static final String province = "province"; + /** + * 甯� + */ + public static final String city = "city"; + /** + * 鍑虹敓鏃ユ湡 + */ + public static final String birthday = "birthday"; + /** + * 搴ф満鐢佃瘽 + */ + public static final String phone = "phone"; + /** + * 绉诲姩鐢佃瘽 + */ + public static final String mobilePhone = "mobilePhone"; + /** + * 璇佷欢绫诲瀷 + */ + public static final String identityType = "identityType"; + /** + * 璇佷欢缂栧彿 + */ + public static final String identify = "identify"; + /** + * 鍏徃涓婚敭 + */ + public static final String companyId = "companyId"; + /** + * 閮ㄩ棬涓婚敭 + */ + public static final String departmentId = "departmentId"; + /** + * 鑱屽姟涓婚敭 + */ + public static final String postId = "postId"; + /** + * 浜哄憳澶囨敞娑堟伅 + */ + public static final String remark = "remark"; + /** + * 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + */ + public static final String warning = "warning"; + } + + // 浜哄憳涓婚敭 + private Integer id; + // 浜哄憳鍚嶅瓧 + private String name; + // 浜哄憳鍚嶉瀛楁瘝 + private String nameSpell; + // 鎬у埆 + private Integer gender; + // 鍥界睄 + private String country; + // 鐪� + private String province; + // 甯� + private String city; + // 鍑虹敓鏃ユ湡 + private Date birthday; + // 搴ф満鐢佃瘽 + private String phone; + // 绉诲姩鐢佃瘽 + private String mobilePhone; + // 璇佷欢绫诲瀷 + private Integer identityType; + // 璇佷欢缂栧彿 + private String identify; + // 鍏徃涓婚敭 + private Integer companyId; + // 閮ㄩ棬涓婚敭 + private Integer departmentId; + // 鑱屽姟涓婚敭 + private Integer postId; + // 浜哄憳澶囨敞娑堟伅 + private String remark; + // 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + private Integer warning; + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 浜哄憳鍚嶅瓧 + */ + public String getName() { + return name; + } + + /** + * Set 浜哄憳鍚嶅瓧 + */ + public void setName(String name) { + this.name = name; + } + + /** + * Get 浜哄憳鍚嶉瀛楁瘝 + */ + public String getNameSpell() { + return nameSpell; + } + + /** + * Set 浜哄憳鍚嶉瀛楁瘝 + */ + public void setNameSpell(String nameSpell) { + this.nameSpell = nameSpell; + } + + /** + * Get 鎬у埆 + */ + public Integer getGender() { + return gender; + } + + /** + * Set 鎬у埆 + */ + public void setGender(Integer gender) { + this.gender = gender; + } + + /** + * Get 鍥界睄 + */ + public String getCountry() { + return country; + } + + /** + * Set 鍥界睄 + */ + public void setCountry(String country) { + this.country = country; + } + + /** + * Get 鐪� + */ + public String getProvince() { + return province; + } + + /** + * Set 鐪� + */ + public void setProvince(String province) { + this.province = province; + } + + /** + * Get 甯� + */ + public String getCity() { + return city; + } + + /** + * Set 甯� + */ + public void setCity(String city) { + this.city = city; + } + + /** + * Get 鍑虹敓鏃ユ湡 + */ + public Date getBirthday() { + return birthday; + } + + /** + * Set 鍑虹敓鏃ユ湡 + */ + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + /** + * Get 搴ф満鐢佃瘽 + */ + public String getPhone() { + return phone; + } + + /** + * Set 搴ф満鐢佃瘽 + */ + public void setPhone(String phone) { + this.phone = phone; + } + + /** + * Get 绉诲姩鐢佃瘽 + */ + public String getMobilePhone() { + return mobilePhone; + } + + /** + * Set 绉诲姩鐢佃瘽 + */ + public void setMobilePhone(String mobilePhone) { + this.mobilePhone = mobilePhone; + } + + /** + * Get 璇佷欢绫诲瀷 + */ + public Integer getIdentityType() { + return identityType; + } + + /** + * Set 璇佷欢绫诲瀷 + */ + public void setIdentityType(Integer identityType) { + this.identityType = identityType; + } + + /** + * Get 璇佷欢缂栧彿 + */ + public String getIdentify() { + return identify; + } + + /** + * Set 璇佷欢缂栧彿 + */ + public void setIdentify(String identify) { + this.identify = identify; + } + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * Get 閮ㄩ棬涓婚敭 + */ + public Integer getDepartmentId() { + return departmentId; + } + + /** + * Set 閮ㄩ棬涓婚敭 + */ + public void setDepartmentId(Integer departmentId) { + this.departmentId = departmentId; + } + + /** + * Get 鑱屽姟涓婚敭 + */ + public Integer getPostId() { + return postId; + } + + /** + * Set 鑱屽姟涓婚敭 + */ + public void setPostId(Integer postId) { + this.postId = postId; + } + + /** + * Get 浜哄憳澶囨敞娑堟伅 + */ + public String getRemark() { + return remark; + } + + /** + * Set 浜哄憳澶囨敞娑堟伅 + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Get 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + */ + public Integer getWarning() { + return warning; + } + + /** + * Set 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + */ + public void setWarning(Integer warning) { + this.warning = warning; + } + + public String toString() { + return + ",浜哄憳涓婚敭 =" + id + ",浜哄憳鍚嶅瓧 =" + name + ",浜哄憳鍚嶉瀛楁瘝 ="+ nameSpell + + ",鎬у埆 =" + gender + ",鍥界睄 =" + country + ",鐪� =" + province + + ",甯� =" + city + ",鍑虹敓鏃ユ湡 =" + birthday + ",搴ф満鐢佃瘽 =" + phone + + ",绉诲姩鐢佃瘽 =" + mobilePhone + ",璇佷欢绫诲瀷 =" + identityType + ",璇佷欢缂栧彿 =" + identify + + ",鍏徃涓婚敭 =" + companyId + ",閮ㄩ棬涓婚敭 =" + departmentId + ",鑱屽姟涓婚敭 =" + postId + + ",浜哄憳澶囨敞娑堟伅 ="+ remark + ",鍗遍櫓浜哄憳璀﹀憡娑堟伅 ="+ warning ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/PersonExt.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/PersonExt.java new file mode 100644 index 0000000..6ae5546 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/PersonExt.java @@ -0,0 +1,44 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * PersonExt + */ +public class PersonExt extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "PersonExt"; + + public static final class FieldNames { + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + } + + // 浜哄憳涓婚敭 + private Integer personId; + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + public String toString() { + return + ",浜哄憳涓婚敭 =" + personId ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Place.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Place.java new file mode 100644 index 0000000..cffab7d --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Place.java @@ -0,0 +1,105 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Place + */ +public class Place extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Place"; + + public static final class FieldNames { + /** + * 璁惧涓婚敭 + */ + public static final String id = "id"; + /** + * 鍏徃涓婚敭 + */ + public static final String companyId = "companyId"; + /** + * 璁惧鍦扮偣 + */ + public static final String label = "label"; + /** + * 璁惧鎺堟潈鐮� + */ + public static final String authorizationId = "authorizationId"; + } + + // 璁惧涓婚敭 + private Integer id; + // 鍏徃涓婚敭 + private Integer companyId; + // 璁惧鍦扮偣 + private String label; + // 璁惧鎺堟潈鐮� + private String authorizationId; + + /** + * Get 璁惧涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 璁惧涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * Get 璁惧鍦扮偣 + */ + public String getLabel() { + return label; + } + + /** + * Set 璁惧鍦扮偣 + */ + public void setLabel(String label) { + this.label = label; + } + + /** + * Get 璁惧鎺堟潈鐮� + */ + public String getAuthorizationId() { + return authorizationId; + } + + /** + * Set 璁惧鎺堟潈鐮� + */ + public void setAuthorizationId(String authorizationId) { + this.authorizationId = authorizationId; + } + + public String toString() { + return + ",璁惧涓婚敭 =" + id + ",鍏徃涓婚敭 =" + companyId + ",璁惧鍦扮偣 =" + label + + ",璁惧鎺堟潈鐮� ="+ authorizationId; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Post.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Post.java new file mode 100644 index 0000000..537794e --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Post.java @@ -0,0 +1,64 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Post + */ +public class Post extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Post"; + + public static final class FieldNames { + /** + * 鑱屼綅涓婚敭 + */ + public static final String id = "id"; + /** + * 鑱屼綅鍚嶇О + */ + public static final String label = "label"; + } + + // 鑱屼綅涓婚敭 + private Integer id; + // 鑱屼綅鍚嶇О + private String label; + + /** + * Get 鑱屼綅涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 鑱屼綅涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 鑱屼綅鍚嶇О + */ + public String getLabel() { + return label; + } + + /** + * Set 鑱屼綅鍚嶇О + */ + public void setLabel(String label) { + this.label = label; + } + + public String toString() { + return + ",鑱屼綅涓婚敭 =" + id + ",鑱屼綅鍚嶇О =" + label ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visit.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visit.java new file mode 100644 index 0000000..69cd4b5 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visit.java @@ -0,0 +1,269 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; +import java.util.Date; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Visit + */ +public class Visit extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Visit"; + + public static final class FieldNames { + /** + * 璁块棶浜嬩欢涓婚敭 + */ + public static final String id = "id"; + /** + * 璁块棶浜哄憳涓婚敭 + */ + public static final String visitorPersonId = "visitorPersonId"; + /** + * 琚闂汉鍛樹富閿� + */ + public static final String visiteePersonId = "visiteePersonId"; + /** + * 璁块棶浜嬬敱涓婚敭 + */ + public static final String matterId = "matterId"; + /** + * 璁块棶澶囨敞 + */ + public static final String remark = "remark"; + /** + * 鏈�鏂扮殑璁块棶鐘舵�� + */ + public static final String lastStatus = "lastStatus"; + /** + * 鏉ヨ鏃堕棿 + */ + public static final String startTime = "startTime"; + /** + * 绛剧鏃堕棿 + */ + public static final String lastTime = "lastTime"; + /** + * visitorCompanyId + */ + public static final String visitorCompanyId = "visitorCompanyId"; + /** + * visiteeCompanyId + */ + public static final String visiteeCompanyId = "visiteeCompanyId"; + /** + * 璁垮绫诲瀷 + */ + public static final String visitorTypeId = "visitorTypeId"; + /** + * 褰撳墠璁块棶鐨勮鍛婄姸鎬� + */ + public static final String warning = "warning"; + } + + // 璁块棶浜嬩欢涓婚敭 + private Integer id; + // 璁块棶浜哄憳涓婚敭 + private Integer visitorPersonId; + // 琚闂汉鍛樹富閿� + private Integer visiteePersonId; + // 璁块棶浜嬬敱涓婚敭 + private Integer matterId; + // 璁块棶澶囨敞 + private String remark; + // 鏈�鏂扮殑璁块棶鐘舵�� + private Integer lastStatus; + // 鏉ヨ鏃堕棿 + private Date startTime; + // 绛剧鏃堕棿 + private Date lastTime; + // visitorCompanyId + private Integer visitorCompanyId; + // visiteeCompanyId + private Integer visiteeCompanyId; + // 璁垮绫诲瀷 + private Integer visitorTypeId; + // 褰撳墠璁块棶鐨勮鍛婄姸鎬� + private Integer warning; + + /** + * Get 璁块棶浜嬩欢涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 璁块棶浜嬩欢涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 璁块棶浜哄憳涓婚敭 + */ + public Integer getVisitorPersonId() { + return visitorPersonId; + } + + /** + * Set 璁块棶浜哄憳涓婚敭 + */ + public void setVisitorPersonId(Integer visitorPersonId) { + this.visitorPersonId = visitorPersonId; + } + + /** + * Get 琚闂汉鍛樹富閿� + */ + public Integer getVisiteePersonId() { + return visiteePersonId; + } + + /** + * Set 琚闂汉鍛樹富閿� + */ + public void setVisiteePersonId(Integer visiteePersonId) { + this.visiteePersonId = visiteePersonId; + } + + /** + * Get 璁块棶浜嬬敱涓婚敭 + */ + public Integer getMatterId() { + return matterId; + } + + /** + * Set 璁块棶浜嬬敱涓婚敭 + */ + public void setMatterId(Integer matterId) { + this.matterId = matterId; + } + + /** + * Get 璁块棶澶囨敞 + */ + public String getRemark() { + return remark; + } + + /** + * Set 璁块棶澶囨敞 + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Get 鏈�鏂扮殑璁块棶鐘舵�� + */ + public Integer getLastStatus() { + return lastStatus; + } + + /** + * Set 鏈�鏂扮殑璁块棶鐘舵�� + */ + public void setLastStatus(Integer lastStatus) { + this.lastStatus = lastStatus; + } + + /** + * Get 鏉ヨ鏃堕棿 + */ + public Date getStartTime() { + return startTime; + } + + /** + * Set 鏉ヨ鏃堕棿 + */ + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + /** + * Get 绛剧鏃堕棿 + */ + public Date getLastTime() { + return lastTime; + } + + /** + * Set 绛剧鏃堕棿 + */ + public void setLastTime(Date lastTime) { + this.lastTime = lastTime; + } + + /** + * Get visitorCompanyId + */ + public Integer getVisitorCompanyId() { + return visitorCompanyId; + } + + /** + * Set visitorCompanyId + */ + public void setVisitorCompanyId(Integer visitorCompanyId) { + this.visitorCompanyId = visitorCompanyId; + } + + /** + * Get visiteeCompanyId + */ + public Integer getVisiteeCompanyId() { + return visiteeCompanyId; + } + + /** + * Set visiteeCompanyId + */ + public void setVisiteeCompanyId(Integer visiteeCompanyId) { + this.visiteeCompanyId = visiteeCompanyId; + } + + /** + * Get 璁垮绫诲瀷 + */ + public Integer getVisitorTypeId() { + return visitorTypeId; + } + + /** + * Set 璁垮绫诲瀷 + */ + public void setVisitorTypeId(Integer visitorTypeId) { + this.visitorTypeId = visitorTypeId; + } + + /** + * Get 褰撳墠璁块棶鐨勮鍛婄姸鎬� + */ + public Integer getWarning() { + return warning; + } + + /** + * Set 褰撳墠璁块棶鐨勮鍛婄姸鎬� + */ + public void setWarning(Integer warning) { + this.warning = warning; + } + + public String toString() { + return + ",璁块棶浜嬩欢涓婚敭 ="+ id + ",璁块棶浜哄憳涓婚敭 ="+ visitorPersonId + ",琚闂汉鍛樹富閿� ="+ visiteePersonId + + ",璁块棶浜嬬敱涓婚敭 ="+ matterId + ",璁块棶澶囨敞 =" + remark + ",鏈�鏂扮殑璁块棶鐘舵�� ="+ lastStatus + + ",鏉ヨ鏃堕棿 =" + startTime + ",绛剧鏃堕棿 =" + lastTime + ",visitorCompanyId ="+ visitorCompanyId + + ",visiteeCompanyId ="+ visiteeCompanyId + ",璁垮绫诲瀷 =" + visitorTypeId + ",褰撳墠璁块棶鐨勮鍛婄姸鎬� ="+ warning + ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitMatter.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitMatter.java new file mode 100644 index 0000000..d14ce7b --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitMatter.java @@ -0,0 +1,105 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * VisitMatter + */ +public class VisitMatter extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "VisitMatter"; + + public static final class FieldNames { + /** + * 璁块棶浜嬬敱涓婚敭 + */ + public static final String id = "id"; + /** + * 鍏徃涓婚敭 + */ + public static final String companyId = "companyId"; + /** + * 璁块棶浜嬬敱 + */ + public static final String label = "label"; + /** + * 鏄惁鏄彲鐢� + */ + public static final String available = "available"; + } + + // 璁块棶浜嬬敱涓婚敭 + private Integer id; + // 鍏徃涓婚敭 + private Integer companyId; + // 璁块棶浜嬬敱 + private String label; + // 鏄惁鏄彲鐢� + private Integer available; + + /** + * Get 璁块棶浜嬬敱涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 璁块棶浜嬬敱涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * Get 璁块棶浜嬬敱 + */ + public String getLabel() { + return label; + } + + /** + * Set 璁块棶浜嬬敱 + */ + public void setLabel(String label) { + this.label = label; + } + + /** + * Get 鏄惁鏄彲鐢� + */ + public Integer getAvailable() { + return available; + } + + /** + * Set 鏄惁鏄彲鐢� + */ + public void setAvailable(Integer available) { + this.available = available; + } + + public String toString() { + return + ",璁块棶浜嬬敱涓婚敭 ="+ id + ",鍏徃涓婚敭 =" + companyId + ",璁块棶浜嬬敱 =" + label + + ",鏄惁鏄彲鐢� ="+ available ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitPersonType.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitPersonType.java new file mode 100644 index 0000000..ef27643 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitPersonType.java @@ -0,0 +1,85 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * VisitPersonType + */ +public class VisitPersonType extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "VisitPersonType"; + + public static final class FieldNames { + /** + * registerCompanyId + */ + public static final String registerCompanyId = "registerCompanyId"; + /** + * personId + */ + public static final String personId = "personId"; + /** + * visitorTypeId + */ + public static final String visitorTypeId = "visitorTypeId"; + } + + // registerCompanyId + private Integer registerCompanyId; + // personId + private Integer personId; + // visitorTypeId + private Integer visitorTypeId; + + /** + * Get registerCompanyId + */ + public Integer getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set registerCompanyId + */ + public void setRegisterCompanyId(Integer registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + /** + * Get personId + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set personId + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get visitorTypeId + */ + public Integer getVisitorTypeId() { + return visitorTypeId; + } + + /** + * Set visitorTypeId + */ + public void setVisitorTypeId(Integer visitorTypeId) { + this.visitorTypeId = visitorTypeId; + } + + public String toString() { + return + ",registerCompanyId ="+ registerCompanyId + ",personId ="+ personId + ",visitorTypeId ="+ visitorTypeId + ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitStat.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitStat.java new file mode 100644 index 0000000..b435376 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitStat.java @@ -0,0 +1,85 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * VisitStat + */ +public class VisitStat extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "VisitStat"; + + public static final class FieldNames { + /** + * 浜哄憳涓婚敭 + */ + public static final String personId = "personId"; + /** + * 娉ㄥ唽鍏徃涓婚敭 + */ + public static final String registerCompanyId = "registerCompanyId"; + /** + * 鏉ヨ鍏徃娆℃暟 + */ + public static final String totalCount = "totalCount"; + } + + // 浜哄憳涓婚敭 + private Integer personId; + // 娉ㄥ唽鍏徃涓婚敭 + private Integer registerCompanyId; + // 鏉ヨ鍏徃娆℃暟 + private Integer totalCount; + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public Integer getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setRegisterCompanyId(Integer registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + /** + * Get 鏉ヨ鍏徃娆℃暟 + */ + public Integer getTotalCount() { + return totalCount; + } + + /** + * Set 鏉ヨ鍏徃娆℃暟 + */ + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String toString() { + return + ",浜哄憳涓婚敭 =" + personId + ",娉ㄥ唽鍏徃涓婚敭 ="+ registerCompanyId + ",鏉ヨ鍏徃娆℃暟 ="+ totalCount + ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visiting.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visiting.java new file mode 100644 index 0000000..54fb9d5 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/Visiting.java @@ -0,0 +1,126 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; +import java.util.Date; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * Visiting + */ +public class Visiting extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "Visiting"; + + public static final class FieldNames { + /** + * 璁块棶浜嬩欢娴佹按id + */ + public static final String id = "id"; + /** + * 璁块棶浜嬩欢id + */ + public static final String visitId = "visitId"; + /** + * 褰撳墠璁块棶鐘舵�� + */ + public static final String statusId = "statusId"; + /** + * 鏇存柊鐘舵�佹椂闂� + */ + public static final String statusDt = "statusDt"; + /** + * 璁惧浣嶇疆涓婚敭 + */ + public static final String placeId = "placeId"; + } + + // 璁块棶浜嬩欢娴佹按id + private Integer id; + // 璁块棶浜嬩欢id + private Integer visitId; + // 褰撳墠璁块棶鐘舵�� + private Integer statusId; + // 鏇存柊鐘舵�佹椂闂� + private Date statusDt; + // 璁惧浣嶇疆涓婚敭 + private Integer placeId; + + /** + * Get 璁块棶浜嬩欢娴佹按id + */ + public Integer getId() { + return id; + } + + /** + * Set 璁块棶浜嬩欢娴佹按id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 璁块棶浜嬩欢id + */ + public Integer getVisitId() { + return visitId; + } + + /** + * Set 璁块棶浜嬩欢id + */ + public void setVisitId(Integer visitId) { + this.visitId = visitId; + } + + /** + * Get 褰撳墠璁块棶鐘舵�� + */ + public Integer getStatusId() { + return statusId; + } + + /** + * Set 褰撳墠璁块棶鐘舵�� + */ + public void setStatusId(Integer statusId) { + this.statusId = statusId; + } + + /** + * Get 鏇存柊鐘舵�佹椂闂� + */ + public Date getStatusDt() { + return statusDt; + } + + /** + * Set 鏇存柊鐘舵�佹椂闂� + */ + public void setStatusDt(Date statusDt) { + this.statusDt = statusDt; + } + + /** + * Get 璁惧浣嶇疆涓婚敭 + */ + public Integer getPlaceId() { + return placeId; + } + + /** + * Set 璁惧浣嶇疆涓婚敭 + */ + public void setPlaceId(Integer placeId) { + this.placeId = placeId; + } + + public String toString() { + return + ",璁块棶浜嬩欢娴佹按id ="+ id + ",璁块棶浜嬩欢id ="+ visitId + ",褰撳墠璁块棶鐘舵�� ="+ statusId + + ",鏇存柊鐘舵�佹椂闂� ="+ statusDt + ",璁惧浣嶇疆涓婚敭 ="+ placeId ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitorType.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitorType.java new file mode 100644 index 0000000..a387dc6 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/entity/VisitorType.java @@ -0,0 +1,105 @@ +package cn.com.basic.face.discern.entity; + +import java.io.Serializable; + +import cn.com.basic.face.discern.common.BaseEntity; + +/** + * VisitorType + */ +public class VisitorType extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + public static final String MODEL_NAME = "VisitorType"; + + public static final class FieldNames { + /** + * 璁垮绫诲瀷涓婚敭 + */ + public static final String id = "id"; + /** + * 璁垮绫诲瀷 + */ + public static final String label = "label"; + /** + * 娉ㄥ唽鍏徃涓婚敭 + */ + public static final String registerCompanyId = "registerCompanyId"; + /** + * 鏄惁鏄彲鐢� + */ + public static final String available = "available"; + } + + // 璁垮绫诲瀷涓婚敭 + private Integer id; + // 璁垮绫诲瀷 + private String label; + // 娉ㄥ唽鍏徃涓婚敭 + private Integer registerCompanyId; + // 鏄惁鏄彲鐢� + private Integer available; + + /** + * Get 璁垮绫诲瀷涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 璁垮绫诲瀷涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 璁垮绫诲瀷 + */ + public String getLabel() { + return label; + } + + /** + * Set 璁垮绫诲瀷 + */ + public void setLabel(String label) { + this.label = label; + } + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public Integer getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setRegisterCompanyId(Integer registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + /** + * Get 鏄惁鏄彲鐢� + */ + public Integer getAvailable() { + return available; + } + + /** + * Set 鏄惁鏄彲鐢� + */ + public void setAvailable(Integer available) { + this.available = available; + } + + public String toString() { + return + ",璁垮绫诲瀷涓婚敭 ="+ id + ",璁垮绫诲瀷 =" + label + ",娉ㄥ唽鍏徃涓婚敭 ="+ registerCompanyId + + ",鏄惁鏄彲鐢� ="+ available ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/BaseCondition.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/BaseCondition.java new file mode 100644 index 0000000..22254ad --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/BaseCondition.java @@ -0,0 +1,14 @@ +package cn.com.basic.face.discern.query.condition; +public class BaseCondition { + + private String token; + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PersonQueryCondition.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PersonQueryCondition.java new file mode 100644 index 0000000..37a200e --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PersonQueryCondition.java @@ -0,0 +1,43 @@ +package cn.com.basic.face.discern.query.condition; + + +public class PersonQueryCondition extends BaseCondition { + + // 鍛樺伐鍥剧墖涓婚敭 + private String faceId; + // 娉ㄥ唽鍏徃涓婚敭 + private String registerCompanyId; + + /** + * Get 鍛樺伐鍥剧墖涓婚敭 + */ + public String getFaceId() { + return faceId; + } + + /** + * Set 鍛樺伐鍥剧墖涓婚敭 + */ + public void setFaceId(String faceId) { + this.faceId = faceId; + } + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public String getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setRegisterCompanyId(String registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + public String toString() { + return + ",鍛樺伐鍥剧墖涓婚敭 ="+ faceId + ",娉ㄥ唽鍏徃涓婚敭 ="+ registerCompanyId; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PlaceQueryCondition.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PlaceQueryCondition.java new file mode 100644 index 0000000..f5d0e6b --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PlaceQueryCondition.java @@ -0,0 +1,27 @@ +package cn.com.basic.face.discern.query.condition; + + +public class PlaceQueryCondition extends BaseCondition { + + // 璁惧鎺堟潈鐮� + private String authorizationId; + + /** + * Get 璁惧鎺堟潈鐮� + */ + public String getAuthorizationId() { + return authorizationId; + } + + /** + * Set 璁惧鎺堟潈鐮� + */ + public void setAuthorizationId(String authorizationId) { + this.authorizationId = authorizationId; + } + + public String toString() { + return + ",璁惧鎺堟潈鐮� ="+ authorizationId; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VistorTypeQueryCondition.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VistorTypeQueryCondition.java new file mode 100644 index 0000000..45246d5 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VistorTypeQueryCondition.java @@ -0,0 +1,27 @@ +package cn.com.basic.face.discern.query.condition; + + +public class VistorTypeQueryCondition extends BaseCondition { + + // 娉ㄥ唽鍏徃涓婚敭 + private String registerCompanyId; + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public String getRegisterCompanyId() { + return registerCompanyId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setRegisterCompanyId(String registerCompanyId) { + this.registerCompanyId = registerCompanyId; + } + + public String toString() { + return + ",娉ㄥ唽鍏徃涓婚敭 ="+ registerCompanyId; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PersonQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PersonQueryItem.java new file mode 100644 index 0000000..c85584c --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PersonQueryItem.java @@ -0,0 +1,372 @@ +package cn.com.basic.face.discern.query.item; + +import java.util.Date; + + +public class PersonQueryItem { + + // 娉ㄥ唽鍏徃涓婚敭 + private Integer aaId; + // 鍛樺伐鍥剧墖涓婚敭 + private Integer faceId; + // 鍥剧墖鍦板潃 + private String imagePath; + // 鍥剧墖绫诲瀷 + private Integer imageTypeId; + // 浜哄憳鍚嶅瓧 + private String name; + // 浜哄憳鍚嶉瀛楁瘝 + private String nameSpell; + // 鎬у埆 + private String gender; + // 鍥界睄 + private String country; + // 鐪� + private String province; + // 甯� + private String city; + // 鍑虹敓鏃ユ湡 + private Date birthday; + // 搴ф満鐢佃瘽 + private String phone; + // 绉诲姩鐢佃瘽 + private String mobilePhone; + // 璇佷欢绫诲瀷 + private Integer identityType; + // 璇佷欢缂栧彿 + private String identify; + // 鍏徃涓婚敭 + private Integer companyId; + // 閮ㄩ棬涓婚敭 + private Integer departmentId; + // 鑱屽姟涓婚敭 + private Integer postId; + // 浜哄憳澶囨敞娑堟伅 + private String remark; + // 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + private String warning; + // 浜哄憳涓婚敭 + private Integer personId; + // 浜哄憳涓婚敭 + private Integer id; + + /** + * Get 娉ㄥ唽鍏徃涓婚敭 + */ + public Integer getAaId() { + return aaId; + } + + /** + * Set 娉ㄥ唽鍏徃涓婚敭 + */ + public void setAaId(Integer aaId) { + this.aaId = aaId; + } + + /** + * Get 鍛樺伐鍥剧墖涓婚敭 + */ + public Integer getFaceId() { + return faceId; + } + + /** + * Set 鍛樺伐鍥剧墖涓婚敭 + */ + public void setFaceId(Integer faceId) { + this.faceId = faceId; + } + + /** + * Get 鍥剧墖鍦板潃 + */ + public String getImagePath() { + return imagePath; + } + + /** + * Set 鍥剧墖鍦板潃 + */ + public void setImagePath(String imagePath) { + this.imagePath = imagePath; + } + + /** + * Get 鍥剧墖绫诲瀷 + */ + public Integer getImageTypeId() { + return imageTypeId; + } + + /** + * Set 鍥剧墖绫诲瀷 + */ + public void setImageTypeId(Integer imageTypeId) { + this.imageTypeId = imageTypeId; + } + + /** + * Get 浜哄憳鍚嶅瓧 + */ + public String getName() { + return name; + } + + /** + * Set 浜哄憳鍚嶅瓧 + */ + public void setName(String name) { + this.name = name; + } + + /** + * Get 浜哄憳鍚嶉瀛楁瘝 + */ + public String getNameSpell() { + return nameSpell; + } + + /** + * Set 浜哄憳鍚嶉瀛楁瘝 + */ + public void setNameSpell(String nameSpell) { + this.nameSpell = nameSpell; + } + + /** + * Get 鎬у埆 + */ + public String getGender() { + return gender; + } + + /** + * Set 鎬у埆 + */ + public void setGender(String gender) { + this.gender = gender; + } + + /** + * Get 鍥界睄 + */ + public String getCountry() { + return country; + } + + /** + * Set 鍥界睄 + */ + public void setCountry(String country) { + this.country = country; + } + + /** + * Get 鐪� + */ + public String getProvince() { + return province; + } + + /** + * Set 鐪� + */ + public void setProvince(String province) { + this.province = province; + } + + /** + * Get 甯� + */ + public String getCity() { + return city; + } + + /** + * Set 甯� + */ + public void setCity(String city) { + this.city = city; + } + + /** + * Get 鍑虹敓鏃ユ湡 + */ + public Date getBirthday() { + return birthday; + } + + /** + * Set 鍑虹敓鏃ユ湡 + */ + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + /** + * Get 搴ф満鐢佃瘽 + */ + public String getPhone() { + return phone; + } + + /** + * Set 搴ф満鐢佃瘽 + */ + public void setPhone(String phone) { + this.phone = phone; + } + + /** + * Get 绉诲姩鐢佃瘽 + */ + public String getMobilePhone() { + return mobilePhone; + } + + /** + * Set 绉诲姩鐢佃瘽 + */ + public void setMobilePhone(String mobilePhone) { + this.mobilePhone = mobilePhone; + } + + /** + * Get 璇佷欢绫诲瀷 + */ + public Integer getIdentityType() { + return identityType; + } + + /** + * Set 璇佷欢绫诲瀷 + */ + public void setIdentityType(Integer identityType) { + this.identityType = identityType; + } + + /** + * Get 璇佷欢缂栧彿 + */ + public String getIdentify() { + return identify; + } + + /** + * Set 璇佷欢缂栧彿 + */ + public void setIdentify(String identify) { + this.identify = identify; + } + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * Get 閮ㄩ棬涓婚敭 + */ + public Integer getDepartmentId() { + return departmentId; + } + + /** + * Set 閮ㄩ棬涓婚敭 + */ + public void setDepartmentId(Integer departmentId) { + this.departmentId = departmentId; + } + + /** + * Get 鑱屽姟涓婚敭 + */ + public Integer getPostId() { + return postId; + } + + /** + * Set 鑱屽姟涓婚敭 + */ + public void setPostId(Integer postId) { + this.postId = postId; + } + + /** + * Get 浜哄憳澶囨敞娑堟伅 + */ + public String getRemark() { + return remark; + } + + /** + * Set 浜哄憳澶囨敞娑堟伅 + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Get 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + */ + public String getWarning() { + return warning; + } + + /** + * Set 鍗遍櫓浜哄憳璀﹀憡娑堟伅 + */ + public void setWarning(String warning) { + this.warning = warning; + } + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getPersonId() { + return personId; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setPersonId(Integer personId) { + this.personId = personId; + } + + /** + * Get 浜哄憳涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 浜哄憳涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + public String toString() { + return + ",娉ㄥ唽鍏徃涓婚敭 ="+ aaId + ",鍛樺伐鍥剧墖涓婚敭 ="+ faceId + ",鍥剧墖鍦板潃 =" + imagePath + + ",鍥剧墖绫诲瀷 =" + imageTypeId + ",浜哄憳鍚嶅瓧 =" + name + ",浜哄憳鍚嶉瀛楁瘝 ="+ nameSpell + + ",鎬у埆 =" + gender + ",鍥界睄 =" + country + ",鐪� =" + province + + ",甯� =" + city + ",鍑虹敓鏃ユ湡 =" + birthday + ",搴ф満鐢佃瘽 =" + phone + + ",绉诲姩鐢佃瘽 =" + mobilePhone + ",璇佷欢绫诲瀷 =" + identityType + ",璇佷欢缂栧彿 =" + identify + + ",鍏徃涓婚敭 =" + companyId + ",閮ㄩ棬涓婚敭 =" + departmentId + ",鑱屽姟涓婚敭 =" + postId + + ",浜哄憳澶囨敞娑堟伅 ="+ remark + ",鍗遍櫓浜哄憳璀﹀憡娑堟伅 ="+ warning + ",浜哄憳涓婚敭 =" + personId + + ",浜哄憳涓婚敭 =" + id ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PlaceQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PlaceQueryItem.java new file mode 100644 index 0000000..ba2df53 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PlaceQueryItem.java @@ -0,0 +1,76 @@ +package cn.com.basic.face.discern.query.item; + + +public class PlaceQueryItem { + + // 鍏徃涓婚敭 + private Integer companyId; + // 璁惧涓婚敭 + private Integer placeId; + // 鍏徃鍚嶇О + private String companyName; + // 璁惧鍦扮偣 + private String placeLabel; + + /** + * Get 鍏徃涓婚敭 + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * Set 鍏徃涓婚敭 + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * Get 璁惧涓婚敭 + */ + public Integer getPlaceId() { + return placeId; + } + + /** + * Set 璁惧涓婚敭 + */ + public void setPlaceId(Integer placeId) { + this.placeId = placeId; + } + + /** + * Get 鍏徃鍚嶇О + */ + public String getCompanyName() { + return companyName; + } + + /** + * Set 鍏徃鍚嶇О + */ + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + /** + * Get 璁惧鍦扮偣 + */ + public String getPlaceLabel() { + return placeLabel; + } + + /** + * Set 璁惧鍦扮偣 + */ + public void setPlaceLabel(String placeLabel) { + this.placeLabel = placeLabel; + } + + public String toString() { + return + ",鍏徃涓婚敭 =" + companyId + ",璁惧涓婚敭 =" + placeId + ",鍏徃鍚嶇О =" + companyName + + ",璁惧鍦扮偣 =" + placeLabel; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VistorTypeQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VistorTypeQueryItem.java new file mode 100644 index 0000000..77683f3 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VistorTypeQueryItem.java @@ -0,0 +1,43 @@ +package cn.com.basic.face.discern.query.item; + + +public class VistorTypeQueryItem { + + // 璁垮绫诲瀷涓婚敭 + private Integer id; + // 璁垮绫诲瀷 + private String label; + + /** + * Get 璁垮绫诲瀷涓婚敭 + */ + public Integer getId() { + return id; + } + + /** + * Set 璁垮绫诲瀷涓婚敭 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * Get 璁垮绫诲瀷 + */ + public String getLabel() { + return label; + } + + /** + * Set 璁垮绫诲瀷 + */ + public void setLabel(String label) { + this.label = label; + } + + public String toString() { + return + ",璁垮绫诲瀷涓婚敭 ="+ id + ",璁垮绫诲瀷 =" + label ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseActivity.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseActivity.java index a9981ad..25678dc 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseActivity.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseActivity.java @@ -5,6 +5,8 @@ import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; +import org.xutils.x; + /** * Created by zhangbo on 2017/2/15. */ diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseApplication.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseApplication.java index b91bfb9..29b391d 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseApplication.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/base/BaseApplication.java @@ -7,6 +7,8 @@ import com.lzy.okhttputils.model.HttpHeaders; import com.lzy.okhttputils.model.HttpParams; +import org.xutils.x; + /** * Created by zhangbo on 2017/2/15. */ @@ -15,6 +17,7 @@ @Override public void onCreate() { super.onCreate(); + x.Ext.init(this); Fresco.initialize(this); initOkHttpUtils(); } diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/listeners/OkButtonClickedListener.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/listeners/OkButtonClickedListener.java new file mode 100644 index 0000000..7504389 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/listeners/OkButtonClickedListener.java @@ -0,0 +1,11 @@ +package com.bsk.zhangbo.demoforbsk.listeners; + +/** + * Created by xiuxi on 2017/3/20. +*/ + +public interface OkButtonClickedListener { + + public void onItemSelected(int position, Object o, String item); + +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/activity/TestARGB8888Actiivty.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/activity/TestARGB8888Actiivty.java index 98dbcd0..c2b9994 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/activity/TestARGB8888Actiivty.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/activity/TestARGB8888Actiivty.java @@ -64,7 +64,7 @@ // set up the Surface 1 video sink mSurfaceView1 = (SurfaceView) findViewById(R.id.surfaceview1); - button = (Button) findViewById(R.id.btn); + button = null;//(Button) findViewById(R.id.btn); mSurfaceHolder1 = mSurfaceView1.getHolder(); mSurfaceHolder1VideoSink = new SurfaceHolderVideoSink(mSurfaceHolder1); diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java index eab7028..8cc1d3c 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java @@ -1,6 +1,5 @@ package com.bsk.zhangbo.demoforbsk.ui.fragment; -import android.content.Intent; import android.os.Bundle; import android.view.Gravity; import android.view.View; @@ -12,15 +11,21 @@ import com.bsk.zhangbo.demoforbsk.R; import com.bsk.zhangbo.demoforbsk.base.BaseFragment; -import com.bsk.zhangbo.demoforbsk.ui.activity.TestARGB8888Activity; +import com.bsk.zhangbo.demoforbsk.listeners.OkButtonClickedListener; import com.bsk.zhangbo.demoforbsk.widget.BirthdayPickerDialog; import com.bsk.zhangbo.demoforbsk.widget.CountrySelectionPopup; import com.bsk.zhangbo.demoforbsk.widget.SingleSelectionPopup; + +import org.xutils.http.RequestParams; +import org.xutils.x; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; + +import cn.com.basic.face.discern.common.BaseCommonCallBack; +import cn.com.basic.face.discern.query.item.VistorTypeQueryItem; /** * Created by Administrator on 2017/2/20 0020. @@ -32,6 +37,8 @@ private TextView mViewNameTitle,mViewSexTitle,mViewNationTitle,mViewBirthdyTitle,mViewIdClassContent,mViewSexContent,mViewNationContent,mViewBirthdyContent,mViewVisitorClassContent,mViewVisitorClassTitle,mViewPhoneTitle,mViewIdClassTitle,mViewIdNumberTitle,mViewCompanyNameTitle,mViewRemarkTitle; private EditText mViewNameContent,mViewPhoneContent,mViewIdNumberContent,mViewCompanyNameContent,mViewRemarkContent; private List<String> mSexList; + private List<String> mVisitorTypeList; + private List<String> mCredentialsList; private LinearLayout mBaseLayout; private int mNowYear; private int mNowMonth; @@ -115,9 +122,30 @@ @Override protected void initData() { + RequestParams params = new RequestParams("http://192.168.1.51:8080/ssm/VisitorType/v_list.do"); + x.http().get(params, new BaseCommonCallBack() { + public void success() { + List<VistorTypeQueryItem> items = getList(VistorTypeQueryItem.class); + mVisitorTypeList = new ArrayList<String>(); + mViewVisitorClassContent.setText(items.get(0).getLabel()); + for (VistorTypeQueryItem item : items) { + mVisitorTypeList.add(item.getLabel()); + } + } + + }); + + + mSexList = new ArrayList<>(); mSexList.add("鐢�"); mSexList.add("濂�"); + + mCredentialsList = new ArrayList<>(); + mCredentialsList.add("鍚嶇墖"); + mCredentialsList.add("韬唤璇�"); + + mViewIdClassContent.setText(mCredentialsList.get(0)); } @Override @@ -138,11 +166,24 @@ showDatePicker(); break; case R.id.register_visitor_class: -// Toast.makeText(getActivity(),"鏅��",Toast.LENGTH_SHORT).show(); - startActivity(new Intent(getActivity(), TestARGB8888Activity.class)); + SingleSelectionPopup popup1 = new SingleSelectionPopup(getActivity(),mVisitorTypeList,"璁垮绫诲瀷"); + popup1.showAtLocation(mBaseLayout, Gravity.CENTER,0,0); + popup1.addOkButtonClickedListener(new OkButtonClickedListener() { + @Override + public void onItemSelected(int position, Object o, String item) { + mViewVisitorClassContent.setText(item); + } + }); break; case R.id.register_id_class: - Toast.makeText(getActivity(),"韬唤璇�",Toast.LENGTH_SHORT).show(); + SingleSelectionPopup popup2 = new SingleSelectionPopup(getActivity(),mCredentialsList,"璇佷欢绫诲瀷"); + popup2.showAtLocation(mBaseLayout, Gravity.CENTER,0,0); + popup2.addOkButtonClickedListener(new OkButtonClickedListener() { + @Override + public void onItemSelected(int position, Object o, String item) { + mViewIdClassContent.setText(item); + } + }); break; } } diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/AppApi.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/AppApi.java new file mode 100644 index 0000000..f45a02f --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/AppApi.java @@ -0,0 +1,9 @@ +package com.bsk.zhangbo.demoforbsk.util; + +public class AppApi { + public final static String CHENXINGGROUND_IMAGEURL_BASE = ""; + public final static String CHENXINGARGEEMRNT = "";// 鍗忚鍓嶇紑 + public final static String BASEURL = "http://172.16.0.111:8080/chenxingplan/"; + + public final static String WELCOMEIMAGE = "advImage/"; +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/GetNetResultJson.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/GetNetResultJson.java index 8377f76..184c0a8 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/GetNetResultJson.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/GetNetResultJson.java @@ -36,4 +36,18 @@ }); return null; } + + public static String post(String url){ + String fullUrl = UrlUtil.BaseUrl+url; + OkHttpUtils.post(fullUrl) + .params("","") + .execute(new StringCallback() { + @Override + public void onSuccess(String s, Call call, Response response) { + + } + }); + return null; + } + } diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/UrlUtil.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/UrlUtil.java index 2e4278f..bcd5099 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/UrlUtil.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/util/UrlUtil.java @@ -5,5 +5,5 @@ */ public class UrlUtil { - public static String BaseUrl = ""; + public static String BaseUrl = "http://192.168.1.102:8080/ssm"; } diff --git a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/widget/SingleSelectionPopup.java b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/widget/SingleSelectionPopup.java index d778cce..55340ac 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/widget/SingleSelectionPopup.java +++ b/VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/widget/SingleSelectionPopup.java @@ -13,8 +13,10 @@ import com.bsk.zhangbo.demoforbsk.R; import com.bsk.zhangbo.demoforbsk.adapter.MyWheelAdapter; +import com.bsk.zhangbo.demoforbsk.listeners.OkButtonClickedListener; import com.wx.wheelview.widget.WheelView; +import java.util.ArrayList; import java.util.List; /** @@ -105,6 +107,9 @@ dismiss(); break; case R.id.pop_single_confirm: + for (OkButtonClickedListener okButtonClickedListener : okButtonClickedListeners) { + okButtonClickedListener.onItemSelected(0, null, mList.get(mWheelView.getCurrentPosition())); + } dismiss(); break; } @@ -114,4 +119,11 @@ public void onItemSelected(int position, Object o) { Toast.makeText(mContext,mList.get(position),Toast.LENGTH_SHORT).show(); } + + private List<OkButtonClickedListener> okButtonClickedListeners = new ArrayList<OkButtonClickedListener>(); + + public void addOkButtonClickedListener(OkButtonClickedListener okButtonClickedListener) { + this.okButtonClickedListeners.add(okButtonClickedListener); + } + } -- Gitblit v1.8.0