select * from manu_routecard t
left join manu_routecardlist mr on t.routecard_id = mr.routecard_id
left join manu_taskinfo mt on t.task_id = mt.task_id
--where mt.part_no = '06243'
where
mt.task_state = '5' and
mr.submittime is null
由于开始一直使用 submittime = null 导致查不出来任何数据,后来想起了null不和任何值相等。(再犯这种错误,就去屎好了~)