This commit is contained in:
Flow 2025-06-26 17:31:50 +08:00
parent d25fd589a9
commit 133d07043d
3 changed files with 31 additions and 5 deletions

View File

@ -2034,4 +2034,13 @@ public class InspectPatientController {
patientService.updatePatientOrg(medicalSn, examhoscode, examhosname,hospitalNo,shortid); patientService.updatePatientOrg(medicalSn, examhoscode, examhosname,hospitalNo,shortid);
return success(true); return success(true);
} }
@PutMapping("/updateChiefinspector")
@Operation(summary = "根据体检编号更新总检医生")
public CommonResult<Boolean> updateChiefinspector(@RequestParam("medicalSn") String medicalSn,
@RequestParam("chiefinspectorid") String chiefinspectorid,
@RequestParam("chiefinspector") String chiefinspector) {
patientService.updateChiefinspector(medicalSn, chiefinspectorid, chiefinspector);
return success(true);
}
} }

View File

@ -186,4 +186,12 @@ public interface InspectPatientService {
* @param barcodetime 条码时间 * @param barcodetime 条码时间
*/ */
void updateBarcodeTime(String medicalSn, Date barcodetime); void updateBarcodeTime(String medicalSn, Date barcodetime);
/**
* 根据体检编号更新总检医生ID和姓名
* @param medicalSn 体检编号
* @param chiefinspectorid 总检医生ID
* @param chiefinspector 总检医生姓名
*/
void updateChiefinspector(String medicalSn, String chiefinspectorid, String chiefinspector);
} }

View File

@ -106,12 +106,11 @@ public class InspectPatientServiceImpl implements InspectPatientService {
patientMapper.update(null, updateWrapper); patientMapper.update(null, updateWrapper);
} }
@Override @Override
public void updatedoctorid(InspectPatientSaveReqVO updateReqVO) public void updateChiefinspector(String medicalSn, String chiefinspectorid, String chiefinspector) {
{
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>(); LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPatientDO::getMedicalSn, updateReqVO.getMedicalSn()) updateWrapper.eq(InspectPatientDO::getMedicalSn, medicalSn)
.set(InspectPatientDO::getChiefinspectorid, updateReqVO.getChiefinspectorid()) .set(InspectPatientDO::getChiefinspectorid, chiefinspectorid)
.set(InspectPatientDO::getChiefinspector, updateReqVO.getChiefinspector()); .set(InspectPatientDO::getChiefinspector, chiefinspector);
patientMapper.update(null, updateWrapper); patientMapper.update(null, updateWrapper);
} }
@Override @Override
@ -1177,4 +1176,14 @@ public class InspectPatientServiceImpl implements InspectPatientService {
// 执行更新 // 执行更新
patientMapper.update(null, updateWrapper); patientMapper.update(null, updateWrapper);
} }
@Override
public void updatedoctorid(InspectPatientSaveReqVO updateReqVO)
{
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPatientDO::getMedicalSn, updateReqVO.getMedicalSn())
.set(InspectPatientDO::getChiefinspectorid, updateReqVO.getChiefinspectorid())
.set(InspectPatientDO::getChiefinspector, updateReqVO.getChiefinspector());
patientMapper.update(null, updateWrapper);
}
} }