select id, node_id, project_id, start_date, plan_start_date, end_date, plan_end_date, status, remark, files, is_del, create_by, create_time, update_by, update_time from sur_project_build_node_data
SELECT * FROM (
SELECT a.id, node_id, project_id,p.projectName,start_date, end_date,plan_start_date,plan_end_date, STATUS, a.remark, files, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time ,node_text,node_lvl
FROM sur_project_build_node_data a,base_build_node b,sur_project p WHERE a.node_id=b.id AND a.project_id=p.id
) sur_project_build_node_data
insert into sur_project_build_node_data
node_id,
project_id,
start_date,
plan_start_date,
end_date,
plan_end_date,
status,
remark,
files,
is_del,
create_by,
create_time,
update_by,
update_time,
#{nodeId},
#{projectId},
#{startDate},
#{planStartDate},
#{endDate},
#{planEndDate},
#{status},
#{remark},
#{files},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update sur_project_build_node_data
node_id = #{nodeId},
project_id = #{projectId},
start_date = #{startDate},
plan_start_date = #{planStartDate},
end_date = #{endDate},
plan_end_date = #{planEndDate},
status = #{status},
remark = #{remark},
files = #{files},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from sur_project_build_node_data where id = #{id}
delete from sur_project_build_node_data where id in
#{id}