How to define the methods that are often used in business classes

in the process of developing a module, some code appears repeatedly in multiple business classes. I want to strip it out and write it as a separate method, but I don"t know where to write it, because the method is also related to business, so it feels strange to be written in util, directly under a calling class, and somewhat inappropriate for other calling classes. I don"t know how to write a reasonable point

.

there is nothing wrong with putting it in util. Just call it AServiceUtil,.


MVSC = > has one more layer of Service than the traditional MVC , which is mainly used to put business logic.

M dealing with databases

V dealing with views

C controls receiving parameters and outputs data

S is responsible for the business logic.

I write php, I don't know how java is implemented

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2ae61-4d0ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2ae61-4d0ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?