1 日期查询:to_Date ws.begintime>=to_Date('"+begintime+" 00:00:00','yyyy-mm-dd hh24:mi:ss') 2 group by(..)要将select的field都包含进去