Commit 0188b4dd1b1a2645a563f66595e5ca30303d8c3b
1 parent
82038db64c
Exists in
master
and in
6 other branches
产前诊断申请
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/DiagnosisFacaed.java
View file @
0188b4d
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | import com.lyms.platform.common.enums.YnEnums; |
6 | 6 | import com.lyms.platform.common.result.BaseObjectResponse; |
7 | 7 | import com.lyms.platform.common.result.BaseResponse; |
8 | +import com.lyms.platform.common.utils.DateUtil; | |
8 | 9 | import com.lyms.platform.common.utils.JsonUtil; |
9 | 10 | import com.lyms.platform.operate.web.result.DiagnosisResult; |
10 | 11 | import com.lyms.platform.operate.web.result.HighScoreResult; |
... | ... | @@ -23,6 +24,7 @@ |
23 | 24 | import org.springframework.stereotype.Component; |
24 | 25 | |
25 | 26 | import java.util.ArrayList; |
27 | +import java.util.Date; | |
26 | 28 | import java.util.List; |
27 | 29 | |
28 | 30 | /** |
... | ... | @@ -86,6 +88,12 @@ |
86 | 88 | } |
87 | 89 | }else{ |
88 | 90 | return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("没有档案,请建档后申请产筛"); |
91 | + } | |
92 | + } | |
93 | + if (null != pat.getLastMenses()) { | |
94 | + int days = DateUtil.daysBetween(pat.getLastMenses(), new Date()); | |
95 | + if(77 < days){ | |
96 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("您怀孕未满11周,不能进行产前诊断申请"); | |
89 | 97 | } |
90 | 98 | } |
91 | 99 |