Commit 3837aad4480a013b2a81faf36c9c6d241097d55d
1 parent
39f6c9d189
Exists in
master
医生信息增加字段
Showing 2 changed files with 18 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsDoctor.java
View file @
3837aad
... | ... | @@ -149,6 +149,22 @@ |
149 | 149 | @TableField(value = "sex") |
150 | 150 | private Integer sex; |
151 | 151 | |
152 | + /** | |
153 | + * 职务 | |
154 | + */ | |
155 | + @TableField(value = "job") | |
156 | + private String job; | |
157 | + /** | |
158 | + * 治疗住院病例数 | |
159 | + */ | |
160 | + @TableField(value = "remedy_count") | |
161 | + private Integer remedyCount; | |
162 | + /** | |
163 | + * 擅长 | |
164 | + */ | |
165 | + @TableField(value = "specialty") | |
166 | + private String specialty; | |
167 | + | |
152 | 168 | |
153 | 169 | @Override |
154 | 170 | public boolean equals(Object that) { |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java
View file @
3837aad
... | ... | @@ -17,6 +17,7 @@ |
17 | 17 | import org.springframework.beans.factory.annotation.Value; |
18 | 18 | import org.springframework.stereotype.Service; |
19 | 19 | import org.springframework.transaction.annotation.Transactional; |
20 | +import org.springframework.util.DigestUtils; | |
20 | 21 | |
21 | 22 | import java.util.*; |
22 | 23 | |
... | ... | @@ -198,7 +199,7 @@ |
198 | 199 | LymsPatient patient2 = lymsPatientService.getOne(Wrappers.query(tmpP).eq("idno", patient.getIdno())); |
199 | 200 | if (patient2 == null) { |
200 | 201 | patient.setCreatedtime(new Date()); |
201 | - patient.setPpasswd(Constant.COMMON_PASSWD); | |
202 | + patient.setPpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); | |
202 | 203 | } else { |
203 | 204 | patient.setId(patient2.getId()); |
204 | 205 | patient.setUpdatedtime(new Date()); |