${if(REGEXP_REPLACE("'"+rq+"', '', '')='周'","SELECT * FROM PC_S_TPJSYSCRSJ WHERE RQ >=(SELECT MIN(rq) FROM PC_SYS_DATE_POSTMARK WHERE zrq='"+rq+"'AND RQ <='+(SELECT MAX(rq) FROM PC_SYS_DATE_POSTMARK WHERE zrq='"+rq+"' ORDER BY rq", if(REGEXP_REPLACE("'"+rq+"', '', '')='季'", "SELECT * FROM PC_S_TPJSYSCRSJ WHERE RQ >=(SELECT MIN(rq) FROM PC_SYS_DATE_POSTMARK WHERE jrq='"+rq+"' AND RQ <='(SELECT MAX(rq) FROM PC_SYS_DATE_POSTMARK WHERE jrq='"+rq+"' ORDER BY rq", "SELECT * FROM PC_S_TPJSYSCRSJ WHERE RQ =TO_DATE('"+rq+"','yyyy-MM-dd')"))))}