123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- package com.diagbot.entity;
- import cn.afterturn.easypoi.excel.annotation.Excel;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.diagbot.util.StringUtil;
- import lombok.Getter;
- import lombok.Setter;
- import javax.validation.constraints.NotBlank;
- import java.io.Serializable;
- import java.util.Date;
- import java.util.Objects;
- /**
- * <p>
- * 中医证候映射表
- * </p>
- *
- * @author zhaops
- * @since 2021-05-13
- */
- @Getter
- @Setter
- @TableName("tran_tcmsyndrome_config")
- public class TcmsyndromeConfig implements Serializable {
- private static final long serialVersionUID = 1L;
- /**
- * 主键
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Long id;
- /**
- * 是否删除,N:未删除,Y:删除
- */
- private String isDeleted;
- /**
- * 记录创建时间
- */
- private Date gmtCreate;
- /**
- * 记录修改时间,如果时间是1970年则表示纪录未修改
- */
- private Date gmtModified;
- /**
- * 创建人,0表示无创建人值
- */
- private String creator;
- /**
- * 修改人,如果为0则表示纪录未修改
- */
- private String modifier;
- /**
- * 医院id
- */
- private Long hospitalId;
- /**
- * 医院项目名称
- */
- @Excel(name = "医院中医证候名称", width = 40, orderNum = "1", isImportField = "true")
- @NotBlank(message = "请输入医院中医证候名称")
- private String hisName;
- /**
- * 标准名称
- */
- @Excel(name = "标准中医证候名称", width = 40, orderNum = "3", isImportField = "true")
- @NotBlank(message = "请输入标准中医证候名称")
- private String uniqueName;
- /**
- * 标准编码
- */
- @Excel(name = "中医证候代码", width = 40, orderNum = "2", isImportField = "true")
- private String uniqueCode;
- /**
- * 是否匹配(0-未匹配、1-已匹配)
- */
- @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
- private Integer isMatch;
- /**
- * 数据来源(1-标准词、2-同义词、3-编码、4-历史数据、5-相似词、99-数据迁移)
- */
- @Excel(name = "数据来源【不填、标准词、同义词、编码、历史数据、相似词】", width = 20, orderNum = "5", replace = { "标准词_1", "同义词_2", "编码_3", "历史数据_4", "相似词_5", "数据迁移_99", "_null" }, isImportField = "true")
- private Integer source;
- @Override
- public String toString() {
- return "TcmsyndromeConfig{" +
- "id=" + id +
- ", isDeleted=" + isDeleted +
- ", gmtCreate=" + gmtCreate +
- ", gmtModified=" + gmtModified +
- ", creator=" + creator +
- ", modifier=" + modifier +
- ", hospitalId=" + hospitalId +
- ", hisName=" + hisName +
- ", uniqueName=" + uniqueName +
- ", uniqueCode=" + uniqueCode +
- "}";
- }
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TcmsyndromeConfig tcmsyndromeConfig = (TcmsyndromeConfig) o;
- return Objects.equals(id, tcmsyndromeConfig.id)
- && Objects.equals(isDeleted, tcmsyndromeConfig.isDeleted)
- && Objects.equals(hospitalId, tcmsyndromeConfig.hospitalId)
- && Objects.equals(hisName, tcmsyndromeConfig.hisName)
- && Objects.equals(uniqueName, tcmsyndromeConfig.uniqueName)
- && Objects.equals(uniqueCode, tcmsyndromeConfig.uniqueCode);
- }
- @Override
- public int hashCode() {
- return Objects.hash(id, isDeleted, hospitalId, hisName, uniqueName, uniqueCode);
- }
- public static boolean nonNull(TcmsyndromeConfig o) {
- return !(o == null
- || (o.hospitalId == null
- && StringUtil.isBlank(o.hisName)
- && StringUtil.isBlank(o.uniqueName)
- && StringUtil.isBlank(o.uniqueCode)));
- }
- }
|