select c.id, c.name, c.type, c.pipe_diameter, c.color,c.dept_id,c.child_count
from ard_tubes c
left join sys_dept d on d.dept_id = c.dept_id
left join sys_user u on u.user_id = c.user_id
insert into ard_tubes
id,name,type,pipe_diameter,color,child_count,user_id,dept_id,create_by,create_time,update_by,update_time,#{id},#{name},#{type},#{pipeDiameter},#{color},#{childCount},#{userId},#{deptId},#{createBy},#{createTime},#{updateBy},#{updateTime},
update ard_tubes
name = #{name},type = #{type},pipe_diameter = #{pipeDiameter},color = #{color},child_count = #{childCount},user_id = #{userId},dept_id = #{deptId},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},
where id = #{id}
delete
from ard_tubes
where id = #{id}
delete from ard_tubes where id in
#{id}