I made my own mushroom and Chili bean paste. How to apply for a patent, what department to go to, and what relevant procedures are needed?

Your formula and manufacturing method are invention patents, and the agency fee is relatively high. Please ask the local intellectual property office (or science and technology bureau) for the local funding policy first. You can use the intermediary they introduced, which is generally lower than other fees. If you are not in a hurry, you can write down the formula and find some knowledgeable friends to help you declare.