Commit 4ab192f8a40f63945172410ee5d7e19a34c5ff01
1 parent
f874c43f94
Exists in
master
and in
8 other branches
删掉不使用的代码
Showing 4 changed files with 2 additions and 46 deletions
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AccessPermissionFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AutoMatchFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BasicConfigFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/VisitFacade.java
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AccessPermissionFacade.java
View file @
4ab192f
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AutoMatchFacade.java
View file @
4ab192f
| ... | ... | @@ -29,12 +29,6 @@ |
| 29 | 29 | @Autowired |
| 30 | 30 | private OrganizationService organizationService; |
| 31 | 31 | @Autowired |
| 32 | - private CommunityConfigService communityConfigService; | |
| 33 | - @Autowired | |
| 34 | - private PatientsService patientsService; | |
| 35 | - @Autowired | |
| 36 | - private UserOrganizationMapsService userOrganizationMapsService; | |
| 37 | - @Autowired | |
| 38 | 32 | private AccessPermissionFacade accessPermissionFacade; |
| 39 | 33 | |
| 40 | 34 | public String match(int userId) { |
| ... | ... | @@ -92,23 +86,5 @@ |
| 92 | 86 | } |
| 93 | 87 | return data; |
| 94 | 88 | } |
| 95 | - | |
| 96 | - | |
| 97 | - public List<CommunityConfig> findCommunity(String areaId) { | |
| 98 | - CommunityQuery communityQuery = new CommunityQuery(); | |
| 99 | - communityQuery.setId(areaId); | |
| 100 | - return communityConfigService.queryCommunity(communityQuery); | |
| 101 | - } | |
| 102 | - | |
| 103 | - public List<Patients> findPatients(String areaId) { | |
| 104 | - PatientsQuery patientsQuery = new PatientsQuery(); | |
| 105 | - patientsQuery.setAreaId(areaId); | |
| 106 | - patientsQuery.setYn(YnEnums.YES.getId()); | |
| 107 | - patientsQuery.setType(3); | |
| 108 | - return patientsService.queryPatient(patientsQuery); | |
| 109 | - } | |
| 110 | - /*public List<BabyModel> findBaby(){ | |
| 111 | - | |
| 112 | - }*/ | |
| 113 | 89 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BasicConfigFacade.java
View file @
4ab192f
| ... | ... | @@ -47,12 +47,6 @@ |
| 47 | 47 | return new BaseListResponse().setData(buildResult(data)).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setPageInfo(basicConfigQuery.getPageInfo()); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | -/* public BaseListResponse findByParentId(String id){ | |
| 51 | - BasicConfigQuery basicConfigQuery = new BasicConfigQuery(); | |
| 52 | - basicConfigQuery.setParentId(id); | |
| 53 | - List<BasicConfig> data = basicConfigService.queryBasicConfig(basicConfigQuery); | |
| 54 | - return new BaseListResponse().setData(buildResult(data)).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 55 | - }*/ | |
| 56 | 50 | |
| 57 | 51 | public List<BasicConfigResult> buildResult( List<BasicConfig> data){ |
| 58 | 52 | List<BasicConfigResult> dataList = new ArrayList<>(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/VisitFacade.java
View file @
4ab192f
| ... | ... | @@ -172,14 +172,13 @@ |
| 172 | 172 | |
| 173 | 173 | patients.setCreated(new Date()); |
| 174 | 174 | patients.setModified(new Date()); |
| 175 | - patientsService.updatePatient(patients/*.build()*/); | |
| 175 | + patientsService.updatePatient(patients); | |
| 176 | 176 | } |
| 177 | 177 | } else { |
| 178 | 178 | return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("产妇信息不存在"); |
| 179 | 179 | } |
| 180 | 180 | } else { |
| 181 | 181 | // 表示是新的产妇直接新增 |
| 182 | -// parentId = puerperaService.addPuerpera(visitRequest.getPuerpera().build()).getId(); | |
| 183 | 182 | parentId = addOnePatients(visitRequest.getPatients()); |
| 184 | 183 | } |
| 185 | 184 | |
| ... | ... | @@ -381,11 +380,6 @@ |
| 381 | 380 | */ |
| 382 | 381 | public BaseObjectResponse findBabyVisitByMotherCardNo(String cardNo) { |
| 383 | 382 | // 根据身份证号获取到产妇信息 |
| 384 | - /* BabyModel puerperaModel = findOnePuerperaByCardNo(cardNo,2); | |
| 385 | - if (null == puerperaModel) { | |
| 386 | - return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS).setErrormsg("产妇信息不存在"); | |
| 387 | - } | |
| 388 | - return findBabyVisit(puerperaModel);*/ | |
| 389 | 383 | BabyModel babyModel = findOneBabyByMphone(cardNo); |
| 390 | 384 | |
| 391 | 385 | if (null != babyModel) { |
| ... | ... | @@ -428,10 +422,7 @@ |
| 428 | 422 | |
| 429 | 423 | |
| 430 | 424 | private BaseObjectResponse findBabyVisit(BabyModel babyModel) { |
| 431 | -/* BabyModelQuery babyQuery = new BabyModelQuery(); | |
| 432 | - babyQuery.setParentId(puerperaModel.getId()); | |
| 433 | - babyQuery.setYn(YnEnums.YES.getId()); | |
| 434 | - List<BabyModel> babies = babyService.queryBabyWithQuery(babyQuery);*/ | |
| 425 | + | |
| 435 | 426 | BabyVisitResult babyVisitResult = new BabyVisitResult(); |
| 436 | 427 | List<BabyVisitResult.BabyVisit> data = new ArrayList<BabyVisitResult.BabyVisit>(); |
| 437 | 428 | // 根据产妇id查询该产妇下的小孩访视 |