Commit e172700684d46cedb416917ded77e1005e736d97

Authored by zhangchao
1 parent a11bf2db97
Exists in dev

#fix:优化消息通知

Showing 2 changed files with 12 additions and 16 deletions

platform-dal/src/main/java/com/lyms/platform/pojo/MsgModel.java View file @ e172700
1 1 package com.lyms.platform.pojo;
2 2  
3   -import com.fasterxml.jackson.annotation.JsonFormat;
4 3 import com.lyms.platform.beans.SerialIdEnum;
5 4 import com.lyms.platform.common.result.BaseModel;
6 5 import org.springframework.data.mongodb.core.mapping.Document;
7   -import org.springframework.format.annotation.DateTimeFormat;
8 6  
9   -import java.util.Date;
10   -
11 7 @Document(collection="lyms_msg")
12 8 public class MsgModel extends BaseModel {
13 9 private static final long serialVersionUID = SerialIdEnum.ModularFunctionConfigModel.getCid();
... ... @@ -33,7 +29,7 @@
33 29 //状态 0.未读 1.已读
34 30 private Integer state;
35 31 //标题0.医生停诊通知 1.检查停诊通知 2.医院放假通知 3.排课表
36   - private Integer title;
  32 + private String title;
37 33  
38 34 private String hospitalId;
39 35  
40 36  
... ... @@ -190,11 +186,11 @@
190 186 this.state = state;
191 187 }
192 188  
193   - public Integer getTitle() {
  189 + public String getTitle() {
194 190 return title;
195 191 }
196 192  
197   - public void setTitle(Integer title) {
  193 + public void setTitle(String title) {
198 194 this.title = title;
199 195 }
200 196 }
platform-dal/src/main/java/com/lyms/platform/pojo/MsgModelRecord.java View file @ e172700
... ... @@ -26,7 +26,7 @@
26 26 //状态 0.未读 1.已读
27 27 private Integer state;
28 28 //标题0.医生停诊通知 1.检查停诊通知 2.医院放假通知 3.排课表
29   - private Integer title;
  29 + private String title;
30 30 //阅读量
31 31 private Integer readNum;
32 32 private String hospitalId;
33 33  
... ... @@ -154,20 +154,20 @@
154 154 this.state = state;
155 155 }
156 156  
157   - public Integer getTitle() {
158   - return title;
159   - }
160   -
161   - public void setTitle(Integer title) {
162   - this.title = title;
163   - }
164   -
165 157 public Integer getReadNum() {
166 158 return readNum;
167 159 }
168 160  
169 161 public void setReadNum(Integer readNum) {
170 162 this.readNum = readNum;
  163 + }
  164 +
  165 + public String getTitle() {
  166 + return title;
  167 + }
  168 +
  169 + public void setTitle(String title) {
  170 + this.title = title;
171 171 }
172 172 }