select a.* FROM
(
SELECT
*,DATE_ADD(create_date, INTERVAL 10 MINUTE)<SYSDATE() isDelay
FROM
`car_teams_ord`
) a where IF(iss_price=1||iss_price=0,1=1,a.isDelay=1)
思路:1、DATE_ADD(create_date, INTERVAL 10 MINUTE)>SYSDATE() isDelay 创建时间加上10分钟大于当前系统时间
2、用子查询筛选创建时间+10分钟大于当前时间的(这里where a.isDelay=1 0:否 1:是)
3、再利用where IF(iss_price=1,a.isDelay=1,1=1)筛选