Commit 469c03e51e9aea6f3982986ed72b7ae4102ed485

Authored by hujiaqi
1 parent f8c47b3e17

产妇建档或者孕改产建档都属于自动分娩

Showing 1 changed file with 6 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 469c03e
... ... @@ -217,6 +217,9 @@
217 217 patient.setDueStatus(0);
218 218 //1孕妇 3 产妇
219 219 patient.setType(type);
  220 + if(type==3){
  221 + patient.setIsAutoFm(YnEnums.YES.getId());
  222 + }
220 223 patient.setBuildType(buildType);
221 224 if (type == ServiceObjEnums.CHANOBJ.getId() && date != null) {
222 225 patient.setFmDate(date);
... ... @@ -496,6 +499,9 @@
496 499 }
497 500  
498 501 patient.setOperator(userId);
  502 + if(patient.getType()==3){
  503 + patient.setIsAutoFm(YnEnums.YES.getId());
  504 + }
499 505 yunBookbuildingService.updatePregnant(patient, id);
500 506 //如果当前是建档医院,那么需要修改其他非建档医院的数据
501 507 if (autoMatchFacade.checkBStatus(userId)) {