1 @staticmethod 类的静态方法 2 @classmethod 类方法 3 TIMESTAMPDIFF 可以在SQL语句中计算当前时间差,例如TIMESTAMPDIFF(DAY, Date(create_time), Date(now())) <= 7