Explorar el Código

update 删除重复报警和提醒

A17404李放 hace 3 años
padre
commit
dcfd2a161f

+ 2 - 3
nb-system/src/main/java/com/nb/bus/service/LocalBusPatientService.java

@@ -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());