select pp.id, pp.comid, pp.project_id, pp.task_id, pp.task_unique_id, pp.parent_id, pp.task_type,
pp.task_outline_level, pp.task_name, pp.task_duation, pp.start_date, pp.finish_date,
pp.predecessors, pp.plan_start_date, pp.plan_finish_date, pp.bim_id, pp.operator, pp.operator_id,
pp.group_id, pp.group_name, pp.schedule_node, pp.is_del, pp.create_by, pp.create_time, pp.update_by, pp.update_time, pp.remark,
dp.`dept_name` comp_name,pi.`project_name`
from pro_plan pp
LEFT JOIN sys_dept dp ON pp.`comid`=dp.`dept_id`
LEFT JOIN pro_project_info pi ON pp.`project_id`=pi.`id`
insert into pro_plan
comid,
project_id,
task_id,
task_unique_id,
parent_id,
task_type,
task_outline_level,
task_name,
task_duation,
start_date,
finish_date,
predecessors,
plan_start_date,
plan_finish_date,
bim_id,
operator,
operator_id,
group_id,
group_name,
schedule_node,
is_del,
create_by,
create_time,
update_by,
update_time,
remark,
#{comid},
#{projectId},
#{taskId},
#{taskUniqueId},
#{parentId},
#{taskType},
#{taskOutlineLevel},
#{taskName},
#{taskDuation},
#{startDate},
#{finishDate},
#{predecessors},
#{planStartDate},
#{planFinishDate},
#{bimId},
#{operator},
#{operatorId},
#{groupId},
#{groupName},
#{scheduleNode},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update pro_plan
comid = #{comid},
project_id = #{projectId},
task_id = #{taskId},
task_unique_id = #{taskUniqueId},
parent_id = #{parentId},
task_type = #{taskType},
task_outline_level = #{taskOutlineLevel},
task_name = #{taskName},
task_duation = #{taskDuation},
start_date = #{startDate},
finish_date = #{finishDate},
predecessors = #{predecessors},
plan_start_date = #{planStartDate},
plan_finish_date = #{planFinishDate},
bim_id = #{bimId},
operator = #{operator},
operator_id = #{operatorId},
group_id = #{groupId},
group_name = #{groupName},
schedule_node = #{scheduleNode},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
update pro_plan set start_date = #{startDate}
,schedule_node = #{scheduleNode}
where id = #{id}
update pro_plan set finish_date = #{finishDate}
,schedule_node = #{scheduleNode}
where id = #{id}
delete from pro_plan where id = #{id}
delete from pro_plan where id in
#{id}