package thyyxxk.webserver.entity.dictionary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * 手术医生级别管理
 * 
 * @author lh
 * @email lihong@gmail.com
 * @date 2023-06-08 10:57:38
 */
@Data
@TableName("op_level_management")
public class OpLevelManagement implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 医生工号
	 */
	private String codeDoctor;
	/**
	 * 医生姓名
	 */
	private String nameDoctor;
	/**
	 * 手术编码
	 */
	private String codeOp;
	/**
	 * 手术名称
	 */
	private String codeOpName;
	/**
	 * 入库时间
	 */
	private Date inputTime;
	/**
	 * 入库操作人
	 */
	private String inputUser;
	/**
	 * $column.comments
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	@TableField(exist = false)
	private Integer currentPage;
	@TableField(exist = false)
	private Integer pageSize;
	/**
	 * 员工编码
	 */
	private String code;
	@TableField(exist = false)
	private List<OpLevelManagement> saveData;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		OpLevelManagement that = (OpLevelManagement) o;
		return codeOp.equals(that.codeOp) &&
				code.equals(that.code);
	}

	@Override
	public int hashCode() {
		return Objects.hash(codeOp, code);
	}
}
