选择乌兰察布第四医院:121526004609160793|乌兰察布第四医院实验室:221526004609160793

This commit is contained in:
Flow 2025-06-11 15:56:42 +08:00
parent b931baa1aa
commit 6e1fd8efd1
4 changed files with 16 additions and 7 deletions

View File

@ -29,6 +29,12 @@
<artifactId>yudao-spring-boot-starter-security</artifactId>
</dependency>
<!-- Common 相关 -->
<dependency>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-common</artifactId>
</dependency>
<!-- DB 相关 -->
<dependency>
<groupId>cn.iocoder.boot</groupId>

View File

@ -476,7 +476,8 @@ public class InspectPatientController {
Map<String, Object> patient = new HashMap<>();
patient.put("patientName", patientDO.getPName());
patient.put("idCard", patientDO.getCardId());
patient.put("hospitalCode", "121526004609160793");
//乌兰察布第四医院121526004609160793|乌兰察布第四医院实验室221526004609160793
patient.put("hospitalCode", patientDO.getHospitalNo());
patient.put("sampleSource", "TJ");
patient.put("patientGender", patientDO.getGender().equals("") ? "1" : "0");
patient.put("patientAge", StrUtils.calculateAgeFromIdCard(patientDO.getCardId()));
@ -531,7 +532,7 @@ public class InspectPatientController {
InspectPatientSaveReqVO updateReqVO = new InspectPatientSaveReqVO();
updateReqVO.setMedicalSn(patientDO.getMedicalSn());
updateReqVO.setHospitalNo("121526004609160793");//乌兰察布第四医院 暂时写死
updateReqVO.setHospitalNo(patientDO.getHospitalNo());
updateReqVO.setNcgcode(checkBarCode2);
updateReqVO.setXcgcode(checkBarCode1);
updateReqVO.setShqx(checkBarCode3);
@ -2021,8 +2022,9 @@ public class InspectPatientController {
@Operation(summary = "根据体检编号更新患者归属医院")
public CommonResult<Boolean> updatePatientOrg(@RequestParam("medicalSn") String medicalSn,
@RequestParam("examhoscode") String examhoscode,
@RequestParam("examhosname") String examhosname) {
patientService.updatePatientOrg(medicalSn, examhoscode, examhosname);
@RequestParam("examhosname") String examhosname,
@RequestParam("hospitalNo") String hospitalNo) {
patientService.updatePatientOrg(medicalSn, examhoscode, examhosname,hospitalNo);
return success(true);
}
}

View File

@ -61,7 +61,7 @@ public interface InspectPatientService {
/*
* 根据体检编号更新患者归属医院信息
*/
void updatePatientOrg(String medicalSn, String examhoscode, String examhosname);
void updatePatientOrg(String medicalSn, String examhoscode, String examhosname,String hospitalNo);
/**
* 删除患者信息

View File

@ -137,11 +137,12 @@ public class InspectPatientServiceImpl implements InspectPatientService {
patientMapper.update(null, updateWrapper);
}
@Override
public void updatePatientOrg(String medicalSn, String examhoscode, String examhosname) {
public void updatePatientOrg(String medicalSn, String examhoscode, String examhosname,String hospitalNo) {
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPatientDO::getMedicalSn, medicalSn)
.set(InspectPatientDO::getExamhoscode, examhoscode)
.set(InspectPatientDO::getExamhosname, examhosname);
.set(InspectPatientDO::getExamhosname, examhosname)
.set(InspectPatientDO::getHospitalNo, hospitalNo);
patientMapper.update(null, updateWrapper);
}
@Override