Commit 673d08996e92e2749d9cd95d74b1510730a0fb6e

Authored by jiangjiazhi
1 parent 4a47d6bcc8

增加设置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
... ... @@ -50,5 +50,7 @@
50 50 public static final int NO_DATA=4210;
51 51 //不能删除
52 52 public static final int DONT_DELETE=4201;
  53 + //
  54 + public static final int BUSINESS_ERROR1 = 4018;
53 55 }
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();