select psu.id, psu.com_id, psu.project_id, pi.project_name, psu.sub_dept_id, psu.sub_dept_type, psu.sub_dept_name, psu.user_id, psu.user_type, psu.user_name, psu.craft_type, psu.craft_post, psu.edu_status, psu.edu_file_path, psu.edu_sign_path, psu.edu_date, psu.approve_status, psu.use_status, psu.sub_step, psu.illness_status, psu.sup_illness_status, psu.is_del, psu.create_by, psu.create_time, psu.update_by, psu.update_time, psu.remark from pro_project_info_subdepts_users psu left join pro_project_info pi on pi.id = psu.project_id left join sys_dept sd on sd.dept_id = pi.com_id insert into pro_project_info_subdepts_users com_id, project_id, sub_dept_id, sub_dept_name, user_id, user_name, craft_type, craft_post, edu_status, edu_file_path, edu_sign_path, edu_date, approve_status, use_status, sub_step, illness_status, sup_illness_status, is_del, create_by, create_time, update_by, update_time, remark, #{comId}, #{projectId}, #{subDeptId}, #{subDeptName}, #{userId}, #{userName}, #{craftType}, #{craftPost}, #{eduStatus}, #{eduFilePath}, #{eduSignPath}, #{eduDate}, #{approveStatus}, #{useStatus}, #{subStep}, #{illnessStatus}, #{supIllnessStatus}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update pro_project_info_subdepts_users com_id = #{comId}, project_id = #{projectId}, sub_dept_id = #{subDeptId}, sub_dept_name = #{subDeptName}, user_id = #{userId}, user_name = #{userName}, craft_type = #{craftType}, craft_post = #{craftPost}, edu_status = #{eduStatus}, edu_file_path = #{eduFilePath}, edu_sign_path = #{eduSignPath}, edu_date = #{eduDate}, approve_status = #{approveStatus}, use_status = #{useStatus}, sub_step = #{subStep}, illness_status = #{illnessStatus}, sup_illness_status = #{supIllnessStatus}, 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_subdepts_users where id = #{id} delete from pro_project_info_subdepts_users where id in #{id}