Commit 63195081eb058f8fe77a76507bfd7a886dc35d2d

Authored by jiangjiazhi
1 parent aa71276bad

全部孕妇管理增加按照排序

Showing 1 changed file with 49 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java View file @ 6319508
... ... @@ -615,6 +615,55 @@
615 615  
616 616  
617 617 /**
  618 + * 修改医生价格同步状态
  619 + *
  620 + * @param ids id集合
  621 + */
  622 + public BaseResponse updateDoctService(String ids) {
  623 +
  624 + HospitalDoctServiceQuery patientQuery = new HospitalDoctServiceQuery();
  625 + patientQuery.setId(ids);
  626 +
  627 + List<HospitalDoctService> patientServices = hospitalDoctServiceService.queryHospitalDoctService(patientQuery);
  628 + if (CollectionUtils.isNotEmpty(patientServices)) {
  629 + for (HospitalDoctService ps : patientServices) {
  630 + ps.setSyncStatus(1);
  631 + hospitalDoctServiceService.updateHospitalDoctService(ps);
  632 + }
  633 + }
  634 +
  635 + BaseResponse baseResponse = new BaseResponse();
  636 + baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  637 + baseResponse.setErrormsg("成功");
  638 + return baseResponse;
  639 + }
  640 + /**
  641 + * 修改医院价格同步状态
  642 + *
  643 + * @param ids id集合
  644 + */
  645 + public BaseResponse updateHospitalServiceContent(String ids) {
  646 +
  647 + HospitalServiceContentQuery patientQuery = new HospitalServiceContentQuery();
  648 + patientQuery.setId(ids);
  649 +
  650 + List<HospitalServiceContent> patientServices = hospitalServiceContentService.queryHospitalServiceContent(patientQuery);
  651 + if (CollectionUtils.isNotEmpty(patientServices)) {
  652 + for (HospitalServiceContent ps : patientServices) {
  653 + ps.setSyncStatus(1);
  654 + hospitalServiceContentService.updateHospitalServiceContent(ps);
  655 + }
  656 + }
  657 +
  658 + BaseResponse baseResponse = new BaseResponse();
  659 + baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  660 + baseResponse.setErrormsg("成功");
  661 + return baseResponse;
  662 + }
  663 +
  664 +
  665 +
  666 + /**
618 667 * 同步医院医生服务价格配置
619 668 *
620 669 * @return