$goodlist = M('document')->query('select a.*,b.* from romaego_qianggou as a,romaego_document_product as b where a.qianggou_id=b.id and b.ispanicbuying=1 and strtotime(a.qianggou_starttime)<{$date_now} and {$date_now}<strtotime(a.qianggou_endtime) limit 0,12');