Commit e296cffac1ddc8b3581c8fe8182fb09f374c7a1f
1 parent
df94e7cf86
Exists in
dev
#fix:新增儿保服务有没有开通
Showing 2 changed files with 21 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBuildController.java
View file @
e296cff
| ... | ... | @@ -1387,5 +1387,15 @@ |
| 1387 | 1387 | public BaseResponse saveBabyDiagnose(@RequestBody List<HisNewbornRequest> models){ |
| 1388 | 1388 | return babyBookbuildingFacade.saveBabyDiagnose(models); |
| 1389 | 1389 | } |
| 1390 | + /** | |
| 1391 | + * 儿保小程序获取是否开通服务 | |
| 1392 | + * @return | |
| 1393 | + */ | |
| 1394 | + @RequestMapping(method = RequestMethod.GET, value = "/wx/getBabyService") | |
| 1395 | + @ResponseBody | |
| 1396 | + public BaseResponse getBabyService(String babyId){ | |
| 1397 | + return babyBookbuildingFacade.getBabyService(babyId); | |
| 1398 | + } | |
| 1399 | + | |
| 1390 | 1400 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
e296cff
| ... | ... | @@ -213,6 +213,17 @@ |
| 213 | 213 | return new BaseObjectResponse().setData(base).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + public BaseResponse getBabyService(String babyId){ | |
| 217 | + BabyModelQuery babyModelQuery = new BabyModelQuery(); | |
| 218 | + babyModelQuery.setYn(1); | |
| 219 | + babyModelQuery.setServiceType(ServiceTypeEnums.ADD_SERVICE.getId()); | |
| 220 | + babyModelQuery.setServiceStatus(ServiceStatusEnums.ADD_OPEN.getId()); | |
| 221 | + babyModelQuery.setId(babyId); | |
| 222 | + int count= babyService.queryBabyCount(babyModelQuery); | |
| 223 | + return new BaseObjectResponse().setData(count>0?"true":"false").setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 224 | + | |
| 225 | + } | |
| 226 | + | |
| 216 | 227 | /** |
| 217 | 228 | * 查询符合条件的小孩 |
| 218 | 229 | * |