机构短号

This commit is contained in:
Flow 2025-06-12 14:01:30 +08:00
parent 6e1fd8efd1
commit ce544d635d
9 changed files with 27 additions and 6 deletions

View File

@ -2023,8 +2023,9 @@ public class InspectPatientController {
public CommonResult<Boolean> updatePatientOrg(@RequestParam("medicalSn") String medicalSn,
@RequestParam("examhoscode") String examhoscode,
@RequestParam("examhosname") String examhosname,
@RequestParam("hospitalNo") String hospitalNo) {
patientService.updatePatientOrg(medicalSn, examhoscode, examhosname,hospitalNo);
@RequestParam("hospitalNo") String hospitalNo,
@RequestParam("shortid") String shortid) {
patientService.updatePatientOrg(medicalSn, examhoscode, examhosname,hospitalNo,shortid);
return success(true);
}
}

View File

@ -76,4 +76,7 @@ public class InspectPatientInfoVO {
@Schema(description = "体检医院名称")
private String examhosname;
@Schema(description = "机构短号")
private String shortid;
}

View File

@ -151,4 +151,7 @@ public class InspectPatientPageReqVO extends PageParam {
@Schema(description = "体检医院名称")
private String examhosname;
@Schema(description = "机构短号")
private String shortid;
}

View File

@ -161,4 +161,7 @@ public class InspectPatientRespVO {
@Schema(description = "体检医院名称")
private String examhosname;
@Schema(description = "机构短号")
private String shortid;
}

View File

@ -134,4 +134,8 @@ public class InspectPatientSaveReqVO {
@Schema(description = "体检医院名称")
private String examhosname;
@Schema(description = "机构短号")
private String shortid;
}

View File

@ -270,5 +270,10 @@ public class InspectPatientDO {
*/
@TableField("examhosname")
private String examhosname;
/**
* 机构短号
*/
@TableField("shortid")
private String shortid;
}

View File

@ -76,7 +76,8 @@ public interface InspectPatientMapper extends BaseMapperX<InspectPatientDO> {
InspectPatientDO::getIsprint,
InspectPatientDO::getPrinttime,
InspectPatientDO::getExamhoscode,
InspectPatientDO::getExamhosname
InspectPatientDO::getExamhosname,
InspectPatientDO::getShortid
);
return selectPage(reqVO, queryWrapper);
}

View File

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

View File

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