Commit 673d08996e92e2749d9cd95d74b1510730a0fb6e
1 parent
4a47d6bcc8
Exists in
master
and in
8 other branches
增加设置parentid
Showing 2 changed files with 6 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/constants/ErrorCodeConstants.java
View file @
673d089
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
673d089
... | ... | @@ -414,6 +414,10 @@ |
414 | 414 | } else if (null == patients) { |
415 | 415 | return new BaseResponse().setErrormsg("该孕妇还未在本院建档不能进行分娩").setErrorcode(ErrorCodeConstants.NO_DATA); |
416 | 416 | } |
417 | + int days = DateUtil.daysBetween(patients.getLastMenses(), new Date());; | |
418 | + if(days<168){ | |
419 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.BUSINESS_ERROR1).setErrormsg("该孕妇不能分娩."); | |
420 | + } | |
417 | 421 | |
418 | 422 | |
419 | 423 | MatDeliverQuery matDeliverQuery = new MatDeliverQuery(); |