Commit c34193d8b6f37c718301363f4fdb0db9874134f3
1 parent
da11b33c2a
Exists in
master
and in
6 other branches
解决没有末次月经的bug
Showing 1 changed file with 8 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java
View file @
c34193d
| ... | ... | @@ -384,10 +384,14 @@ |
| 384 | 384 | |
| 385 | 385 | if (patient.getType() == 3) {//已经分娩,就是X |
| 386 | 386 | temp.put("cqsc", 2);//产前筛查){ |
| 387 | - } else {//未分娩, | |
| 388 | - int week = DateUtil.getWeek2(patient.getLastMenses(), new Date()); | |
| 389 | - if (week > 20) {//不能做产前筛查追访,产前检查追访 | |
| 390 | - temp.put("cqsc", 2);//未做产筛 | |
| 387 | + } else {//未分娩 | |
| 388 | + if(patient.getLastMenses()!=null){ | |
| 389 | + int week = DateUtil.getWeek2(patient.getLastMenses(), new Date()); | |
| 390 | + if (week > 20) {//不能做产前筛查追访,产前检查追访 | |
| 391 | + temp.put("cqsc", 2);//未做产筛 | |
| 392 | + } | |
| 393 | + }else{ | |
| 394 | + System.out.println("没有末次月经的建档:"+patient.getId()); | |
| 391 | 395 | } |
| 392 | 396 | } |
| 393 | 397 |