From 0c484869137cc315c85a3d8c6c900fd8cc2ce295 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Fri, 16 Dec 2022 15:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xim/myutils/account/CpicXIMStaffInfo.java | 70 ++++++++++++++++++- .../webapp/account/LdapAccountCheckTest.java | 25 +++++++ 2 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 企业级管理系统/java/AdminSys/src/main/webapp/account/LdapAccountCheckTest.java diff --git a/企业级管理系统/java/AdminSys/src/main/java/com/cpic/xim/myutils/account/CpicXIMStaffInfo.java b/企业级管理系统/java/AdminSys/src/main/java/com/cpic/xim/myutils/account/CpicXIMStaffInfo.java index 7f9c9fb..dfcbbb8 100644 --- a/企业级管理系统/java/AdminSys/src/main/java/com/cpic/xim/myutils/account/CpicXIMStaffInfo.java +++ b/企业级管理系统/java/AdminSys/src/main/java/com/cpic/xim/myutils/account/CpicXIMStaffInfo.java @@ -2,19 +2,83 @@ * @Author: Kane * @Date: 2022-12-15 14:08:28 * @LastEditors: Kane - * @LastEditTime: 2022-12-15 15:27:53 - * @FilePath: \AdminSys\src\main\java\com\cpicxim\myutils\account\CpicXIMStaffInfo.java + * @LastEditTime: 2022-12-16 15:20:32 + * @FilePath: \AdminSys\src\main\java\com\cpic\xim\myutils\account\CpicXIMStaffInfo.java * @Description: 产险厦门分公司员工信息对象 * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ package com.cpic.xim.myutils.account; +import com.fasterxml.jackson.annotation.JsonProperty; + public class CpicXIMStaffInfo { + CpicXIMStaffInfo() + {} + + public String getName() + { + return name; + } + + public void setName( String name ) + { + this.name = name; + } + + public String getCode() + { + return code; + } + + public void setCode( String code ) + { + this.code = code; + } + + public String getP13UID() + { + return p13UID; + } + + public void setP13UID( String p13uid ) + { + p13UID = p13uid; + } + + public String getDepartmentCode() + { + return departmentCode; + } + + public void setDepartmentCode( String departmentCode ) + { + this.departmentCode = departmentCode; + } + + public String getDepartmentName() + { + return departmentName; + } + + public void setDepartmentName( String departmentName ) + { + this.departmentName = departmentName; + } + + @JsonProperty( "name") private String name; + + @JsonProperty( "name") private String code; - private String p13Code; + + @JsonProperty( "name") + private String p13UID; + + @JsonProperty( "name") private String departmentCode; + + @JsonProperty( "name") private String departmentName; } diff --git a/企业级管理系统/java/AdminSys/src/main/webapp/account/LdapAccountCheckTest.java b/企业级管理系统/java/AdminSys/src/main/webapp/account/LdapAccountCheckTest.java new file mode 100644 index 0000000..4c10e4e --- /dev/null +++ b/企业级管理系统/java/AdminSys/src/main/webapp/account/LdapAccountCheckTest.java @@ -0,0 +1,25 @@ +/* + * @Author: Kane + * @Date: 2022-12-16 11:26:35 + * @LastEditors: Kane + * @LastEditTime: 2022-12-16 11:29:07 + * @FilePath: \AdminSys\src\test\java\com\cpic\xim\myutils\account\LdapAccountCheckTest.java + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ +package com.cpic.xim.myutils.account; + +import org.junit.Test; + +public class LdapAccountCheckTest +{ + @Test + public void testLdapLogin() + { + String userName = "wangwei-202"; + String password = "Kane@1983"; + + boolean result = LdapAccountCheck.ldapLogin( userName, password ); + } +}