select id,
               sub_id,
               guid,
               orgid,
               default_his_ward_id,
               default_ward_name,
               his_staff_id,
               default_ward_id,
               personnel_stamp_num,
               id_card,
               staff_photo,
               effective_start,
               personnel_profile,
               staff_nation,
               staff_num,
               effective_end,
               insurance_code,
               search_code3,
               search_code2,
               search_code1,
               hospital_id,
               pre_updater,
               staff_name,
               default_dept_name,
               state,
               famous_doctor_rank,
               first_work_date,
               pre_updater_num,
               staff_status,
               mgr_posi_code,
               default_his_deptId,
               update_time,
               staff_sex,
               staff_type,
               user_id,
               pre_update_time,
               famous_doctor_rank_name,
               personnel_birthday,
               staff_title,
               sign_pic,
               open_id,
               create_time,
               telphone,
               employ_post_code,
               default_dept_id,
               depts,
               staff_id,
               staff_level,
               self_collect_dialectical_fees,
               sub_ids
        from sys_user_import
    
    
    
    
        insert into sys_user_import
        
            sub_id,
            
            his_staff_id,
            
            personnel_stamp_num,
            
            id_card,
            
            staff_photo,
            
            effective_start,
            
            personnel_profile,
            
            staff_nation,
            
            staff_num,
            
            effective_end,
            
            insurance_code,
            
            search_code3,
            
            search_code2,
            
            search_code1,
            
            hospital_id,
            
            pre_updater,
            
            staff_name,
            
            default_dept_name,
            
            state,
            
            famous_doctor_rank,
            
            first_work_date,
            
            pre_updater_num,
            
            staff_status,
            
            mgr_posi_code,
            
            default_his_dept_id,
            
            update_time,
            
            staff_sex,
            
            staff_type,
            
            user_id,
            
            pre_update_time,
            
            famous_doctor_rank_name,
            
            personnel_birthday,
            
            staff_title,
            
            create_time,
            
            telphone,
            
            employ_post_code,
            
            default_dept_id,
            
            depts,
            
            staff_id,
            
            staff_level,
            
            self_collect_dialectical_fees,
            
            sub_ids,
            
            default_ward_id,
            
            
                default_his_ward_id,
            
            
                default_ward_name,
            
            
                open_id,
            
            
                guid,
                        
            orgid,
            
        
        
            #{subId},
            
            #{hisStaffId},
            
            #{personnelStampNum},
            
            #{idCard},
            
            #{staffPhoto},
            
            #{effectiveStart},
            
            #{personnelProfile},
            
            #{staffNation},
            
            #{staffNum},
            
            #{effectiveEnd},
            
            #{insuranceCode},
            
            #{searchCode3},
            
            #{searchCode2},
            
            #{searchCode1},
            
            #{hospitalId},
            
            #{preUpdater},
            
            #{staffName},
            
            #{defaultDeptName},
            
            #{state},
            
            #{famousDoctorRank},
            
            #{firstWorkDate},
            
            #{preUpdaterNum},
            
            #{staffStatus},
            
            #{mgrPosiCode},
            
            #{defaultHisDeptId},
            
            #{updateTime},
            
            #{staffSex},
            
            #{staffType},
            
            #{userId},
            
            #{preUpdateTime},
            
            #{famousDoctorRankName},
            
            #{personnelBirthday},
            
            #{staffTitle},
            
            #{createTime},
            
            #{telphone},
            
            #{employPostCode},
            
            #{defaultDeptId},
            
            #{depts},
            
            #{staffId},
            
            #{staffLevel},
            
            #{selfCollectDialecticalFees},
            
            #{subIds},
            
            #{defaultWardId},
            
            
                #{defaultHisWardId},
            
            
                #{defaultWardName},
            
            
                #{openId},
            
            
                #{guid},
                
                #{orgid},
            
        
    
    
        update sys_user_import
        
            sub_id =
                #{subId},
            
            his_staff_id =
                #{hisStaffId},
            
            personnel_stamp_num =
                #{personnelStampNum},
            
            id_card =
                #{idCard},
            
            staff_photo =
                #{staffPhoto},
            
            effective_start =
                #{effectiveStart},
            
            personnel_profile =
                #{personnelProfile},
            
            staff_nation =
                #{staffNation},
            
            staff_num =
                #{staffNum},
            
            effective_end =
                #{effectiveEnd},
            
            insurance_code =
                #{insuranceCode},
            
            search_code3 =
                #{searchCode3},
            
            search_code2 =
                #{searchCode2},
            
            search_code1 =
                #{searchCode1},
            
            hospital_id =
                #{hospitalId},
            
            pre_updater =
                #{preUpdater},
            
            staff_name =
                #{staffName},
            
            default_dept_name =
                #{defaultDeptName},
            
            state =
                #{state},
            
            famous_doctor_rank =
                #{famousDoctorRank},
            
            first_work_date =
                #{firstWorkDate},
            
            pre_updater_num =
                #{preUpdaterNum},
            
            staff_status =
                #{staffStatus},
            
            mgr_posi_code =
                #{mgrPosiCode},
            
            default_his_dept_id =
                #{defaultHisDeptId},
            
            update_time =
                #{updateTime},
            
            staff_sex =
                #{staffSex},
            
            staff_type =
                #{staffType},
            
            user_id =
                #{userId},
            
            pre_update_time =
                #{preUpdateTime},
            
            famous_doctor_rank_name =
                #{famousDoctorRankName},
            
            personnel_birthday =
                #{personnelBirthday},
            
            staff_title =
                #{staffTitle},
            
            sign_pic =
                #{signPic},
            
            create_time =
                #{createTime},
            
            telphone =
                #{telphone},
            
            employ_post_code =
                #{employPostCode},
            
            default_dept_id =
                #{defaultDeptId},
            
            depts =
                #{depts},
            
            staff_id =
                #{staffId},
            
            staff_level =
                #{staffLevel},
            
            self_collect_dialectical_fees =
                #{selfCollectDialecticalFees},
            
            sub_ids =
                #{subIds},
            
            
                default_ward_id = #{defaultWardId},
            
            
                default_his_ward_id = #{defaultHisWardId},
            
            
                default_ward_name = #{defaultWardName},
            
            
                guid = #{guid},
                  
            orgid = #{orgid},
            
        
        where id = #{id}
    
    
        update sys_user_import
        
            del_flag =1
        
        where id = #{id}
    
    
        update sys_user_import
        
            del_flag =1
        
        where id in
        
            #{id}