-- ORDER_TIME datetime NOT NULL(字段类型)
SELECT
so.`ID`,so.`ORDER_TIME`,NOW(),CONCAT(ROUND(TIMESTAMPDIFF(MINUTE,so.`ORDER_TIME`,NOW())/60,1),'') AS hourLater
FROM se_seal_order so
WHERE so.id=#{orderId};
-- ORDER_TIME datetime NOT NULL(字段类型)
SELECT
so.`ID`,so.`ORDER_TIME`,NOW(),CONCAT(ROUND(TIMESTAMPDIFF(MINUTE,so.`ORDER_TIME`,NOW())/60,1),'') AS hourLater
FROM se_seal_order so
WHERE so.id=#{orderId};