|
@@ -1,13 +1,11 @@
|
|
|
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;
|
|
|
|
|
@@ -19,15 +17,12 @@ import java.util.Objects;
|
|
|
* @author zhaops
|
|
|
* @since 2020-08-31
|
|
|
*/
|
|
|
-@TableName("tran_transfusion_config")
|
|
|
-public class TransfusionConfig implements Serializable {
|
|
|
-
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
-
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+public class TransfusionConfig {
|
|
|
/**
|
|
|
* 主键
|
|
|
*/
|
|
|
- @TableId(value = "id", type = IdType.AUTO)
|
|
|
private Long id;
|
|
|
|
|
|
/**
|
|
@@ -78,7 +73,7 @@ public class TransfusionConfig implements Serializable {
|
|
|
* 对应项编码
|
|
|
*/
|
|
|
//@Excel(name = "对应项编码", width = 40, orderNum = "2")
|
|
|
- private String uniqueCode;
|
|
|
+ private String code;
|
|
|
|
|
|
/**
|
|
|
* 是否匹配(0-未匹配、1-已匹配)
|
|
@@ -92,102 +87,6 @@ public class TransfusionConfig implements Serializable {
|
|
|
@Excel(name = "数据来源", width = 20, orderNum = "5", replace = { "标准词_1", "同义词_2", "编码_3", "历史数据_4", "相似词_5", "数据迁移_99", "_null" }, isImportField = "true")
|
|
|
private Integer source;
|
|
|
|
|
|
- public Long getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(Long id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getIsDeleted() {
|
|
|
- return isDeleted;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIsDeleted(String isDeleted) {
|
|
|
- this.isDeleted = isDeleted;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getGmtCreate() {
|
|
|
- return gmtCreate;
|
|
|
- }
|
|
|
-
|
|
|
- public void setGmtCreate(Date gmtCreate) {
|
|
|
- this.gmtCreate = gmtCreate;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getGmtModified() {
|
|
|
- return gmtModified;
|
|
|
- }
|
|
|
-
|
|
|
- public void setGmtModified(Date gmtModified) {
|
|
|
- this.gmtModified = gmtModified;
|
|
|
- }
|
|
|
-
|
|
|
- public String getCreator() {
|
|
|
- return creator;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreator(String creator) {
|
|
|
- this.creator = creator;
|
|
|
- }
|
|
|
-
|
|
|
- public String getModifier() {
|
|
|
- return modifier;
|
|
|
- }
|
|
|
-
|
|
|
- public void setModifier(String modifier) {
|
|
|
- this.modifier = modifier;
|
|
|
- }
|
|
|
-
|
|
|
- public Long getHospitalId() {
|
|
|
- return hospitalId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setHospitalId(Long hospitalId) {
|
|
|
- this.hospitalId = hospitalId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getHisName() {
|
|
|
- return hisName;
|
|
|
- }
|
|
|
-
|
|
|
- public void setHisName(String hisName) {
|
|
|
- this.hisName = hisName;
|
|
|
- }
|
|
|
-
|
|
|
- public String getUniqueName() {
|
|
|
- return uniqueName;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUniqueName(String uniqueName) {
|
|
|
- this.uniqueName = uniqueName;
|
|
|
- }
|
|
|
-
|
|
|
- public String getUniqueCode() {
|
|
|
- return uniqueCode;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUniqueCode(String uniqueCode) {
|
|
|
- this.uniqueCode = uniqueCode;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getIsMatch() {
|
|
|
- return isMatch;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIsMatch(Integer isMatch) {
|
|
|
- this.isMatch = isMatch;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getSource() {
|
|
|
- return source;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSource(Integer source) {
|
|
|
- this.source = source;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
return "TransfusionConfig{" +
|
|
@@ -200,7 +99,7 @@ public class TransfusionConfig implements Serializable {
|
|
|
", hospitalId=" + hospitalId +
|
|
|
", hisName=" + hisName +
|
|
|
", uniqueName=" + uniqueName +
|
|
|
- ", uniqueCode=" + uniqueCode +
|
|
|
+ ", code=" + code +
|
|
|
"}";
|
|
|
}
|
|
|
|
|
@@ -218,12 +117,12 @@ public class TransfusionConfig implements Serializable {
|
|
|
&& Objects.equals(hospitalId, transfusionConfig.hospitalId)
|
|
|
&& Objects.equals(hisName, transfusionConfig.hisName)
|
|
|
&& Objects.equals(uniqueName, transfusionConfig.uniqueName)
|
|
|
- && Objects.equals(uniqueCode, transfusionConfig.uniqueCode);
|
|
|
+ && Objects.equals(code, transfusionConfig.code);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
- return Objects.hash(id, isDeleted, hospitalId, hisName, uniqueName, uniqueCode);
|
|
|
+ return Objects.hash(id, isDeleted, hospitalId, hisName, uniqueName, code);
|
|
|
}
|
|
|
|
|
|
public static boolean nonNull(TransfusionConfig o) {
|
|
@@ -231,6 +130,6 @@ public class TransfusionConfig implements Serializable {
|
|
|
|| (o.hospitalId == null
|
|
|
&& StringUtil.isBlank(o.hisName)
|
|
|
&& StringUtil.isBlank(o.uniqueName)
|
|
|
- && StringUtil.isBlank(o.uniqueCode)));
|
|
|
+ && StringUtil.isBlank(o.code)));
|
|
|
}
|
|
|
}
|