select pd.id, pd.project_id, pi.project_name, pd.dept_type, pd.dept_name, pd.dept_code, pd.is_del, pd.create_by, pd.create_time, pd.update_by, pd.update_time, pd.remark from pro_project_info_depts pd
left join pro_project_info pi on pi.id = pd.project_id
left join sys_dept sd on sd.dept_id = pi.dept_id
insert into pro_project_info_depts
project_id,dept_type,dept_name,dept_code,is_del,create_by,create_time,update_by,update_time,remark,#{projectId},#{deptType},#{deptName},#{deptCode},#{isDel},#{createBy},#{createTime},#{updateBy},#{updateTime},#{remark},
update pro_project_info_depts
project_id = #{projectId},dept_type = #{deptType},dept_name = #{deptName},dept_code = #{deptCode},is_del = #{isDel},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},remark = #{remark},
where id = #{id}
delete from pro_project_info_depts where id = #{id}
delete from pro_project_info_depts where id in
#{id}