<choose> <when test=""> //... </when> <otherwise> //... </otherwise> </choose>
SEC_TO_TIME #秒转时
CASE WHEN ... THEN 1 ELSE 0 END