Commit bba1b5c33b58f8b48641d91da49ec64faa1ac28f
1 parent
2ca57827f9
Exists in
master
and in
6 other branches
预约建档添加时间
Showing 2 changed files with 12 additions and 0 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/ArchiveData.java
View file @
bba1b5c
| ... | ... | @@ -4,6 +4,8 @@ |
| 4 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 5 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 6 | 6 | |
| 7 | +import java.util.Date; | |
| 8 | + | |
| 7 | 9 | /** |
| 8 | 10 | * Created by riecard on 2016/10/19. |
| 9 | 11 | */ |
| 10 | 12 | |
| ... | ... | @@ -18,7 +20,15 @@ |
| 18 | 20 | private String phone; |
| 19 | 21 | private String hospitalId; |
| 20 | 22 | private String jsonData; |
| 23 | + private Date created; | |
| 21 | 24 | |
| 25 | + public Date getCreated() { | |
| 26 | + return created; | |
| 27 | + } | |
| 28 | + | |
| 29 | + public void setCreated(Date created) { | |
| 30 | + this.created = created; | |
| 31 | + } | |
| 22 | 32 | |
| 23 | 33 | public String getCardNum() { |
| 24 | 34 | return cardNum; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java
View file @
bba1b5c
| ... | ... | @@ -30,6 +30,7 @@ |
| 30 | 30 | import java.io.IOException; |
| 31 | 31 | import java.io.UnsupportedEncodingException; |
| 32 | 32 | import java.net.URLEncoder; |
| 33 | +import java.util.Date; | |
| 33 | 34 | import java.util.HashMap; |
| 34 | 35 | import java.util.List; |
| 35 | 36 | import java.util.Map; |
| ... | ... | @@ -136,6 +137,7 @@ |
| 136 | 137 | data.setCardNum(cardNum); |
| 137 | 138 | data.setPhone(phone); |
| 138 | 139 | data.setJsonData(jsonData); |
| 140 | + data.setCreated(new Date()); | |
| 139 | 141 | archiveDataServicer.addOrUpdate(data); |
| 140 | 142 | } |
| 141 | 143 | catch (Exception e) |