海康设备modifyUserInfo增加doorRight设置 Signed-off-by: haidong <chenloveguitar@qq.com>doorRight设置
| @@ -6,7 +6,7 @@ | |||||
| <groupId>com.yzx.hardware-access</groupId> | <groupId>com.yzx.hardware-access</groupId> | ||||
| <artifactId>hardware-access</artifactId> | <artifactId>hardware-access</artifactId> | ||||
| <version>2.0.3</version> | |||||
| <version>2.0.4</version> | |||||
| <properties> | <properties> | ||||
| <maven.compiler.source>8</maven.compiler.source> | <maven.compiler.source>8</maven.compiler.source> | ||||
| @@ -125,7 +125,7 @@ public class UserManage { | |||||
| } | } | ||||
| } | } | ||||
| public static int modifyUserInfo(int lUserID, String employeeNo,int planTemplateNo) throws InterruptedException, JSONException { | |||||
| public static int modifyUserInfo(int lUserID, String employeeNo,int planTemplateNo,String doorRight) throws InterruptedException, JSONException { | |||||
| int status = -1; | int status = -1; | ||||
| HCNetSDK.BYTE_ARRAY ptrByteArray = new HCNetSDK.BYTE_ARRAY(1024); //数组 | HCNetSDK.BYTE_ARRAY ptrByteArray = new HCNetSDK.BYTE_ARRAY(1024); //数组 | ||||
| //"POST /ISAPI/AccessControl/UserInfo/Record?format=json" 此URL也是下发人员 | //"POST /ISAPI/AccessControl/UserInfo/Record?format=json" 此URL也是下发人员 | ||||
| @@ -144,6 +144,7 @@ public class UserManage { | |||||
| String strInBuffer1 = "{\n" + | String strInBuffer1 = "{\n" + | ||||
| " \"UserInfo\":{\n" + | " \"UserInfo\":{\n" + | ||||
| " \"employeeNo\":\""+employeeNo+"\",\n" + | " \"employeeNo\":\""+employeeNo+"\",\n" + | ||||
| " \"doorRight\":\""+doorRight+"\",\n" + | |||||
| " \"RightPlan\":[\n" + | " \"RightPlan\":[\n" + | ||||
| " {\n" + | " {\n" + | ||||
| " \"doorNo\":1,\n" + | " \"doorNo\":1,\n" + | ||||
| @@ -254,7 +254,7 @@ public class HKVersion implements IHardwareEquipment { | |||||
| if(lUserID == -1){ | if(lUserID == -1){ | ||||
| continue; | continue; | ||||
| } | } | ||||
| int i = UserManage.modifyUserInfo(lUserID, userFaceInfo.getEmployeeNo(), userFaceInfo.getTemplateId()); | |||||
| int i = UserManage.modifyUserInfo(lUserID, userFaceInfo.getEmployeeNo(), userFaceInfo.getTemplateId(),userFaceInfo.getDoorRight()); | |||||
| userFaceInfo.setStatus(i); | userFaceInfo.setStatus(i); | ||||
| } catch (InterruptedException e) { | } catch (InterruptedException e) { | ||||
| e.printStackTrace(); | e.printStackTrace(); | ||||
| @@ -13,4 +13,5 @@ public class UserFaceInfo { | |||||
| private String endTime;//有效期结束 | private String endTime;//有效期结束 | ||||
| private String cardNo = "";//卡号 | private String cardNo = "";//卡号 | ||||
| private byte[] imageBytes;//人脸信息 | private byte[] imageBytes;//人脸信息 | ||||
| private String doorRight;//门权限 | |||||
| } | } | ||||