Commit 8a511aebd97262f02ebf9626070dfdbad77258d5

Authored by wtt
1 parent a0ea61ef14

update

Showing 5 changed files with 36 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntenatalExaminationController.java View file @ 8a511ae
... ... @@ -182,7 +182,7 @@
182 182 *
183 183 * @return
184 184 */
185   - @RequestMapping(method = RequestMethod.GET, value = "/antexmanageSign")
  185 + @RequestMapping(method = RequestMethod.POST, value = "/antexmanageSign")
186 186 @ResponseBody
187 187 @TokenRequired
188 188 public BaseResponse addOneAntenatalExaminationSign(String patientSign, String id, HttpServletRequest request) {
... ... @@ -212,6 +212,22 @@
212 212 logger.info(stopWatch.toString());
213 213 return baseResponse;
214 214 }
  215 +
  216 + /**
  217 + * 初诊 上传 患者签名
  218 + *
  219 + * @return
  220 + */
  221 + @RequestMapping(method = RequestMethod.POST, value = "/antexSign")
  222 + @ResponseBody
  223 + @TokenRequired
  224 + public BaseResponse antexSign(String patientSign, String id, HttpServletRequest request) {
  225 + LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
  226 + BaseResponse baseResponse = antenatalExaminationFacade.antexSign(patientSign, id);
  227 + return baseResponse;
  228 + }
  229 +
  230 +
215 231  
216 232  
217 233 /**
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyCheckController.java View file @ 8a511ae
... ... @@ -68,7 +68,7 @@
68 68 *
69 69 * @return
70 70 */
71   - @RequestMapping(method = RequestMethod.GET, value = "/babyCheckSign")
  71 + @RequestMapping(method = RequestMethod.POST, value = "/babyCheckSign")
72 72 @ResponseBody
73 73 @TokenRequired
74 74 public BaseResponse babyCheckSign(String patientSign, String id, HttpServletRequest request) {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEyeCheckController.java View file @ 8a511ae
... ... @@ -47,7 +47,7 @@
47 47 *
48 48 * @return
49 49 */
50   - @RequestMapping(method = RequestMethod.GET, value = "/babyEyeCheckSign")
  50 + @RequestMapping(method = RequestMethod.POST, value = "/babyEyeCheckSign")
51 51 @ResponseBody
52 52 @TokenRequired
53 53 public BaseResponse babyEyeCheckSign(String patientSign, String id, HttpServletRequest request) {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java View file @ 8a511ae
... ... @@ -107,7 +107,7 @@
107 107 *
108 108 * @return
109 109 */
110   - @RequestMapping(method = RequestMethod.GET, value = "/matdelSign")
  110 + @RequestMapping(method = RequestMethod.POST, value = "/matdelSign")
111 111 @ResponseBody
112 112 @TokenRequired
113 113 public BaseResponse matdelSign(String patientSign, String id, HttpServletRequest request) {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 8a511ae
... ... @@ -634,6 +634,22 @@
634 634 }
635 635 }
636 636 }
  637 + /**
  638 + * 初诊 上传 患者签名
  639 +
  640 + * @Author: 武涛涛
  641 + * @Date: 2020/12/15 15:12
  642 + */
  643 + public BaseResponse antexSign(String patientSign, String id) {
  644 + if (StringUtils.isNotEmpty(id)) {
  645 + AntExChuModel model = new AntExChuModel();
  646 + model.setPatientSign(patientSign);
  647 + antenatalExaminationService.updateAntExChu(model, id);
  648 + }else {
  649 + return new BaseResponse().setErrormsg("没有id").setErrorcode(ErrorCodeConstants.BUSINESS_ERROR);
  650 + }
  651 + return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
  652 + }
637 653  
638 654 /**
639 655 * 增加或修改产检记录(初诊)