Commit 93c0f08cbc97353975f6784a963faa3a8f0507b2
1 parent
bed1bea3f0
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 29 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/AutoRiskRecord.java
View file @
93c0f08
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntenatalExaminationController.java
View file @
93c0f08
... | ... | @@ -512,6 +512,34 @@ |
512 | 512 | return baseResponse; |
513 | 513 | } |
514 | 514 | |
515 | + /** | |
516 | + * 自动诊断的数量 | |
517 | + * @param request | |
518 | + * @return | |
519 | + */ | |
520 | + @RequestMapping(method = RequestMethod.GET, value = "/getAutoRiskCount") | |
521 | + @ResponseBody | |
522 | + @TokenRequired | |
523 | + public BaseResponse getAutoRiskCount( HttpServletRequest request) { | |
524 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
525 | + BaseResponse baseResponse = antenatalExaminationFacade.getAutoRiskCount(loginState.getId()); | |
526 | + return baseResponse; | |
527 | + } | |
528 | + | |
529 | + /** | |
530 | + * 设置高危已经诊断 | |
531 | + * @param request | |
532 | + * @return | |
533 | + */ | |
534 | + @RequestMapping(method = RequestMethod.GET, value = "/setAutoRisked/{id}") | |
535 | + @ResponseBody | |
536 | + @TokenRequired | |
537 | + public BaseResponse setAutoRisked(@PathVariable String id ,HttpServletRequest request) { | |
538 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
539 | + BaseResponse baseResponse = antenatalExaminationFacade.setAutoRisked(id, loginState.getId()); | |
540 | + return baseResponse; | |
541 | + } | |
542 | + | |
515 | 543 | |
516 | 544 | } |