when querying SQL, you need to process the data to find the difference. Some units are hours, times, and seconds. For example, when an hour subtracts seconds, the second should be converted to an hour with a difference less than a certain value to send mail. If the number of times is less than a certain value, there is no need to convert
a bit like (H-M/3600), and the number of times is directly reduced