id, parent_id, install_plan_id, `type`, `name`, `status`, create_by, create_date,
update_by, update_date
insert into sc_install_plan_data
parent_id,
install_plan_id,
`type`,
`name`,
`status`,
create_by,
create_date,
update_by,
update_date,
#{parentId},
#{installPlanId},
#{type},
#{name},
#{status},
#{createBy},
#{createDate},
#{updateBy},
#{updateDate},
update sc_install_plan_data
parent_id = #{parentId},
install_plan_id = #{installPlanId},
`type` = #{type},
`name` = #{name},
`status` = #{status},
create_by = #{createBy},
create_date = #{createDate},
update_by = #{updateBy},
update_date = #{updateDate},
where id = #{id}
insert into sc_install_plan_data
(id, parent_id, install_plan_id, `type`, `name`, `status`, create_by, create_date, update_by,
update_date)
values
(#{item.id}, #{item.parentId}, #{item.installPlanId}, #{item.type}, #{item.name}, #{item.status},
#{item.createBy}, #{item.createDate}, #{item.updateBy}, #{item.updateDate})
update sc_install_plan_data set status = 0,update_date=NOW() where status = 1 and install_plan_id = #{planId}