forked from pxqbzjk5c/ECMS
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							86 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
	
	
							86 lines
						
					
					
						
							1.6 KiB
						
					
					
				package com.prj.domain;
 | 
						|
 | 
						|
import java.math.BigDecimal;
 | 
						|
 | 
						|
import org.apache.commons.lang3.builder.ToStringBuilder;
 | 
						|
import org.apache.commons.lang3.builder.ToStringStyle;
 | 
						|
 | 
						|
public class Employee
 | 
						|
{
 | 
						|
    private static final long serialVersionUID = 1L;
 | 
						|
 | 
						|
    /** 编号 */
 | 
						|
    private Long id;
 | 
						|
 | 
						|
    /** 部门 */
 | 
						|
    private String dept;
 | 
						|
 | 
						|
    /** 姓名 */
 | 
						|
    private String name;
 | 
						|
 | 
						|
    /** 职位 */
 | 
						|
    private String position;
 | 
						|
 | 
						|
    /** 薪资 */
 | 
						|
    private BigDecimal salary;
 | 
						|
 | 
						|
    public void setId(Long id) 
 | 
						|
    {
 | 
						|
        this.id = id;
 | 
						|
    }
 | 
						|
 | 
						|
    public Long getId() 
 | 
						|
    {
 | 
						|
        return id;
 | 
						|
    }
 | 
						|
    public void setDept(String dept) 
 | 
						|
    {
 | 
						|
        this.dept = dept;
 | 
						|
    }
 | 
						|
 | 
						|
    public String getDept() 
 | 
						|
    {
 | 
						|
        return dept;
 | 
						|
    }
 | 
						|
    public void setName(String name) 
 | 
						|
    {
 | 
						|
        this.name = name;
 | 
						|
    }
 | 
						|
 | 
						|
    public String getName() 
 | 
						|
    {
 | 
						|
        return name;
 | 
						|
    }
 | 
						|
    public void setPosition(String position) 
 | 
						|
    {
 | 
						|
        this.position = position;
 | 
						|
    }
 | 
						|
 | 
						|
    public String getPosition() 
 | 
						|
    {
 | 
						|
        return position;
 | 
						|
    }
 | 
						|
    public void setSalary(BigDecimal salary) 
 | 
						|
    {
 | 
						|
        this.salary = salary;
 | 
						|
    }
 | 
						|
 | 
						|
    public BigDecimal getSalary() 
 | 
						|
    {
 | 
						|
        return salary;
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public String toString() {
 | 
						|
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
 | 
						|
            .append("id", getId())
 | 
						|
            .append("dept", getDept())
 | 
						|
            .append("name", getName())
 | 
						|
            .append("position", getPosition())
 | 
						|
            .append("salary", getSalary())
 | 
						|
            .toString();
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
 |