Oracle视图时间戳转为Date
CREATE OR REPLACE VIEW PDAORDER AS SELECT po.id id, po.order_no AS order_no, po.money AS money, (SELECT TO_CHAR(t.starttime / (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01', 'YYYY-MM-DD'), 'YYYY-MM-DD') as starttime FROM Pda_Order t WHERE t.id = po.id) AS starttime, (SELECT TO_CHAR(t.endtime / (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01', 'YYYY-MM-DD'), 'YYYY-MM-DD') as endtime FROM Pda_Order t WHERE t.id = po.id) AS endtime, po.userno as userno, po.bowei as bowei, po.carno as carno, po.status as status, po.img as img FROM Pda_Order po