修改BUG
This commit is contained in:
parent
370bdb45d1
commit
4027608a29
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user