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); }