select ID,
               OrganizationName,
               OrganizationID,
               LogoUrl,
               RegisterTime,
               RegisterAddress,
               OfficePlace,
               LegalPerson,
               ContactPerson,
               ContactNumber,
               Introduction,
               OrganizationType,
               HospitalNature,
               RegionalLevel,
               MedicalCode,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time,
               Province,
               ProvinceName,
               City,
               CityName,
               Town,
               TownName,
               Community,
               CommunityName,
               CountyCode,
               CountyName,
               bankname,
               bankaccount,
               pid,
               guid,
               orgid
        from base_organization
    
    
    
    
        insert into base_organization
        
            OrganizationName,
            
            OrganizationID,
            
            LogoUrl,
            
            RegisterTime,
            
            RegisterAddress,
            
            OfficePlace,
            
            LegalPerson,
            
            ContactPerson,
            
            ContactNumber,
            
            Introduction,
            
            OrganizationType,
            
            HospitalNature,
            
            RegionalLevel,
            
            MedicalCode,
            
            del_flag,
            
            create_by,
            
            create_time,
            
            update_by,
            
            update_time,
            
            Province,
            
            ProvinceName,
            
            City,
            
            CityName,
            
            Town,
            
            TownName,
            
            Community,
            
            CommunityName,
            
            CountyCode,
            
            CountyName,
            
            bankname,
            
            bankaccount,
            
            pid,
            
            guid,
            
            orgid,
            
        
        
            #{OrganizationName},
            
            #{OrganizationID},
            
            #{LogoUrl},
            
            #{RegisterTime},
            
            #{RegisterAddress},
            
            #{OfficePlace},
            
            #{LegalPerson},
            
            #{ContactPerson},
            
            #{ContactNumber},
            
            #{Introduction},
            
            #{OrganizationType},
            
            #{HospitalNature},
            
            #{RegionalLevel},
            
            #{MedicalCode},
            
            #{delFlag},
            
            #{createBy},
            
            #{createTime},
            
            #{updateBy},
            
            #{updateTime},
            
            #{Province},
            
            #{ProvinceName},
            
            #{City},
            
            #{CityName},
            
            #{Town},
            
            #{TownName},
            
            #{Community},
            
            #{CommunityName},
            
            #{CountyCode},
            
            #{CountyName},
            
            #{bankname},
            
            #{bankaccount},
            
            #{pid},
            
            #{guid},
            
            #{orgid},
            
        
    
    
        update base_organization
        
            OrganizationName =
                #{OrganizationName},
            
            OrganizationID =
                #{OrganizationID},
            
            LogoUrl =
                #{LogoUrl},
            
            RegisterTime =
                #{RegisterTime},
            
            RegisterAddress =
                #{RegisterAddress},
            
            OfficePlace =
                #{OfficePlace},
            
            LegalPerson =
                #{LegalPerson},
            
            ContactPerson =
                #{ContactPerson},
            
            ContactNumber =
                #{ContactNumber},
            
            Introduction =
                #{Introduction},
            
            OrganizationType =
                #{OrganizationType},
            
            HospitalNature =
                #{HospitalNature},
            
            RegionalLevel =
                #{RegionalLevel},
            
            MedicalCode =
                #{MedicalCode},
            
            del_flag =
                #{delFlag},
            
            create_by =
                #{createBy},
            
            create_time =
                #{createTime},
            
            update_by =
                #{updateBy},
            
            update_time =
                #{updateTime},
            
            Province =
                #{Province},
            
            ProvinceName =
                #{ProvinceName},
            
            City =
                #{City},
            
            CityName =
                #{CityName},
            
            Town =
                #{Town},
            
            TownName =
                #{TownName},
            
            Community =
                #{Community},
            
            CommunityName =
                #{CommunityName},
            
            CountyCode =
                #{CountyCode},
            
            CountyName =
                #{CountyName},
            
            bankname =
                #{bankname},
            
            bankaccount =
                #{bankaccount},
            
            pid =
                #{pid},
            
            guid =
                #{guid},
            
            orgid =
                #{orgid},
            
        
        where ID = #{ID}
    
    
        update base_organization
        
            del_flag =1
        
        where ID = #{ID}
    
    
        update base_organization
        
            del_flag =1
        
        where ID in
        
            #{ID}