Commit de859793944bc8d8fdcfd5f2f74785c382d262ea
1 parent
8c115d0b17
Exists in
master
增加his系统就诊时间、就诊时间到病例
Showing 3 changed files with 9 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHisInfo.java
View file @
de85979
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPcase.java
View file @
de85979
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | import java.io.Serializable; |
8 | 8 | import java.util.Date; |
9 | 9 | import lombok.Data; |
10 | +import org.springframework.format.annotation.DateTimeFormat; | |
10 | 11 | |
11 | 12 | /** |
12 | 13 | * 病例 |
... | ... | @@ -83,6 +84,12 @@ |
83 | 84 | */ |
84 | 85 | @TableField(value = "updated_time") |
85 | 86 | private Date updatedTime; |
87 | + /** | |
88 | + * his系统就诊时间、就诊时间 | |
89 | + */ | |
90 | + @TableField(value = "created") | |
91 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | |
92 | + private Date created; | |
86 | 93 | |
87 | 94 | @TableField(exist = false) |
88 | 95 | private static final long serialVersionUID = 1L; |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java
View file @
de85979
... | ... | @@ -195,6 +195,7 @@ |
195 | 195 | pcase.setDtid(doctorId); |
196 | 196 | pcase.setDtname(doctorName); |
197 | 197 | pcase.setCreatedby(1); |
198 | + pcase.setCreated(lymsHisInfo.getCreated()); | |
198 | 199 | String illness = StringUtils.join(Arrays.asList(diagnoseIds.toArray()), ",");//疾病ids |
199 | 200 | BaseResponse baseResponse = saveOrUpdatePatient(patient2, pcase, illness); |
200 | 201 | if (null != baseResponse && 0 == baseResponse.getErrorcode()) { |