OA系统--定义数据类型

package com.bjsxt.pojo;
import java.util.Date;
import java.util.Objects;

public class Employee {
    private String empid;
    private String password;
    private Integer deptno;
    private Integer posid;
    private String merid;
    private String realname;
    private String sex;
    private Date birthdate;
    private Date hiredate;
    private Date leavedate;
    private Integer onduty;
    private Integer  emptype;
    private String phone;
    private String qq;
    private String emercontactperson;
    private String idcard;

    @Override
    public String toString() {
        return "Employee{" +
                "empid='" + empid + '\'' +
                ", password='" + password + '\'' +
                ", deptno=" + deptno +
                ", posid=" + posid +
                ", merid='" + merid + '\'' +
                ", realname='" + realname + '\'' +
                ", sex='" + sex + '\'' +
                ", birthdate=" + birthdate +
                ", hiredate=" + hiredate +
                ", leavedate=" + leavedate +
                ", onduty=" + onduty +
                ", emptype=" + emptype +
                ", phone='" + phone + '\'' +
                ", qq='" + qq + '\'' +
                ", emercontactperson='" + emercontactperson + '\'' +
                ", idcard='" + idcard + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Employee employee = (Employee) o;
        return Objects.equals(empid, employee.empid) && Objects.equals(password, employee.password) && Objects.equals(deptno, employee.deptno) && Objects.equals(posid, employee.posid) && Objects.equals(merid, employee.merid) && Objects.equals(realname, employee.realname) && Objects.equals(sex, employee.sex) && Objects.equals(birthdate, employee.birthdate) && Objects.equals(hiredate, employee.hiredate) && Objects.equals(leavedate, employee.leavedate) && Objects.equals(onduty, employee.onduty) && Objects.equals(emptype, employee.emptype) && Objects.equals(phone, employee.phone) && Objects.equals(qq, employee.qq) && Objects.equals(emercontactperson, employee.emercontactperson) && Objects.equals(idcard, employee.idcard);
    }

    @Override
    public int hashCode() {
        return Objects.hash(empid, password, deptno, posid, merid, realname, sex, birthdate, hiredate, leavedate, onduty, emptype, phone, qq, emercontactperson, idcard);
    }

    public String getEmpid() {
        return empid;
    }

    public void setEmpid(String empid) {
        this.empid = empid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    public Integer getPosid() {
        return posid;
    }

    public void setPosid(Integer posid) {
        this.posid = posid;
    }

    public String getMerid() {
        return merid;
    }

    public void setMerid(String merid) {
        this.merid = merid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Date getLeavedate() {
        return leavedate;
    }

    public void setLeavedate(Date leavedate) {
        this.leavedate = leavedate;
    }

    public Integer getOnduty() {
        return onduty;
    }

    public void setOnduty(Integer onduty) {
        this.onduty = onduty;
    }

    public Integer getEmptype() {
        return emptype;
    }

    public void setEmptype(Integer emptype) {
        this.emptype = emptype;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmercontactperson() {
        return emercontactperson;
    }

    public void setEmercontactperson(String emercontactperson) {
        this.emercontactperson = emercontactperson;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Employee(String empid) {
        this.empid = empid;
    }

    public Employee(String empid, String password, Integer deptno, Integer posid, String merid, String realname, String sex, Date birthdate, Date hiredate, Date leavedate, Integer onduty, Integer emptype, String phone, String qq, String emercontactperson, String idcard) {
        this.empid = empid;
        this.password = password;
        this.deptno = deptno;
        this.posid = posid;
        this.merid = merid;
        this.realname = realname;
        this.sex = sex;
        this.birthdate = birthdate;
        this.hiredate = hiredate;
        this.leavedate = leavedate;
        this.onduty = onduty;
        this.emptype = emptype;
        this.phone = phone;
        this.qq = qq;
        this.emercontactperson = emercontactperson;
        this.idcard = idcard;
    }
}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值