Compare commits
2 Commits
19be5ab20d
...
593d3f4698
Author | SHA1 | Date | |
---|---|---|---|
593d3f4698 | |||
25052e565f |
@ -2054,4 +2054,12 @@ public class InspectPatientController {
|
||||
patientService.updateChiefinspector(medicalSn, chiefinspectorid, chiefinspector);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/updatePatientStatus")
|
||||
@Operation(summary = "根据体检编号更新患者状态")
|
||||
public CommonResult<Boolean> updatePatientStatus(@RequestParam("medicalSn") String medicalSn,
|
||||
@RequestParam("status") Integer status) {
|
||||
patientService.updatePatientStatus(medicalSn, status);
|
||||
return success(true);
|
||||
}
|
||||
}
|
@ -199,4 +199,11 @@ public interface InspectPatientService {
|
||||
* @param chiefinspector 总检医生姓名
|
||||
*/
|
||||
void updateChiefinspector(String medicalSn, String chiefinspectorid, String chiefinspector);
|
||||
|
||||
/**
|
||||
* 根据体检编号更新患者状态
|
||||
* @param medicalSn 体检编号
|
||||
* @param status 状态
|
||||
*/
|
||||
void updatePatientStatus(String medicalSn, Integer status);
|
||||
}
|
@ -1197,4 +1197,12 @@ public class InspectPatientServiceImpl implements InspectPatientService {
|
||||
.set(InspectPatientDO::getChiefinspector, updateReqVO.getChiefinspector());
|
||||
patientMapper.update(null, updateWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updatePatientStatus(String medicalSn, Integer status) {
|
||||
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(InspectPatientDO::getMedicalSn, medicalSn)
|
||||
.set(InspectPatientDO::getStatus, status);
|
||||
patientMapper.update(null, updateWrapper);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user