From 4027608a29808c0108bcf363cf977297e99dcbef Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Fri, 21 Mar 2025 09:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/inspectpatient/InspectPatientController.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/controller/admin/inspectpatient/InspectPatientController.java b/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/controller/admin/inspectpatient/InspectPatientController.java index da0ac20..796210b 100644 --- a/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/controller/admin/inspectpatient/InspectPatientController.java +++ b/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/controller/admin/inspectpatient/InspectPatientController.java @@ -358,6 +358,7 @@ public class InspectPatientController { //获取患者信息 InspectPatientDO patientDO = patientService.getPatientInfo(medicalSn); if (patientDO != null) { + // 创建 ObjectMapper 实例 ObjectMapper objectMapper = new ObjectMapper(); // 创建 Java 对象 @@ -398,6 +399,10 @@ public class InspectPatientController { ConfigDO config = configService.getConfigByKey("url.applytj"); // 发送 POST 请求 String url = config.getValue(); + //获取头像地址 + ConfigDO headconfig = configService.getConfigByKey("url.head"); + String headurl = config.getValue(); + String response = HttpUtils.postJson(url, jsonRequestBody); InspectPatientSaveReqVO updateReqVO = new InspectPatientSaveReqVO(); updateReqVO.setMedicalSn(patientDO.getMedicalSn()); @@ -405,6 +410,10 @@ public class InspectPatientController { updateReqVO.setNcgcode(checkBarCode2); updateReqVO.setXcgcode(checkBarCode1); updateReqVO.setShqx(checkBarCode3); + if(headurl!=null&&headurl!="") + { + updateReqVO.setHeadPicUrl(headurl+"?certificatenumber="+patientDO.getCardId()); + } patientService.updatePatientInfo(updateReqVO); }