|
|
@@ -378,10 +378,9 @@ public class LocalBusPatientService extends BaseService<BusPatientMapper, BusPat
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void shift(DeviceShiftConfig shiftConfig) {
|
|
|
- String formatCode = shiftConfig.getPatientCode();
|
|
|
- BusPatientEntity patient = patientService.getOne(new QueryWrapper<BusPatientEntity>().lambda().eq(BusPatientEntity::getCode, formatCode));
|
|
|
+ BusPatientEntity patient = patientService.getById(shiftConfig.getPatientId());
|
|
|
if (patient == null) {
|
|
|
- throw new CustomException(String.format("住院号【%s】不存在,请刷新后重试", shiftConfig.getPatientCode()));
|
|
|
+ throw new CustomException("所选住院号有误,请刷新后重试");
|
|
|
}
|
|
|
shiftConfig.setPatientId(patient.getId());
|
|
|
PatientOperator patientOperator = patientRegistry.getOperator(shiftConfig.getTenantId(), shiftConfig.getPatientCode());
|