Commit 93e91c219426e240d26ae34bfc82819e42656069
1 parent
fd797ceba6
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 10 additions and 0 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/PatientWeight.java
View file @
93e91c2
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.beans.SerialIdEnum; |
| 4 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 5 | +import com.lyms.platform.common.utils.StringUtils; | |
| 5 | 6 | import org.springframework.data.annotation.Transient; |
| 6 | 7 | import org.springframework.data.mongodb.core.mapping.Document; |
| 7 | 8 | |
| ... | ... | @@ -274,6 +275,11 @@ |
| 274 | 275 | } |
| 275 | 276 | |
| 276 | 277 | public String getBregmatic() { |
| 278 | + if (StringUtils.isEmpty(bregmatic) || "null".equals(bregmatic)) | |
| 279 | + { | |
| 280 | + return null; | |
| 281 | + } | |
| 282 | + | |
| 277 | 283 | return bregmatic; |
| 278 | 284 | } |
| 279 | 285 | |
| ... | ... | @@ -282,6 +288,10 @@ |
| 282 | 288 | } |
| 283 | 289 | |
| 284 | 290 | public String getBregmaticOther() { |
| 291 | + if (StringUtils.isEmpty(bregmaticOther) || "null".equals(bregmaticOther)) | |
| 292 | + { | |
| 293 | + return ""; | |
| 294 | + } | |
| 285 | 295 | return bregmaticOther; |
| 286 | 296 | } |
| 287 | 297 |