If your notes have disappeared after a recent macOS update, you should be able to recover them from iCloud:
Open System Preferences.
Click iCloud and uncheck the box next to Notes.
Log into iCloud.com with your Apple ID and password.
Select Notes and save them to your computer.
Alternative, you can restore your Mac to an earlier state using Time Machine.