保存进度!
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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 );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user