NOW()
if you wannt to comapre somthing, try to use this;
INTERVAL 1 HOUR
if you wannt to comapre somthing, try to use this;
->andWhere('o.actionTime > :date')
->setParameters(array('status' =>$status, 'userId'=>$userId,'date'=>new \DateTime('-12 hour')));
评论
发表评论