select project_id, team_id, user_id, post_id, create_by, update_by, update_time, create_time from pms_project_team insert into pms_project_team(project_id, user_id, post_id, create_by, update_by, update_time, create_time) values (#{projectId}, #{userId}, #{postId}, #{createBy}, #{updateBy}, #{updateTime}, #{createTime}) insert into pms_project_team(project_id, user_id, post_id, create_by, update_by, update_time, create_time) values (#{entity.projectId}, #{entity.userId}, #{entity.postId}, #{entity.createBy}, #{entity.updateBy}, #{entity.updateTime}, #{entity.createTime}) insert into pms_project_team(project_id, user_id, post_id, create_by, update_by, update_time, create_time) values (#{entity.projectId}, #{entity.userId}, #{entity.postId}, #{entity.createBy}, #{entity.updateBy}, #{entity.updateTime}, #{entity.createTime}) on duplicate key update project_id = values(project_id), user_id = values(user_id), post_id = values(post_id), update_by = values(update_by), update_time = values(update_time), update pms_project_team project_id = #{projectId}, user_id = #{userId}, post_id = #{postId}, create_by = #{createBy}, update_by = #{updateBy}, update_time = #{updateTime}, create_time = #{createTime}, where team_id = #{teamId} delete from pms_project_team where team_id = #{teamId}