Commit e1f846e2e31179c5272ab5ead6cdc8eac7088998
1 parent
354d2cb46d
Exists in
master
获取地域信息接口\获取字典接口\医院管理接口\科室管理接口\医生
Showing 4 changed files with 259 additions and 0 deletions
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/PatientInfo.java
View file @
e1f846e
1 | +package com.lyms.talkonlineweb.domain; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
7 | +import java.io.Serializable; | |
8 | +import lombok.Data; | |
9 | + | |
10 | +/** | |
11 | + * | |
12 | + * @TableName patient_info | |
13 | + */ | |
14 | +@TableName(value ="patient_info") | |
15 | +@Data | |
16 | +public class PatientInfo implements Serializable { | |
17 | + /** | |
18 | + * id | |
19 | + */ | |
20 | + @TableField(value = "id") | |
21 | + private Integer id; | |
22 | + | |
23 | + /** | |
24 | + * 患者姓名 | |
25 | + */ | |
26 | + @TableField(value = "pname") | |
27 | + private String pname; | |
28 | + | |
29 | + /** | |
30 | + * 身份证号 | |
31 | + */ | |
32 | + @TableField(value = "idno") | |
33 | + private String idno; | |
34 | + | |
35 | + /** | |
36 | + * 登录密码 | |
37 | + */ | |
38 | + @TableField(value = "ppasswd") | |
39 | + private String ppasswd; | |
40 | + | |
41 | + /** | |
42 | + * 性别 | |
43 | + */ | |
44 | + @TableField(value = "sex") | |
45 | + private Integer sex; | |
46 | + | |
47 | + /** | |
48 | + * 问诊卡数量 | |
49 | + */ | |
50 | + @TableField(value = "ccnt") | |
51 | + private Integer ccnt; | |
52 | + | |
53 | + /** | |
54 | + * 环信对应标识 | |
55 | + */ | |
56 | + @TableField(value = "hxid") | |
57 | + private String hxid; | |
58 | + | |
59 | + /** | |
60 | + * 创建人 | |
61 | + */ | |
62 | + @TableField(value = "createdby") | |
63 | + private Integer createdby; | |
64 | + | |
65 | + /** | |
66 | + * | |
67 | + */ | |
68 | + @TableField(value = "cid") | |
69 | + private Integer cid; | |
70 | + | |
71 | + /** | |
72 | + * 手机号 | |
73 | + */ | |
74 | + @TableField(value = "mobile") | |
75 | + private String mobile; | |
76 | + | |
77 | + /** | |
78 | + * 填写医院id | |
79 | + */ | |
80 | + @TableField(value = "hid") | |
81 | + private Integer hid; | |
82 | + | |
83 | + /** | |
84 | + * 就诊医院名称 | |
85 | + */ | |
86 | + @TableField(value = "hname") | |
87 | + private String hname; | |
88 | + | |
89 | + /** | |
90 | + * 填写科室id | |
91 | + */ | |
92 | + @TableField(value = "did") | |
93 | + private Integer did; | |
94 | + | |
95 | + /** | |
96 | + * 科室名称 | |
97 | + */ | |
98 | + @TableField(value = "dname") | |
99 | + private String dname; | |
100 | + | |
101 | + /** | |
102 | + * 就诊医生 | |
103 | + */ | |
104 | + @TableField(value = "dtid") | |
105 | + private Integer dtid; | |
106 | + | |
107 | + /** | |
108 | + * 就诊医生姓名 | |
109 | + */ | |
110 | + @TableField(value = "dtname") | |
111 | + private String dtname; | |
112 | + | |
113 | + /** | |
114 | + * 疾病ID | |
115 | + */ | |
116 | + @TableField(value = "iid") | |
117 | + private Integer iid; | |
118 | + | |
119 | + /** | |
120 | + * 疾病名称 | |
121 | + */ | |
122 | + @TableField(value = "iname") | |
123 | + private String iname; | |
124 | + | |
125 | + @TableField(exist = false) | |
126 | + private static final long serialVersionUID = 1L; | |
127 | + | |
128 | + @Override | |
129 | + public boolean equals(Object that) { | |
130 | + if (this == that) { | |
131 | + return true; | |
132 | + } | |
133 | + if (that == null) { | |
134 | + return false; | |
135 | + } | |
136 | + if (getClass() != that.getClass()) { | |
137 | + return false; | |
138 | + } | |
139 | + PatientInfo other = (PatientInfo) that; | |
140 | + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | |
141 | + && (this.getPname() == null ? other.getPname() == null : this.getPname().equals(other.getPname())) | |
142 | + && (this.getIdno() == null ? other.getIdno() == null : this.getIdno().equals(other.getIdno())) | |
143 | + && (this.getPpasswd() == null ? other.getPpasswd() == null : this.getPpasswd().equals(other.getPpasswd())) | |
144 | + && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex())) | |
145 | + && (this.getCcnt() == null ? other.getCcnt() == null : this.getCcnt().equals(other.getCcnt())) | |
146 | + && (this.getHxid() == null ? other.getHxid() == null : this.getHxid().equals(other.getHxid())) | |
147 | + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) | |
148 | + && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid())) | |
149 | + && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile())) | |
150 | + && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid())) | |
151 | + && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname())) | |
152 | + && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid())) | |
153 | + && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname())) | |
154 | + && (this.getDtid() == null ? other.getDtid() == null : this.getDtid().equals(other.getDtid())) | |
155 | + && (this.getDtname() == null ? other.getDtname() == null : this.getDtname().equals(other.getDtname())) | |
156 | + && (this.getIid() == null ? other.getIid() == null : this.getIid().equals(other.getIid())) | |
157 | + && (this.getIname() == null ? other.getIname() == null : this.getIname().equals(other.getIname())); | |
158 | + } | |
159 | + | |
160 | + @Override | |
161 | + public int hashCode() { | |
162 | + final int prime = 31; | |
163 | + int result = 1; | |
164 | + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | |
165 | + result = prime * result + ((getPname() == null) ? 0 : getPname().hashCode()); | |
166 | + result = prime * result + ((getIdno() == null) ? 0 : getIdno().hashCode()); | |
167 | + result = prime * result + ((getPpasswd() == null) ? 0 : getPpasswd().hashCode()); | |
168 | + result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode()); | |
169 | + result = prime * result + ((getCcnt() == null) ? 0 : getCcnt().hashCode()); | |
170 | + result = prime * result + ((getHxid() == null) ? 0 : getHxid().hashCode()); | |
171 | + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); | |
172 | + result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode()); | |
173 | + result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode()); | |
174 | + result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode()); | |
175 | + result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode()); | |
176 | + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode()); | |
177 | + result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode()); | |
178 | + result = prime * result + ((getDtid() == null) ? 0 : getDtid().hashCode()); | |
179 | + result = prime * result + ((getDtname() == null) ? 0 : getDtname().hashCode()); | |
180 | + result = prime * result + ((getIid() == null) ? 0 : getIid().hashCode()); | |
181 | + result = prime * result + ((getIname() == null) ? 0 : getIname().hashCode()); | |
182 | + return result; | |
183 | + } | |
184 | + | |
185 | + @Override | |
186 | + public String toString() { | |
187 | + StringBuilder sb = new StringBuilder(); | |
188 | + sb.append(getClass().getSimpleName()); | |
189 | + sb.append(" ["); | |
190 | + sb.append("Hash = ").append(hashCode()); | |
191 | + sb.append(", id=").append(id); | |
192 | + sb.append(", pname=").append(pname); | |
193 | + sb.append(", idno=").append(idno); | |
194 | + sb.append(", ppasswd=").append(ppasswd); | |
195 | + sb.append(", sex=").append(sex); | |
196 | + sb.append(", ccnt=").append(ccnt); | |
197 | + sb.append(", hxid=").append(hxid); | |
198 | + sb.append(", createdby=").append(createdby); | |
199 | + sb.append(", cid=").append(cid); | |
200 | + sb.append(", mobile=").append(mobile); | |
201 | + sb.append(", hid=").append(hid); | |
202 | + sb.append(", hname=").append(hname); | |
203 | + sb.append(", did=").append(did); | |
204 | + sb.append(", dname=").append(dname); | |
205 | + sb.append(", dtid=").append(dtid); | |
206 | + sb.append(", dtname=").append(dtname); | |
207 | + sb.append(", iid=").append(iid); | |
208 | + sb.append(", iname=").append(iname); | |
209 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
210 | + sb.append("]"); | |
211 | + return sb.toString(); | |
212 | + } | |
213 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/PatientInfoMapper.java
View file @
e1f846e
1 | +package com.lyms.talkonlineweb.mapper; | |
2 | + | |
3 | +import com.lyms.talkonlineweb.domain.PatientInfo; | |
4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
5 | + | |
6 | +/** | |
7 | + * @Entity com.lyms.talkonlineweb.domain.PatientInfo | |
8 | + */ | |
9 | +public interface PatientInfoMapper extends BaseMapper<PatientInfo> { | |
10 | + | |
11 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/PatientInfoService.java
View file @
e1f846e
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/PatientInfoServiceImpl.java
View file @
e1f846e
1 | +package com.lyms.talkonlineweb.service.impl; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
4 | +import com.lyms.talkonlineweb.domain.PatientInfo; | |
5 | +import com.lyms.talkonlineweb.service.PatientInfoService; | |
6 | +import com.lyms.talkonlineweb.mapper.PatientInfoMapper; | |
7 | +import org.springframework.stereotype.Service; | |
8 | + | |
9 | +/** | |
10 | + * | |
11 | + */ | |
12 | +@Service | |
13 | +public class PatientInfoServiceImpl extends ServiceImpl<PatientInfoMapper, PatientInfo> | |
14 | + implements PatientInfoService{ | |
15 | + | |
16 | +} |