= @{updateTime} and md_org_account_hospital.state_code = 'Open' and md_org_account_hospital.term_code <> 'terminate' and category_code = 'Dealer' and is_content_dealer = 'T' and is_content_distributor = 'T' and not exists ( select 1 from md_channel_structure where md_channel_structure.authorize_id = md_org_account_hospital.id ) ]]> = @{updateTime} and md_org_account_hospital.state_code = 'Open' and md_org_account_hospital.term_code <> 'terminate' and category_code = 'Dealer' and is_content_dealer = 'T' and is_content_distributor is null and not exists ( select 1 from md_channel_structure where md_channel_structure.authorize_id = md_org_account_hospital.id ) ]]> = @{updateTime} and md_org_account_hospital.state_code = 'Open' and md_org_account_hospital.term_code <> 'terminate' and category_code = 'Dealer' and not exists ( select 1 from md_channel_structure where md_channel_structure.authorize_id = md_org_account_hospital.id ) ]]> = @{updateTime} and md_org_account_hospital.state_code = 'Open' and md_org_account_hospital.term_code <> 'terminate' and category_code = 'Distributor' and not exists ( select 1 from md_channel_structure where md_channel_structure.authorize_id = md_org_account_hospital.id ) ]]> = @{updateTime} and md_org_account_hospital.state_code = 'Closed' and md_org_account_hospital.id is not null ]]>