你把add_time 转换成时间戳记就行了

解决方案 »

  1.   

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT o.rec_id,o.goods_name,h.user_name FROM shaeso_order_goods o ,shaeso_orde' at line 1 
    这样的错误
      

  2.   


    SELECT o.rec_id,o.goods_name,h.user_name FROM shaeso_order_goods o ,shaeso_order_goods_state s,shaeso_ghs h,shaeso_goods g WHERE o.rec_id=s.rec_id AND o.order_goods_state>=3 AND g.goods_id=o.goods_id AND g.ghs_id=h.id AND
    UNIX_TIMESTAMP(s.add_time) + 1200
    < UNIX_TIMESTAMP(NOW())