From e1f846e2e31179c5272ab5ead6cdc8eac7088998 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Thu, 2 Sep 2021 17:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=9C=B0=E5=9F=9F=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3\=E8=8E=B7=E5=8F=96=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=8E=A5=E5=8F=A3\=E5=8C=BB=E9=99=A2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3\=E7=A7=91=E5=AE=A4=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3\=E5=8C=BB=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/talkonlineweb/domain/PatientInfo.java | 213 +++++++++++++++++++++ .../talkonlineweb/mapper/PatientInfoMapper.java | 15 ++ .../talkonlineweb/service/PatientInfoService.java | 11 ++ .../service/impl/PatientInfoServiceImpl.java | 20 ++ 4 files changed, 259 insertions(+) create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java new file mode 100644 index 0000000..600aadc --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java @@ -0,0 +1,213 @@ +package com.lyms.talkonlineweb.domain; + +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 java.io.Serializable; +import lombok.Data; + +/** + * + * @TableName patient_info + */ +@TableName(value ="patient_info") +@Data +public class PatientInfo implements Serializable { + /** + * id + */ + @TableField(value = "id") + private Integer id; + + /** + * 患者姓名 + */ + @TableField(value = "pname") + private String pname; + + /** + * 身份证号 + */ + @TableField(value = "idno") + private String idno; + + /** + * 登录密码 + */ + @TableField(value = "ppasswd") + private String ppasswd; + + /** + * 性别 + */ + @TableField(value = "sex") + private Integer sex; + + /** + * 问诊卡数量 + */ + @TableField(value = "ccnt") + private Integer ccnt; + + /** + * 环信对应标识 + */ + @TableField(value = "hxid") + private String hxid; + + /** + * 创建人 + */ + @TableField(value = "createdby") + private Integer createdby; + + /** + * + */ + @TableField(value = "cid") + private Integer cid; + + /** + * 手机号 + */ + @TableField(value = "mobile") + private String mobile; + + /** + * 填写医院id + */ + @TableField(value = "hid") + private Integer hid; + + /** + * 就诊医院名称 + */ + @TableField(value = "hname") + private String hname; + + /** + * 填写科室id + */ + @TableField(value = "did") + private Integer did; + + /** + * 科室名称 + */ + @TableField(value = "dname") + private String dname; + + /** + * 就诊医生 + */ + @TableField(value = "dtid") + private Integer dtid; + + /** + * 就诊医生姓名 + */ + @TableField(value = "dtname") + private String dtname; + + /** + * 疾病ID + */ + @TableField(value = "iid") + private Integer iid; + + /** + * 疾病名称 + */ + @TableField(value = "iname") + private String iname; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + PatientInfo other = (PatientInfo) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getPname() == null ? other.getPname() == null : this.getPname().equals(other.getPname())) + && (this.getIdno() == null ? other.getIdno() == null : this.getIdno().equals(other.getIdno())) + && (this.getPpasswd() == null ? other.getPpasswd() == null : this.getPpasswd().equals(other.getPpasswd())) + && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex())) + && (this.getCcnt() == null ? other.getCcnt() == null : this.getCcnt().equals(other.getCcnt())) + && (this.getHxid() == null ? other.getHxid() == null : this.getHxid().equals(other.getHxid())) + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) + && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid())) + && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile())) + && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid())) + && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname())) + && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid())) + && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname())) + && (this.getDtid() == null ? other.getDtid() == null : this.getDtid().equals(other.getDtid())) + && (this.getDtname() == null ? other.getDtname() == null : this.getDtname().equals(other.getDtname())) + && (this.getIid() == null ? other.getIid() == null : this.getIid().equals(other.getIid())) + && (this.getIname() == null ? other.getIname() == null : this.getIname().equals(other.getIname())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getPname() == null) ? 0 : getPname().hashCode()); + result = prime * result + ((getIdno() == null) ? 0 : getIdno().hashCode()); + result = prime * result + ((getPpasswd() == null) ? 0 : getPpasswd().hashCode()); + result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode()); + result = prime * result + ((getCcnt() == null) ? 0 : getCcnt().hashCode()); + result = prime * result + ((getHxid() == null) ? 0 : getHxid().hashCode()); + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); + result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode()); + result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode()); + result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode()); + result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode()); + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode()); + result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode()); + result = prime * result + ((getDtid() == null) ? 0 : getDtid().hashCode()); + result = prime * result + ((getDtname() == null) ? 0 : getDtname().hashCode()); + result = prime * result + ((getIid() == null) ? 0 : getIid().hashCode()); + result = prime * result + ((getIname() == null) ? 0 : getIname().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", pname=").append(pname); + sb.append(", idno=").append(idno); + sb.append(", ppasswd=").append(ppasswd); + sb.append(", sex=").append(sex); + sb.append(", ccnt=").append(ccnt); + sb.append(", hxid=").append(hxid); + sb.append(", createdby=").append(createdby); + sb.append(", cid=").append(cid); + sb.append(", mobile=").append(mobile); + sb.append(", hid=").append(hid); + sb.append(", hname=").append(hname); + sb.append(", did=").append(did); + sb.append(", dname=").append(dname); + sb.append(", dtid=").append(dtid); + sb.append(", dtname=").append(dtname); + sb.append(", iid=").append(iid); + sb.append(", iname=").append(iname); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java new file mode 100644 index 0000000..cf35cb0 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java @@ -0,0 +1,15 @@ +package com.lyms.talkonlineweb.mapper; + +import com.lyms.talkonlineweb.domain.PatientInfo; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Entity com.lyms.talkonlineweb.domain.PatientInfo + */ +public interface PatientInfoMapper extends BaseMapper { + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java new file mode 100644 index 0000000..d76c195 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java @@ -0,0 +1,11 @@ +package com.lyms.talkonlineweb.service; + +import com.lyms.talkonlineweb.domain.PatientInfo; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *这个是个view不能做插入操作 + */ +public interface PatientInfoService extends IService { + +} diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java new file mode 100644 index 0000000..7ff71cf --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java @@ -0,0 +1,20 @@ +package com.lyms.talkonlineweb.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyms.talkonlineweb.domain.PatientInfo; +import com.lyms.talkonlineweb.service.PatientInfoService; +import com.lyms.talkonlineweb.mapper.PatientInfoMapper; +import org.springframework.stereotype.Service; + +/** + * + */ +@Service +public class PatientInfoServiceImpl extends ServiceImpl + implements PatientInfoService{ + +} + + + + -- 1.8.3.1