select id from engine_project a where a.project_name = #{projectName}
select wip from engine_machine a inner join engine_project b where b.id = a.project_id
select b.wip,b.create_date,b.type,b.id,b.acc,a.machine_name,a.machine_no,a.brand from engine_machine a inner join engine_location b where a.wip = b.wip and DATE_FORMAT(b.create_date,'%Y-%m-%d') > '2016-08-14'
select a.id,b.wip,c.create_date,c.type,c.id,c.acc,b.machine_name,b.machine_no,b.brand
from engine_project a
inner join engine_machine b on a.id = b.project_id
inner join engine_location c on c.wip = b.wip
where a.project_name = @projectName and DATE_FORMAT(c.create_date,'%Y-%m-%d') > '2016-08-14'
#8
未测试
select a.id,b.wip,c.create_date,c.type,c.id,c.acc,b.machine_name,b.machine_no,b.brand
from engine_project a
inner join engine_machine b on a.id = b.project_id
inner join engine_location c on c.wip = b.wip
where a.project_name = @projectName and DATE_FORMAT(c.create_date,'%Y-%m-%d') > '2016-08-14'
select a.id,b.wip,c.create_date,c.type,c.id,c.acc,b.machine_name,b.machine_no,b.brand
from engine_project a
inner join engine_machine b on a.id = b.project_id
inner join engine_location c on c.wip = b.wip
where a.project_name = @projectName and DATE_FORMAT(c.create_date,'%Y-%m-%d') > '2016-08-14'
#8
未测试
select a.id,b.wip,c.create_date,c.type,c.id,c.acc,b.machine_name,b.machine_no,b.brand
from engine_project a
inner join engine_machine b on a.id = b.project_id
inner join engine_location c on c.wip = b.wip
where a.project_name = @projectName and DATE_FORMAT(c.create_date,'%Y-%m-%d') > '2016-08-14'