select a.id, a.project_id, a.contacts, a.reality_up_date, a.up_person, a.up_way, a.up_content, a.mark, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, b.project_name, b.project_stage, b.project_state from t_project_record a left join t_project_pool b ON a.project_id = b.id insert into t_project_record id, project_id, contacts, reality_up_date, up_person, up_way, up_content, mark, del_flag, create_by, create_time, update_by, update_time, #{id}, #{projectId}, #{contacts}, #{realityUpDate}, #{upPerson}, #{upWay}, #{upContent}, #{mark}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update t_project_record project_id = #{projectId}, contacts = #{contacts}, reality_up_date = #{realityUpDate}, up_person = #{upPerson}, up_way = #{upWay}, up_content = #{upContent}, mark = #{mark}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from t_project_record where id = #{id} delete from t_project_record where id in #{id} update t_project_record set del_flag = 1 where id in #{id}