|
@@ -2,14 +2,12 @@ package com.diagbot.entity;
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
|
|
-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 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;
|
|
|
|
|
@@ -21,15 +19,12 @@ import java.util.Objects;
|
|
|
* @author zhaops
|
|
|
* @since 2020-07-28
|
|
|
*/
|
|
|
-@TableName("tran_drug_config")
|
|
|
-public class DrugConfig implements Serializable {
|
|
|
-
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
-
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+public class DrugConfig {
|
|
|
/**
|
|
|
* 主键
|
|
|
*/
|
|
|
- @TableId(value = "id", type = IdType.INPUT)
|
|
|
private Long id;
|
|
|
|
|
|
/**
|
|
@@ -67,7 +62,6 @@ public class DrugConfig implements Serializable {
|
|
|
*/
|
|
|
@Excel(name = "医院药品名称", width = 40, orderNum = "1", isImportField = "true")
|
|
|
@NotBlank(message = "请输入医院药品名称")
|
|
|
- //@Size(max = 80, min = 1,message = "医院药品名称长度需要在1-80字符长度之间")
|
|
|
private String hisName;
|
|
|
|
|
|
/**
|
|
@@ -75,14 +69,12 @@ public class DrugConfig implements Serializable {
|
|
|
*/
|
|
|
@Excel(name = "标准药品名称", width = 40, orderNum = "2", isImportField = "true")
|
|
|
@NotBlank(message = "请输入标准药品名称")
|
|
|
- //@Size(max = 80, min = 1,message = "标准药品名称长度需要在1-80字符长度之间")
|
|
|
private String uniqueName;
|
|
|
|
|
|
/**
|
|
|
* 标准编码
|
|
|
*/
|
|
|
- //@Excel(name = "对应项编码", width = 40, orderNum = "3")
|
|
|
- private String uniqueCode;
|
|
|
+ private String code;
|
|
|
|
|
|
/**
|
|
|
* 剂型
|
|
@@ -91,93 +83,18 @@ public class DrugConfig implements Serializable {
|
|
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
private String form;
|
|
|
|
|
|
- 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 String getForm() {
|
|
|
- return form;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 是否匹配(0-未匹配、1-已匹配)
|
|
|
+ */
|
|
|
+ @Excel(name = "是否匹配【未匹配、已匹配】", width = 20, orderNum = "4", replace = { "未匹配_0", "已匹配_1" }, isImportField = "true")
|
|
|
+ private Integer isMatch;
|
|
|
|
|
|
- public void setForm(String form) {
|
|
|
- this.form = form;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 数据来源(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() {
|
|
@@ -191,7 +108,7 @@ public class DrugConfig implements Serializable {
|
|
|
", hospitalId=" + hospitalId +
|
|
|
", hisName=" + hisName +
|
|
|
", uniqueName=" + uniqueName +
|
|
|
- ", uniqueCode=" + uniqueCode +
|
|
|
+ ", code=" + code +
|
|
|
", form=" + form +
|
|
|
"}";
|
|
|
}
|
|
@@ -211,12 +128,12 @@ public class DrugConfig implements Serializable {
|
|
|
&& Objects.equals(hisName, drugConfig.hisName)
|
|
|
&& Objects.equals(form, drugConfig.form)
|
|
|
&& Objects.equals(uniqueName, drugConfig.uniqueName)
|
|
|
- && Objects.equals(uniqueCode, drugConfig.uniqueCode);
|
|
|
+ && Objects.equals(code, drugConfig.code);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
- return Objects.hash(id, isDeleted, hospitalId, hisName, form, uniqueName, uniqueCode);
|
|
|
+ return Objects.hash(id, isDeleted, hospitalId, hisName, form, uniqueName, code);
|
|
|
}
|
|
|
|
|
|
public static boolean nonNull(DrugConfig o) {
|
|
@@ -224,7 +141,7 @@ public class DrugConfig implements Serializable {
|
|
|
|| (o.hospitalId == null
|
|
|
&& StringUtil.isBlank(o.hisName)
|
|
|
&& StringUtil.isBlank(o.uniqueName)
|
|
|
- && StringUtil.isBlank(o.uniqueCode)
|
|
|
+ && StringUtil.isBlank(o.code)
|
|
|
&& StringUtil.isBlank(o.form)));
|
|
|
}
|
|
|
}
|