核对处方确认方法下添加抛出异常以避免数据部分提交

This commit is contained in:
maqiao 2024-11-05 13:47:43 +08:00
parent 8f4faabf3f
commit 7988187bcc
1 changed files with 1 additions and 0 deletions

View File

@ -669,6 +669,7 @@ namespace DM_Weight.ViewModels
}; };
_eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg); _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
logger.Info($"所选处方对应药品批次效期无库存{empChannelStock}"); logger.Info($"所选处方对应药品批次效期无库存{empChannelStock}");
throw new Exception("事务回滚");
return false; return false;
} }
return true; return true;