Commit 93c0f08cbc97353975f6784a963faa3a8f0507b2

Authored by liquanyu
1 parent bed1bea3f0

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
... ... @@ -31,7 +31,7 @@
31 31 private Date modified;
32 32 //状态 0 未确认 已经确认
33 33 private Integer status;
34   - //诊断来源 0建档 1产检
  34 + //诊断来源 0建档 1初诊 2复诊
35 35 private Integer type;
36 36  
37 37 public String getId() {
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 }