Commit f9fb6d8e69bd562747bd9944033e38b1ec99d886
1 parent
c83f3400c8
Exists in
master
and in
6 other branches
分娩儿童建档服务开通问题修改
Showing 1 changed file with 25 additions and 37 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
f9fb6d8
... | ... | @@ -811,7 +811,31 @@ |
811 | 811 | br.setErrormsg("保存失败"); |
812 | 812 | return br; |
813 | 813 | } |
814 | - handleBaby(model, userId, request); | |
814 | + //眼保健保存建档时候,保存听力产筛档案mysql表 | |
815 | + addMysqlOrUpdateBabyEar(userId, model); | |
816 | + | |
817 | + // 更新追访概况,作废档案转正 | |
818 | + babyAfterVisitService.addOrUpdateAfterVisitData(model, TYPE_STATISTICS, STATUS_TYPE_BUILD); | |
819 | + //babyAfterVisitService.addOrUpdateAfterVisitData(model, TYPE_BUILD, STATUS_TYPE_NO); | |
820 | + // 新增儿保追访和眼保追访 | |
821 | + babyAfterVisitService.addOrUpdateAfterVisitData(model, TYPE_CHECK, STATUS_TYPE_YES); | |
822 | + babyAfterVisitService.addOrUpdateAfterVisitData(model, TYPE_EYE_CHECK, STATUS_TYPE_YES); | |
823 | + | |
824 | + //开通增值服务 | |
825 | + PatientService patientService = new PatientService(); | |
826 | + patientService.setPerType(2); | |
827 | + patientService.setSerInfos(request.getSerInfos()); | |
828 | + patientService.setCreateUser(String.valueOf(userId)); | |
829 | + //开通日期与建档日期一致 | |
830 | + patientService.setCreateDate(DateUtil.parseYMD(request.getBuildDate())); | |
831 | + patientService.setParentid(model.getId()); | |
832 | + patientService.setPid(model.getPid()); | |
833 | + try { | |
834 | + patientServiceFacade.addPatientService(patientService, userId, request.getHospitalId()); | |
835 | + } catch (Exception e) { | |
836 | + System.out.println("儿童建档服务开通异常!"); | |
837 | + e.printStackTrace(); | |
838 | + } | |
815 | 839 | //创建建档短信 |
816 | 840 | createBuildMsg(model); |
817 | 841 | handleBabyDiangose(request.getBlNo(), hid); |
... | ... | @@ -919,42 +943,6 @@ |
919 | 943 | } |
920 | 944 | |
921 | 945 | |
922 | - public void handleBaby(final BabyModel babyModel,final Integer userId,final BabyBookbuildingAddRequest request) | |
923 | - { | |
924 | - | |
925 | - commonThreadPool.execute(new Runnable() { | |
926 | - @Override | |
927 | - public void run() { | |
928 | - | |
929 | - //眼保健保存建档时候,保存听力产筛档案mysql表 | |
930 | - addMysqlOrUpdateBabyEar(userId, babyModel); | |
931 | - | |
932 | - // 更新追访概况,作废档案转正 | |
933 | - babyAfterVisitService.addOrUpdateAfterVisitData(babyModel, TYPE_STATISTICS, STATUS_TYPE_BUILD); | |
934 | - //babyAfterVisitService.addOrUpdateAfterVisitData(model, TYPE_BUILD, STATUS_TYPE_NO); | |
935 | - // 新增儿保追访和眼保追访 | |
936 | - babyAfterVisitService.addOrUpdateAfterVisitData(babyModel, TYPE_CHECK, STATUS_TYPE_YES); | |
937 | - babyAfterVisitService.addOrUpdateAfterVisitData(babyModel, TYPE_EYE_CHECK, STATUS_TYPE_YES); | |
938 | - | |
939 | - //开通增值服务 | |
940 | - PatientService patientService = new PatientService(); | |
941 | - patientService.setPerType(2); | |
942 | - patientService.setSerInfos(request.getSerInfos()); | |
943 | - patientService.setCreateUser(String.valueOf(userId)); | |
944 | - //开通日期与建档日期一致 | |
945 | - patientService.setCreateDate(DateUtil.parseYMD(request.getBuildDate())); | |
946 | - patientService.setParentid(babyModel.getId()); | |
947 | - patientService.setPid(babyModel.getPid()); | |
948 | - try { | |
949 | - patientServiceFacade.addPatientService(patientService, userId, request.getHospitalId()); | |
950 | - } catch (Exception e) { | |
951 | - System.out.println("儿童建档服务开通异常!"); | |
952 | - e.printStackTrace(); | |
953 | - } | |
954 | - } | |
955 | - }); | |
956 | - | |
957 | - } | |
958 | 946 | |
959 | 947 | /** |
960 | 948 | * 创建建档短信 |