select department0_.id as id33_2_, department0_.adconstruct_enabled as adconstr2_33_2_, department0_.address as address33_2_, department0_.aggregator_disabled as aggregator4_33_2_, department0_.bank_acc as bank5_33_2_, department0_.bic as bic33_2_, department0_.business_hours as business7_33_2_, department0_.coordinates as coordina8_33_2_, department0_.do_dep as do9_33_2_, department0_.is_ebf as is10_33_2_, department0_.equeue_enabled as equeue11_33_2_, department0_.ext_spu_id as ext12_33_2_, department0_.frgu_code as frgu13_33_2_, department0_.gisgmp_code as gisgmp14_33_2_, department0_.gisgmp_main_dep_id as gisgmp23_33_2_, department0_.gisgmp_role as gisgmp15_33_2_, department0_.inn as inn33_2_, department0_.kpp as kpp33_2_, department0_.name as name33_2_, department0_.ogrn as ogrn33_2_, department0_.oktmo as oktmo33_2_, department0_.parent_dep_id as parent24_33_2_, department0_.phone as phone33_2_, department0_.share_conv as share22_33_2_, department1_.id as id33_0_, department1_.adconstruct_enabled as adconstr2_33_0_, department1_.address as address33_0_, department1_.aggregator_disabled as aggregator4_33_0_, department1_.bank_acc as bank5_33_0_, department1_.bic as bic33_0_, department1_.business_hours as business7_33_0_, department1_.coordinates as coordina8_33_0_, department1_.do_dep as do9_33_0_, department1_.is_ebf as is10_33_0_, department1_.equeue_enabled as equeue11_33_0_, department1_.ext_spu_id as ext12_33_0_, department1_.frgu_code as frgu13_33_0_, department1_.gisgmp_code as gisgmp14_33_0_, department1_.gisgmp_main_dep_id as gisgmp23_33_0_, department1_.gisgmp_role as gisgmp15_33_0_, department1_.inn as inn33_0_, department1_.kpp as kpp33_0_, department1_.name as name33_0_, department1_.ogrn as ogrn33_0_, department1_.oktmo as oktmo33_0_, department1_.parent_dep_id as parent24_33_0_, department1_.phone as phone33_0_, department1_.share_conv as share22_33_0_, department2_.id as id33_1_, department2_.adconstruct_enabled as adconstr2_33_1_, department2_.address as address33_1_, department2_.aggregator_disabled as aggregator4_33_1_, department2_.bank_acc as bank5_33_1_, department2_.bic as bic33_1_, department2_.business_hours as business7_33_1_, department2_.coordinates as coordina8_33_1_, department2_.do_dep as do9_33_1_, department2_.is_ebf as is10_33_1_, department2_.equeue_enabled as equeue11_33_1_, department2_.ext_spu_id as ext12_33_1_, department2_.frgu_code as frgu13_33_1_, department2_.gisgmp_code as gisgmp14_33_1_, department2_.gisgmp_main_dep_id as gisgmp23_33_1_, department2_.gisgmp_role as gisgmp15_33_1_, department2_.inn as inn33_1_, department2_.kpp as kpp33_1_, department2_.name as name33_1_, department2_.ogrn as ogrn33_1_, department2_.oktmo as oktmo33_1_, department2_.parent_dep_id as parent24_33_1_, department2_.phone as phone33_1_, department2_.share_conv as share22_33_1_ from adp_department department0_ left outer join adp_department department1_ on department0_.gisgmp_main_dep_id=department1_.id left outer join adp_department department2_ on department1_.parent_dep_id=department2_.id where department0_.id=? | 22 | 6,717,552 | 0 | 9 | 1 | 0.00 |
select this_.id as y0_ from adp_conversation_in this_ where this_.service in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.status=? and this_.response_timestamp is not null and this_.response_content is not null and this_.author is not null | 18 | 3,153,381 | 0 | 342 | 1 | 0.00 |
select this_.id as y0_ from adp_conversation_out this_ where this_.endpoint in (?, ?, ?, ?, ?, ?) and this_.status=? and (this_.response_timestamp is null or this_.response_timestamp <= cast((case when this_.request_date >= ? then ? when this_.request_date >= ? then ? else ? end) as timestamp with time zone)) order by this_.request_date asc | 11 | 3,153,382 | 0 | 185 | 0 | 0.00 |
select this_.id as y0_ from adp_conversation_out this_ where this_.endpoint in (?, ?, ?, ?, ?, ?) and this_.status in (?, ?, ?) and CURRENT_TIMESTAMP - request_date < interval '30' day and (CURRENT_TIMESTAMP - request_date between interval '15' minute and interval '16' minute and CURRENT_TIMESTAMP - response_timestamp > interval '2' minute or CURRENT_TIMESTAMP - request_date between interval '60' minute and interval '61' minute and CURRENT_TIMESTAMP - response_timestamp > interval '2' minute) order by this_.response_timestamp asc | 7 | 3,153,382 | 0 | 1,637 | 1 | 0.00 |
select this_.id as y0_ from adp_equeue_appointment this_ where this_.status=? and this_.expires_at<=? | 5 | 3,153,382 | 0 | 726 | 0 | 0.00 |
select this_.id as y0_ from adp_conversation_in this_ where this_.service_code=? and (this_.status=? or this_.status=?) | 5 | 3,153,381 | 0 | 1,398 | 1 | 0.00 |
select this_.uip as y0_ from adp_payment this_ where this_.import_dst in (?, ?) and this_.status in (?, ?) | 4 | 3,153,381 | 0 | 28 | 0 | 0.00 |
select this_.uip as y0_ from adp_payment this_ where this_.import_dst in (?, ?) and this_.status=? | 4 | 3,153,381 | 0 | 1,709 | 1 | 0.00 |
select this_.id as y0_ from adp_conversation_out this_ where this_.service=? order by this_.request_date desc limit ? | 3 | 3,153,381 | 0 | 85 | 0 | 0.00 |
select incomingco0_.id as id4_2_, incomingco0_.author as author4_2_, incomingco0_.created_at as created2_4_2_, incomingco0_.description as descript3_4_2_, incomingco0_.labels as labels4_2_, incomingco0_.last_updated as last5_4_2_, incomingco0_.recipient_code as recipient6_4_2_, incomingco0_.recipient_name as recipient7_4_2_, incomingco0_.request_content as request8_4_2_, incomingco0_.request_date as request9_4_2_, incomingco0_.response_content as response10_4_2_, incomingco0_.response_timestamp as response11_4_2_, incomingco0_.sender_code as sender12_4_2_, incomingco0_.sender_name as sender13_4_2_, incomingco0_.service as service4_2_, incomingco0_.sign_org as sign15_4_2_, incomingco0_.sign_subj as sign16_4_2_, incomingco0_.status as status4_2_, incomingco0_.tp_number as tp18_4_2_, incomingco0_.trans_code as trans19_4_2_, incomingco0_.department as department4_2_, incomingco0_.done_by as done21_4_2_, incomingco0_.last_assigned as last22_4_2_, incomingco0_.oktmo as oktmo4_2_, incomingco0_.reg_date as reg24_4_2_, incomingco0_.reg_number as reg25_4_2_, incomingco0_.rpgu_created_at as rpgu26_4_2_, incomingco0_.service_code as service27_4_2_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_ from adp_conversation_in incomingco0_ left outer join adp_user user1_ on incomingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where incomingco0_.id=? | 2 | 90,741 | 4 | 9,201 | 70 | 0.00 |
insert into adp_conversation_in (author, created_at, description, labels, last_updated, recipient_code, recipient_name, request_content, request_date, response_content, response_timestamp, sender_code, sender_name, service, sign_org, sign_subj, status, tp_number, trans_code, department, done_by, last_assigned, oktmo, reg_date, reg_number, rpgu_created_at, service_code, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | 2 | 4,603 | 74 | 4,032 | 408 | 0.37 |
select incomingco0_.id as id26_2_, incomingco0_.author as author26_2_, incomingco0_.created_at as created2_26_2_, incomingco0_.description as descript3_26_2_, incomingco0_.labels as labels26_2_, incomingco0_.last_updated as last5_26_2_, incomingco0_.recipient_code as recipient6_26_2_, incomingco0_.recipient_name as recipient7_26_2_, incomingco0_.request_content as request8_26_2_, incomingco0_.request_date as request9_26_2_, incomingco0_.response_content as response10_26_2_, incomingco0_.response_timestamp as response11_26_2_, incomingco0_.sender_code as sender12_26_2_, incomingco0_.sender_name as sender13_26_2_, incomingco0_.service as service26_2_, incomingco0_.sign_org as sign15_26_2_, incomingco0_.sign_subj as sign16_26_2_, incomingco0_.status as status26_2_, incomingco0_.tp_number as tp18_26_2_, incomingco0_.trans_code as trans19_26_2_, incomingco0_.department as department26_2_, incomingco0_.done_by as done21_26_2_, incomingco0_.last_assigned as last22_26_2_, incomingco0_.oktmo as oktmo26_2_, incomingco0_.reg_date as reg24_26_2_, incomingco0_.reg_number as reg25_26_2_, incomingco0_.rpgu_created_at as rpgu26_26_2_, incomingco0_.service_code as service27_26_2_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_ from adp_conversation_in incomingco0_ left outer join adp_user user1_ on incomingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where incomingco0_.id=? | 1 | 97,844 | 2 | 158 | 6 | 0.00 |
select incomingco0_.id as id24_2_, incomingco0_.author as author24_2_, incomingco0_.created_at as created2_24_2_, incomingco0_.description as descript3_24_2_, incomingco0_.labels as labels24_2_, incomingco0_.last_updated as last5_24_2_, incomingco0_.recipient_code as recipient6_24_2_, incomingco0_.recipient_name as recipient7_24_2_, incomingco0_.request_content as request8_24_2_, incomingco0_.request_date as request9_24_2_, incomingco0_.response_content as response10_24_2_, incomingco0_.response_timestamp as response11_24_2_, incomingco0_.sender_code as sender12_24_2_, incomingco0_.sender_name as sender13_24_2_, incomingco0_.service as service24_2_, incomingco0_.sign_org as sign15_24_2_, incomingco0_.sign_subj as sign16_24_2_, incomingco0_.status as status24_2_, incomingco0_.tp_number as tp18_24_2_, incomingco0_.trans_code as trans19_24_2_, incomingco0_.department as department24_2_, incomingco0_.done_by as done21_24_2_, incomingco0_.last_assigned as last22_24_2_, incomingco0_.oktmo as oktmo24_2_, incomingco0_.reg_date as reg24_24_2_, incomingco0_.reg_number as reg25_24_2_, incomingco0_.rpgu_created_at as rpgu26_24_2_, incomingco0_.service_code as service27_24_2_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_ from adp_conversation_in incomingco0_ left outer join adp_user user1_ on incomingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where incomingco0_.id=? | 1 | 84,231 | 2 | 8,430 | 50 | 0.00 |
update adp_dictionary_documents set document = ? where dictionary_id = ? | 0 | 105,110 | 1 | 327 | 3 | 0.00 |
select count(*) from adp_dictionary_documents where dictionary_id = ? | 0 | 105,110 | 0 | 135 | 1 | 0.00 |
select incomingco0_.id as id2_2_, incomingco0_.author as author2_2_, incomingco0_.created_at as created2_2_2_, incomingco0_.description as descript3_2_2_, incomingco0_.labels as labels2_2_, incomingco0_.last_updated as last5_2_2_, incomingco0_.recipient_code as recipient6_2_2_, incomingco0_.recipient_name as recipient7_2_2_, incomingco0_.request_content as request8_2_2_, incomingco0_.request_date as request9_2_2_, incomingco0_.response_content as response10_2_2_, incomingco0_.response_timestamp as response11_2_2_, incomingco0_.sender_code as sender12_2_2_, incomingco0_.sender_name as sender13_2_2_, incomingco0_.service as service2_2_, incomingco0_.sign_org as sign15_2_2_, incomingco0_.sign_subj as sign16_2_2_, incomingco0_.status as status2_2_, incomingco0_.tp_number as tp18_2_2_, incomingco0_.trans_code as trans19_2_2_, incomingco0_.department as department2_2_, incomingco0_.done_by as done21_2_2_, incomingco0_.last_assigned as last22_2_2_, incomingco0_.oktmo as oktmo2_2_, incomingco0_.reg_date as reg24_2_2_, incomingco0_.reg_number as reg25_2_2_, incomingco0_.rpgu_created_at as rpgu26_2_2_, incomingco0_.service_code as service27_2_2_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_, user2_.id as id0_1_, user2_.cert_fingerprint as cert2_0_1_, user2_.created_at as created3_0_1_, user2_.department as department0_1_, user2_.email as email0_1_, user2_.first_name as first6_0_1_, user2_.gisgmp_department as gisgmp7_0_1_, user2_.inherit_adapters as inherit8_0_1_, user2_.last_name as last9_0_1_, user2_.last_updated as last10_0_1_, user2_.middle_name as middle11_0_1_, user2_.mnemonic as mnemonic0_1_, user2_.no_emails as no13_0_1_, user2_.owner as owner0_1_, user2_.passwd as passwd0_1_, user2_.phone as phone0_1_, user2_.position as position0_1_, user2_.region as region0_1_, user2_.passwd_salt as passwd18_0_1_, user2_.snils as snils0_1_, user2_.username as username0_1_ from adp_conversation_in incomingco0_ left outer join adp_user user1_ on incomingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where incomingco0_.id=? | 0 | 36,856 | 2 | 41 | 3 | 0.00 |
select templateen0_.adapter_id as adapter1_36_0_, templateen0_.template as template36_0_ from adp_template templateen0_ where templateen0_.adapter_id=? | 0 | 69,412 | 1 | 19 | 3 | 0.00 |
update adp_conversation_in set author=?, created_at=?, description=?, labels=?, last_updated=?, recipient_code=?, recipient_name=?, request_content=?, request_date=?, response_content=?, response_timestamp=?, sender_code=?, sender_name=?, service=?, sign_org=?, sign_subj=?, status=?, tp_number=?, trans_code=?, department=?, done_by=?, last_assigned=?, oktmo=?, reg_date=?, reg_number=?, rpgu_created_at=?, service_code=? where id=? | 0 | 6,463 | 9 | 395 | 24 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 527 | 113 | 346 | 64 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 527 | 108 | 301 | 62 | 0.00 |
select department0_.id as id31_2_, department0_.adconstruct_enabled as adconstr2_31_2_, department0_.address as address31_2_, department0_.aggregator_disabled as aggregator4_31_2_, department0_.bank_acc as bank5_31_2_, department0_.bic as bic31_2_, department0_.business_hours as business7_31_2_, department0_.coordinates as coordina8_31_2_, department0_.do_dep as do9_31_2_, department0_.is_ebf as is10_31_2_, department0_.equeue_enabled as equeue11_31_2_, department0_.ext_spu_id as ext12_31_2_, department0_.frgu_code as frgu13_31_2_, department0_.gisgmp_code as gisgmp14_31_2_, department0_.gisgmp_main_dep_id as gisgmp23_31_2_, department0_.gisgmp_role as gisgmp15_31_2_, department0_.inn as inn31_2_, department0_.kpp as kpp31_2_, department0_.name as name31_2_, department0_.ogrn as ogrn31_2_, department0_.oktmo as oktmo31_2_, department0_.parent_dep_id as parent24_31_2_, department0_.phone as phone31_2_, department0_.share_conv as share22_31_2_, department1_.id as id31_0_, department1_.adconstruct_enabled as adconstr2_31_0_, department1_.address as address31_0_, department1_.aggregator_disabled as aggregator4_31_0_, department1_.bank_acc as bank5_31_0_, department1_.bic as bic31_0_, department1_.business_hours as business7_31_0_, department1_.coordinates as coordina8_31_0_, department1_.do_dep as do9_31_0_, department1_.is_ebf as is10_31_0_, department1_.equeue_enabled as equeue11_31_0_, department1_.ext_spu_id as ext12_31_0_, department1_.frgu_code as frgu13_31_0_, department1_.gisgmp_code as gisgmp14_31_0_, department1_.gisgmp_main_dep_id as gisgmp23_31_0_, department1_.gisgmp_role as gisgmp15_31_0_, department1_.inn as inn31_0_, department1_.kpp as kpp31_0_, department1_.name as name31_0_, department1_.ogrn as ogrn31_0_, department1_.oktmo as oktmo31_0_, department1_.parent_dep_id as parent24_31_0_, department1_.phone as phone31_0_, department1_.share_conv as share22_31_0_, department2_.id as id31_1_, department2_.adconstruct_enabled as adconstr2_31_1_, department2_.address as address31_1_, department2_.aggregator_disabled as aggregator4_31_1_, department2_.bank_acc as bank5_31_1_, department2_.bic as bic31_1_, department2_.business_hours as business7_31_1_, department2_.coordinates as coordina8_31_1_, department2_.do_dep as do9_31_1_, department2_.is_ebf as is10_31_1_, department2_.equeue_enabled as equeue11_31_1_, department2_.ext_spu_id as ext12_31_1_, department2_.frgu_code as frgu13_31_1_, department2_.gisgmp_code as gisgmp14_31_1_, department2_.gisgmp_main_dep_id as gisgmp23_31_1_, department2_.gisgmp_role as gisgmp15_31_1_, department2_.inn as inn31_1_, department2_.kpp as kpp31_1_, department2_.name as name31_1_, department2_.ogrn as ogrn31_1_, department2_.oktmo as oktmo31_1_, department2_.parent_dep_id as parent24_31_1_, department2_.phone as phone31_1_, department2_.share_conv as share22_31_1_ from adp_department department0_ left outer join adp_department department1_ on department0_.gisgmp_main_dep_id=department1_.id left outer join adp_department department2_ on department1_.parent_dep_id=department2_.id where department0_.id=? | 0 | 238,113 | 0 | 7 | 0 | 0.00 |
select user0_.id as id24_1_, user0_.cert_fingerprint as cert2_24_1_, user0_.created_at as created3_24_1_, user0_.department as department24_1_, user0_.email as email24_1_, user0_.first_name as first6_24_1_, user0_.gisgmp_department as gisgmp7_24_1_, user0_.inherit_adapters as inherit8_24_1_, user0_.last_name as last9_24_1_, user0_.last_updated as last10_24_1_, user0_.middle_name as middle11_24_1_, user0_.mnemonic as mnemonic24_1_, user0_.no_emails as no13_24_1_, user0_.owner as owner24_1_, user0_.passwd as passwd24_1_, user0_.phone as phone24_1_, user0_.position as position24_1_, user0_.region as region24_1_, user0_.passwd_salt as passwd18_24_1_, user0_.snils as snils24_1_, user0_.username as username24_1_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_ from adp_user user0_ left outer join adp_user user1_ on user0_.owner=user1_.id where user0_.id=? | 0 | 92,527 | 0 | 5,405 | 17 | 0.00 |
select this_.id as id32_3_, this_.department_id as department17_32_3_, this_.done_by_days as done2_32_3_, this_.done_by_days_kind as done3_32_3_, this_.equeue_delay_days as equeue4_32_3_, this_.equeue_enabled as equeue5_32_3_, this_.event_service_url as event6_32_3_, this_.form_id as form7_32_3_, this_.payment_enabled as payment8_32_3_, this_.req_tag_name as req9_32_3_, this_.req_tag_ns as req10_32_3_, this_.request_xslt as request11_32_3_, this_.resp_tag_name as resp12_32_3_, this_.resp_tag_ns as resp13_32_3_, this_.service_code as service14_32_3_, this_.name as name32_3_, this_.smev_version as smev16_32_3_, department2_.id as id33_0_, department2_.adconstruct_enabled as adconstr2_33_0_, department2_.address as address33_0_, department2_.aggregator_disabled as aggregator4_33_0_, department2_.bank_acc as bank5_33_0_, department2_.bic as bic33_0_, department2_.business_hours as business7_33_0_, department2_.coordinates as coordina8_33_0_, department2_.do_dep as do9_33_0_, department2_.is_ebf as is10_33_0_, department2_.equeue_enabled as equeue11_33_0_, department2_.ext_spu_id as ext12_33_0_, department2_.frgu_code as frgu13_33_0_, department2_.gisgmp_code as gisgmp14_33_0_, department2_.gisgmp_main_dep_id as gisgmp23_33_0_, department2_.gisgmp_role as gisgmp15_33_0_, department2_.inn as inn33_0_, department2_.kpp as kpp33_0_, department2_.name as name33_0_, department2_.ogrn as ogrn33_0_, department2_.oktmo as oktmo33_0_, department2_.parent_dep_id as parent24_33_0_, department2_.phone as phone33_0_, department2_.share_conv as share22_33_0_, department3_.id as id33_1_, department3_.adconstruct_enabled as adconstr2_33_1_, department3_.address as address33_1_, department3_.aggregator_disabled as aggregator4_33_1_, department3_.bank_acc as bank5_33_1_, department3_.bic as bic33_1_, department3_.business_hours as business7_33_1_, department3_.coordinates as coordina8_33_1_, department3_.do_dep as do9_33_1_, department3_.is_ebf as is10_33_1_, department3_.equeue_enabled as equeue11_33_1_, department3_.ext_spu_id as ext12_33_1_, department3_.frgu_code as frgu13_33_1_, department3_.gisgmp_code as gisgmp14_33_1_, department3_.gisgmp_main_dep_id as gisgmp23_33_1_, department3_.gisgmp_role as gisgmp15_33_1_, department3_.inn as inn33_1_, department3_.kpp as kpp33_1_, department3_.name as name33_1_, department3_.ogrn as ogrn33_1_, department3_.oktmo as oktmo33_1_, department3_.parent_dep_id as parent24_33_1_, department3_.phone as phone33_1_, department3_.share_conv as share22_33_1_, department4_.id as id33_2_, department4_.adconstruct_enabled as adconstr2_33_2_, department4_.address as address33_2_, department4_.aggregator_disabled as aggregator4_33_2_, department4_.bank_acc as bank5_33_2_, department4_.bic as bic33_2_, department4_.business_hours as business7_33_2_, department4_.coordinates as coordina8_33_2_, department4_.do_dep as do9_33_2_, department4_.is_ebf as is10_33_2_, department4_.equeue_enabled as equeue11_33_2_, department4_.ext_spu_id as ext12_33_2_, department4_.frgu_code as frgu13_33_2_, department4_.gisgmp_code as gisgmp14_33_2_, department4_.gisgmp_main_dep_id as gisgmp23_33_2_, department4_.gisgmp_role as gisgmp15_33_2_, department4_.inn as inn33_2_, department4_.kpp as kpp33_2_, department4_.name as name33_2_, department4_.ogrn as ogrn33_2_, department4_.oktmo as oktmo33_2_, department4_.parent_dep_id as parent24_33_2_, department4_.phone as phone33_2_, department4_.share_conv as share22_33_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id | 0 | 107,174 | 0 | 39 | 0 | 0.00 |
select this_.id as id10_3_, this_.department_id as department17_10_3_, this_.done_by_days as done2_10_3_, this_.done_by_days_kind as done3_10_3_, this_.equeue_delay_days as equeue4_10_3_, this_.equeue_enabled as equeue5_10_3_, this_.event_service_url as event6_10_3_, this_.form_id as form7_10_3_, this_.payment_enabled as payment8_10_3_, this_.req_tag_name as req9_10_3_, this_.req_tag_ns as req10_10_3_, this_.request_xslt as request11_10_3_, this_.resp_tag_name as resp12_10_3_, this_.resp_tag_ns as resp13_10_3_, this_.service_code as service14_10_3_, this_.name as name10_3_, this_.smev_version as smev16_10_3_, department2_.id as id11_0_, department2_.adconstruct_enabled as adconstr2_11_0_, department2_.address as address11_0_, department2_.aggregator_disabled as aggregator4_11_0_, department2_.bank_acc as bank5_11_0_, department2_.bic as bic11_0_, department2_.business_hours as business7_11_0_, department2_.coordinates as coordina8_11_0_, department2_.do_dep as do9_11_0_, department2_.is_ebf as is10_11_0_, department2_.equeue_enabled as equeue11_11_0_, department2_.ext_spu_id as ext12_11_0_, department2_.frgu_code as frgu13_11_0_, department2_.gisgmp_code as gisgmp14_11_0_, department2_.gisgmp_main_dep_id as gisgmp23_11_0_, department2_.gisgmp_role as gisgmp15_11_0_, department2_.inn as inn11_0_, department2_.kpp as kpp11_0_, department2_.name as name11_0_, department2_.ogrn as ogrn11_0_, department2_.oktmo as oktmo11_0_, department2_.parent_dep_id as parent24_11_0_, department2_.phone as phone11_0_, department2_.share_conv as share22_11_0_, department3_.id as id11_1_, department3_.adconstruct_enabled as adconstr2_11_1_, department3_.address as address11_1_, department3_.aggregator_disabled as aggregator4_11_1_, department3_.bank_acc as bank5_11_1_, department3_.bic as bic11_1_, department3_.business_hours as business7_11_1_, department3_.coordinates as coordina8_11_1_, department3_.do_dep as do9_11_1_, department3_.is_ebf as is10_11_1_, department3_.equeue_enabled as equeue11_11_1_, department3_.ext_spu_id as ext12_11_1_, department3_.frgu_code as frgu13_11_1_, department3_.gisgmp_code as gisgmp14_11_1_, department3_.gisgmp_main_dep_id as gisgmp23_11_1_, department3_.gisgmp_role as gisgmp15_11_1_, department3_.inn as inn11_1_, department3_.kpp as kpp11_1_, department3_.name as name11_1_, department3_.ogrn as ogrn11_1_, department3_.oktmo as oktmo11_1_, department3_.parent_dep_id as parent24_11_1_, department3_.phone as phone11_1_, department3_.share_conv as share22_11_1_, department4_.id as id11_2_, department4_.adconstruct_enabled as adconstr2_11_2_, department4_.address as address11_2_, department4_.aggregator_disabled as aggregator4_11_2_, department4_.bank_acc as bank5_11_2_, department4_.bic as bic11_2_, department4_.business_hours as business7_11_2_, department4_.coordinates as coordina8_11_2_, department4_.do_dep as do9_11_2_, department4_.is_ebf as is10_11_2_, department4_.equeue_enabled as equeue11_11_2_, department4_.ext_spu_id as ext12_11_2_, department4_.frgu_code as frgu13_11_2_, department4_.gisgmp_code as gisgmp14_11_2_, department4_.gisgmp_main_dep_id as gisgmp23_11_2_, department4_.gisgmp_role as gisgmp15_11_2_, department4_.inn as inn11_2_, department4_.kpp as kpp11_2_, department4_.name as name11_2_, department4_.ogrn as ogrn11_2_, department4_.oktmo as oktmo11_2_, department4_.parent_dep_id as parent24_11_2_, department4_.phone as phone11_2_, department4_.share_conv as share22_11_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id | 0 | 91,645 | 0 | 37 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 2,294 | 12 | 453 | 17 | 0.00 |
select autofillda0_.user_id as user1_24_0_, autofillda0_.autofill_data as autofill2_0_, autofillda0_.adapter_id as adapter3_0_ from adp_autofill_data autofillda0_ where autofillda0_.user_id=? | 0 | 25,117 | 1 | 525 | 4 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 2,284 | 11 | 421 | 15 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1,226 | 20 | 832 | 46 | 0.00 |
select department0_.id as id11_2_, department0_.adconstruct_enabled as adconstr2_11_2_, department0_.address as address11_2_, department0_.aggregator_disabled as aggregator4_11_2_, department0_.bank_acc as bank5_11_2_, department0_.bic as bic11_2_, department0_.business_hours as business7_11_2_, department0_.coordinates as coordina8_11_2_, department0_.do_dep as do9_11_2_, department0_.is_ebf as is10_11_2_, department0_.equeue_enabled as equeue11_11_2_, department0_.ext_spu_id as ext12_11_2_, department0_.frgu_code as frgu13_11_2_, department0_.gisgmp_code as gisgmp14_11_2_, department0_.gisgmp_main_dep_id as gisgmp23_11_2_, department0_.gisgmp_role as gisgmp15_11_2_, department0_.inn as inn11_2_, department0_.kpp as kpp11_2_, department0_.name as name11_2_, department0_.ogrn as ogrn11_2_, department0_.oktmo as oktmo11_2_, department0_.parent_dep_id as parent24_11_2_, department0_.phone as phone11_2_, department0_.share_conv as share22_11_2_, department1_.id as id11_0_, department1_.adconstruct_enabled as adconstr2_11_0_, department1_.address as address11_0_, department1_.aggregator_disabled as aggregator4_11_0_, department1_.bank_acc as bank5_11_0_, department1_.bic as bic11_0_, department1_.business_hours as business7_11_0_, department1_.coordinates as coordina8_11_0_, department1_.do_dep as do9_11_0_, department1_.is_ebf as is10_11_0_, department1_.equeue_enabled as equeue11_11_0_, department1_.ext_spu_id as ext12_11_0_, department1_.frgu_code as frgu13_11_0_, department1_.gisgmp_code as gisgmp14_11_0_, department1_.gisgmp_main_dep_id as gisgmp23_11_0_, department1_.gisgmp_role as gisgmp15_11_0_, department1_.inn as inn11_0_, department1_.kpp as kpp11_0_, department1_.name as name11_0_, department1_.ogrn as ogrn11_0_, department1_.oktmo as oktmo11_0_, department1_.parent_dep_id as parent24_11_0_, department1_.phone as phone11_0_, department1_.share_conv as share22_11_0_, department2_.id as id11_1_, department2_.adconstruct_enabled as adconstr2_11_1_, department2_.address as address11_1_, department2_.aggregator_disabled as aggregator4_11_1_, department2_.bank_acc as bank5_11_1_, department2_.bic as bic11_1_, department2_.business_hours as business7_11_1_, department2_.coordinates as coordina8_11_1_, department2_.do_dep as do9_11_1_, department2_.is_ebf as is10_11_1_, department2_.equeue_enabled as equeue11_11_1_, department2_.ext_spu_id as ext12_11_1_, department2_.frgu_code as frgu13_11_1_, department2_.gisgmp_code as gisgmp14_11_1_, department2_.gisgmp_main_dep_id as gisgmp23_11_1_, department2_.gisgmp_role as gisgmp15_11_1_, department2_.inn as inn11_1_, department2_.kpp as kpp11_1_, department2_.name as name11_1_, department2_.ogrn as ogrn11_1_, department2_.oktmo as oktmo11_1_, department2_.parent_dep_id as parent24_11_1_, department2_.phone as phone11_1_, department2_.share_conv as share22_11_1_ from adp_department department0_ left outer join adp_department department1_ on department0_.gisgmp_main_dep_id=department1_.id left outer join adp_department department2_ on department1_.parent_dep_id=department2_.id where department0_.id=? | 0 | 100,348 | 0 | 55 | 0 | 0.00 |
select dictionary0_.id as id30_2_, dictionary0_.author as author30_2_, dictionary0_.name_ as name2_30_2_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_, documents3_.Dictionary_id as Dictionary1_30_4_, documents3_.document as document4_ from ADP_DICTIONARY dictionary0_ left outer join adp_user user1_ on dictionary0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_dictionary_documents documents3_ on dictionary0_.id=documents3_.Dictionary_id where dictionary0_.id=? | 0 | 31,062 | 0 | 59 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 2,283 | 9 | 135 | 4 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 1,187 | 16 | 829 | 45 | 0.00 |
select department0_.adapter_id as adapter1_31_0_, department0_.department as department0_ from adp_dynamic_adapter_dpt department0_ where department0_.adapter_id=? | 0 | 27,251 | 0 | 10 | 0 | 0.00 |
select department0_.id as id9_2_, department0_.adconstruct_enabled as adconstr2_9_2_, department0_.address as address9_2_, department0_.aggregator_disabled as aggregator4_9_2_, department0_.bank_acc as bank5_9_2_, department0_.bic as bic9_2_, department0_.business_hours as business7_9_2_, department0_.coordinates as coordina8_9_2_, department0_.do_dep as do9_9_2_, department0_.is_ebf as is10_9_2_, department0_.equeue_enabled as equeue11_9_2_, department0_.ext_spu_id as ext12_9_2_, department0_.frgu_code as frgu13_9_2_, department0_.gisgmp_code as gisgmp14_9_2_, department0_.gisgmp_main_dep_id as gisgmp23_9_2_, department0_.gisgmp_role as gisgmp15_9_2_, department0_.inn as inn9_2_, department0_.kpp as kpp9_2_, department0_.name as name9_2_, department0_.ogrn as ogrn9_2_, department0_.oktmo as oktmo9_2_, department0_.parent_dep_id as parent24_9_2_, department0_.phone as phone9_2_, department0_.share_conv as share22_9_2_, department1_.id as id9_0_, department1_.adconstruct_enabled as adconstr2_9_0_, department1_.address as address9_0_, department1_.aggregator_disabled as aggregator4_9_0_, department1_.bank_acc as bank5_9_0_, department1_.bic as bic9_0_, department1_.business_hours as business7_9_0_, department1_.coordinates as coordina8_9_0_, department1_.do_dep as do9_9_0_, department1_.is_ebf as is10_9_0_, department1_.equeue_enabled as equeue11_9_0_, department1_.ext_spu_id as ext12_9_0_, department1_.frgu_code as frgu13_9_0_, department1_.gisgmp_code as gisgmp14_9_0_, department1_.gisgmp_main_dep_id as gisgmp23_9_0_, department1_.gisgmp_role as gisgmp15_9_0_, department1_.inn as inn9_0_, department1_.kpp as kpp9_0_, department1_.name as name9_0_, department1_.ogrn as ogrn9_0_, department1_.oktmo as oktmo9_0_, department1_.parent_dep_id as parent24_9_0_, department1_.phone as phone9_0_, department1_.share_conv as share22_9_0_, department2_.id as id9_1_, department2_.adconstruct_enabled as adconstr2_9_1_, department2_.address as address9_1_, department2_.aggregator_disabled as aggregator4_9_1_, department2_.bank_acc as bank5_9_1_, department2_.bic as bic9_1_, department2_.business_hours as business7_9_1_, department2_.coordinates as coordina8_9_1_, department2_.do_dep as do9_9_1_, department2_.is_ebf as is10_9_1_, department2_.equeue_enabled as equeue11_9_1_, department2_.ext_spu_id as ext12_9_1_, department2_.frgu_code as frgu13_9_1_, department2_.gisgmp_code as gisgmp14_9_1_, department2_.gisgmp_main_dep_id as gisgmp23_9_1_, department2_.gisgmp_role as gisgmp15_9_1_, department2_.inn as inn9_1_, department2_.kpp as kpp9_1_, department2_.name as name9_1_, department2_.ogrn as ogrn9_1_, department2_.oktmo as oktmo9_1_, department2_.parent_dep_id as parent24_9_1_, department2_.phone as phone9_1_, department2_.share_conv as share22_9_1_ from adp_department department0_ left outer join adp_department department1_ on department0_.gisgmp_main_dep_id=department1_.id left outer join adp_department department2_ on department1_.parent_dep_id=department2_.id where department0_.id=? | 0 | 78,033 | 0 | 2 | 0 | 0.00 |
select this_.id as id30_3_, this_.department_id as department17_30_3_, this_.done_by_days as done2_30_3_, this_.done_by_days_kind as done3_30_3_, this_.equeue_delay_days as equeue4_30_3_, this_.equeue_enabled as equeue5_30_3_, this_.event_service_url as event6_30_3_, this_.form_id as form7_30_3_, this_.payment_enabled as payment8_30_3_, this_.req_tag_name as req9_30_3_, this_.req_tag_ns as req10_30_3_, this_.request_xslt as request11_30_3_, this_.resp_tag_name as resp12_30_3_, this_.resp_tag_ns as resp13_30_3_, this_.service_code as service14_30_3_, this_.name as name30_3_, this_.smev_version as smev16_30_3_, department2_.id as id31_0_, department2_.adconstruct_enabled as adconstr2_31_0_, department2_.address as address31_0_, department2_.aggregator_disabled as aggregator4_31_0_, department2_.bank_acc as bank5_31_0_, department2_.bic as bic31_0_, department2_.business_hours as business7_31_0_, department2_.coordinates as coordina8_31_0_, department2_.do_dep as do9_31_0_, department2_.is_ebf as is10_31_0_, department2_.equeue_enabled as equeue11_31_0_, department2_.ext_spu_id as ext12_31_0_, department2_.frgu_code as frgu13_31_0_, department2_.gisgmp_code as gisgmp14_31_0_, department2_.gisgmp_main_dep_id as gisgmp23_31_0_, department2_.gisgmp_role as gisgmp15_31_0_, department2_.inn as inn31_0_, department2_.kpp as kpp31_0_, department2_.name as name31_0_, department2_.ogrn as ogrn31_0_, department2_.oktmo as oktmo31_0_, department2_.parent_dep_id as parent24_31_0_, department2_.phone as phone31_0_, department2_.share_conv as share22_31_0_, department3_.id as id31_1_, department3_.adconstruct_enabled as adconstr2_31_1_, department3_.address as address31_1_, department3_.aggregator_disabled as aggregator4_31_1_, department3_.bank_acc as bank5_31_1_, department3_.bic as bic31_1_, department3_.business_hours as business7_31_1_, department3_.coordinates as coordina8_31_1_, department3_.do_dep as do9_31_1_, department3_.is_ebf as is10_31_1_, department3_.equeue_enabled as equeue11_31_1_, department3_.ext_spu_id as ext12_31_1_, department3_.frgu_code as frgu13_31_1_, department3_.gisgmp_code as gisgmp14_31_1_, department3_.gisgmp_main_dep_id as gisgmp23_31_1_, department3_.gisgmp_role as gisgmp15_31_1_, department3_.inn as inn31_1_, department3_.kpp as kpp31_1_, department3_.name as name31_1_, department3_.ogrn as ogrn31_1_, department3_.oktmo as oktmo31_1_, department3_.parent_dep_id as parent24_31_1_, department3_.phone as phone31_1_, department3_.share_conv as share22_31_1_, department4_.id as id31_2_, department4_.adconstruct_enabled as adconstr2_31_2_, department4_.address as address31_2_, department4_.aggregator_disabled as aggregator4_31_2_, department4_.bank_acc as bank5_31_2_, department4_.bic as bic31_2_, department4_.business_hours as business7_31_2_, department4_.coordinates as coordina8_31_2_, department4_.do_dep as do9_31_2_, department4_.is_ebf as is10_31_2_, department4_.equeue_enabled as equeue11_31_2_, department4_.ext_spu_id as ext12_31_2_, department4_.frgu_code as frgu13_31_2_, department4_.gisgmp_code as gisgmp14_31_2_, department4_.gisgmp_main_dep_id as gisgmp23_31_2_, department4_.gisgmp_role as gisgmp15_31_2_, department4_.inn as inn31_2_, department4_.kpp as kpp31_2_, department4_.name as name31_2_, department4_.ogrn as ogrn31_2_, department4_.oktmo as oktmo31_2_, department4_.parent_dep_id as parent24_31_2_, department4_.phone as phone31_2_, department4_.share_conv as share22_31_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id | 0 | 33,084 | 0 | 114 | 1 | 0.00 |
select this_.id as id8_3_, this_.department_id as department17_8_3_, this_.done_by_days as done2_8_3_, this_.done_by_days_kind as done3_8_3_, this_.equeue_delay_days as equeue4_8_3_, this_.equeue_enabled as equeue5_8_3_, this_.event_service_url as event6_8_3_, this_.form_id as form7_8_3_, this_.payment_enabled as payment8_8_3_, this_.req_tag_name as req9_8_3_, this_.req_tag_ns as req10_8_3_, this_.request_xslt as request11_8_3_, this_.resp_tag_name as resp12_8_3_, this_.resp_tag_ns as resp13_8_3_, this_.service_code as service14_8_3_, this_.name as name8_3_, this_.smev_version as smev16_8_3_, department2_.id as id9_0_, department2_.adconstruct_enabled as adconstr2_9_0_, department2_.address as address9_0_, department2_.aggregator_disabled as aggregator4_9_0_, department2_.bank_acc as bank5_9_0_, department2_.bic as bic9_0_, department2_.business_hours as business7_9_0_, department2_.coordinates as coordina8_9_0_, department2_.do_dep as do9_9_0_, department2_.is_ebf as is10_9_0_, department2_.equeue_enabled as equeue11_9_0_, department2_.ext_spu_id as ext12_9_0_, department2_.frgu_code as frgu13_9_0_, department2_.gisgmp_code as gisgmp14_9_0_, department2_.gisgmp_main_dep_id as gisgmp23_9_0_, department2_.gisgmp_role as gisgmp15_9_0_, department2_.inn as inn9_0_, department2_.kpp as kpp9_0_, department2_.name as name9_0_, department2_.ogrn as ogrn9_0_, department2_.oktmo as oktmo9_0_, department2_.parent_dep_id as parent24_9_0_, department2_.phone as phone9_0_, department2_.share_conv as share22_9_0_, department3_.id as id9_1_, department3_.adconstruct_enabled as adconstr2_9_1_, department3_.address as address9_1_, department3_.aggregator_disabled as aggregator4_9_1_, department3_.bank_acc as bank5_9_1_, department3_.bic as bic9_1_, department3_.business_hours as business7_9_1_, department3_.coordinates as coordina8_9_1_, department3_.do_dep as do9_9_1_, department3_.is_ebf as is10_9_1_, department3_.equeue_enabled as equeue11_9_1_, department3_.ext_spu_id as ext12_9_1_, department3_.frgu_code as frgu13_9_1_, department3_.gisgmp_code as gisgmp14_9_1_, department3_.gisgmp_main_dep_id as gisgmp23_9_1_, department3_.gisgmp_role as gisgmp15_9_1_, department3_.inn as inn9_1_, department3_.kpp as kpp9_1_, department3_.name as name9_1_, department3_.ogrn as ogrn9_1_, department3_.oktmo as oktmo9_1_, department3_.parent_dep_id as parent24_9_1_, department3_.phone as phone9_1_, department3_.share_conv as share22_9_1_, department4_.id as id9_2_, department4_.adconstruct_enabled as adconstr2_9_2_, department4_.address as address9_2_, department4_.aggregator_disabled as aggregator4_9_2_, department4_.bank_acc as bank5_9_2_, department4_.bic as bic9_2_, department4_.business_hours as business7_9_2_, department4_.coordinates as coordina8_9_2_, department4_.do_dep as do9_9_2_, department4_.is_ebf as is10_9_2_, department4_.equeue_enabled as equeue11_9_2_, department4_.ext_spu_id as ext12_9_2_, department4_.frgu_code as frgu13_9_2_, department4_.gisgmp_code as gisgmp14_9_2_, department4_.gisgmp_main_dep_id as gisgmp23_9_2_, department4_.gisgmp_role as gisgmp15_9_2_, department4_.inn as inn9_2_, department4_.kpp as kpp9_2_, department4_.name as name9_2_, department4_.ogrn as ogrn9_2_, department4_.oktmo as oktmo9_2_, department4_.parent_dep_id as parent24_9_2_, department4_.phone as phone9_2_, department4_.share_conv as share22_9_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id | 0 | 33,530 | 0 | 36 | 0 | 0.00 |
select this_.id as id31_0_, this_.adapter_id as adapter2_31_0_, this_.deprecated as deprecated31_0_, this_.mnemonic as mnemonic31_0_, this_.name as name31_0_, this_.region as region31_0_, this_.request_ui as request7_31_0_, this_.resp_subj_sign as resp8_31_0_, this_.response_ui as response9_31_0_, this_.sc_query as sc10_31_0_, this_.supp_subj_sign as supp11_31_0_ from adp_dynamic_adapter this_ where this_.adapter_id=? | 0 | 27,236 | 0 | 59 | 1 | 0.00 |
select user0_.id as id22_1_, user0_.cert_fingerprint as cert2_22_1_, user0_.created_at as created3_22_1_, user0_.department as department22_1_, user0_.email as email22_1_, user0_.first_name as first6_22_1_, user0_.gisgmp_department as gisgmp7_22_1_, user0_.inherit_adapters as inherit8_22_1_, user0_.last_name as last9_22_1_, user0_.last_updated as last10_22_1_, user0_.middle_name as middle11_22_1_, user0_.mnemonic as mnemonic22_1_, user0_.no_emails as no13_22_1_, user0_.owner as owner22_1_, user0_.passwd as passwd22_1_, user0_.phone as phone22_1_, user0_.position as position22_1_, user0_.region as region22_1_, user0_.passwd_salt as passwd18_22_1_, user0_.snils as snils22_1_, user0_.username as username22_1_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_ from adp_user user0_ left outer join adp_user user1_ on user0_.owner=user1_.id where user0_.id=? | 0 | 32,261 | 0 | 6 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 1,187 | 8 | 241 | 12 | 0.00 |
select user0_.id as id2_1_, user0_.cert_fingerprint as cert2_2_1_, user0_.created_at as created3_2_1_, user0_.department as department2_1_, user0_.email as email2_1_, user0_.first_name as first6_2_1_, user0_.gisgmp_department as gisgmp7_2_1_, user0_.inherit_adapters as inherit8_2_1_, user0_.last_name as last9_2_1_, user0_.last_updated as last10_2_1_, user0_.middle_name as middle11_2_1_, user0_.mnemonic as mnemonic2_1_, user0_.no_emails as no13_2_1_, user0_.owner as owner2_1_, user0_.passwd as passwd2_1_, user0_.phone as phone2_1_, user0_.position as position2_1_, user0_.region as region2_1_, user0_.passwd_salt as passwd18_2_1_, user0_.snils as snils2_1_, user0_.username as username2_1_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_ from adp_user user0_ left outer join adp_user user1_ on user0_.owner=user1_.id where user0_.id=? | 0 | 13,327 | 0 | 1,430 | 12 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where length(coalesce(this_.email, '')) > 0 and this_.email like '%_@_%_.__%' and this_.no_emails=? and this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) | 0 | 1,868 | 3 | 819 | 22 | 0.00 |
select this_.uin as y0_ from adp_charge this_ where this_.smev_version=? and this_.status in (?, ?) and this_.last_updated<=? and this_.created_at>=? order by this_.created_at asc | 0 | 2,917 | 1 | 90 | 3 | 0.00 |
select oktmo0_.user_id as user1_24_0_, oktmo0_.oktmo as oktmo0_ from adp_user_oktmo oktmo0_ where oktmo0_.user_id=? | 0 | 32,752 | 0 | 5 | 0 | 0.00 |
select roles0_.user_id as user1_24_0_, roles0_.role_name as role2_0_ from adp_user_roles roles0_ where roles0_.user_id=? | 0 | 22,090 | 0 | 8 | 0 | 0.00 |
select user0_.id as id0_1_, user0_.cert_fingerprint as cert2_0_1_, user0_.created_at as created3_0_1_, user0_.department as department0_1_, user0_.email as email0_1_, user0_.first_name as first6_0_1_, user0_.gisgmp_department as gisgmp7_0_1_, user0_.inherit_adapters as inherit8_0_1_, user0_.last_name as last9_0_1_, user0_.last_updated as last10_0_1_, user0_.middle_name as middle11_0_1_, user0_.mnemonic as mnemonic0_1_, user0_.no_emails as no13_0_1_, user0_.owner as owner0_1_, user0_.passwd as passwd0_1_, user0_.phone as phone0_1_, user0_.position as position0_1_, user0_.region as region0_1_, user0_.passwd_salt as passwd18_0_1_, user0_.snils as snils0_1_, user0_.username as username0_1_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_ from adp_user user0_ left outer join adp_user user1_ on user0_.owner=user1_.id where user0_.id=? | 0 | 11,337 | 0 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 41 | 115 | 319 | 57 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 65 | 63 | 501 | 62 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 40 | 102 | 473 | 118 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where length(coalesce(this_.email, '')) > 0 and this_.email like '%_@_%_.__%' and this_.no_emails=? and this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) | 0 | 1,917 | 2 | 59 | 2 | 0.00 |
select oktmo0_.user_id as user1_2_0_, oktmo0_.oktmo as oktmo0_ from adp_user_oktmo oktmo0_ where oktmo0_.user_id=? | 0 | 24,321 | 0 | 317 | 2 | 0.00 |
select roles0_.user_id as user1_22_0_, roles0_.role_name as role2_0_ from adp_user_roles roles0_ where roles0_.user_id=? | 0 | 15,377 | 0 | 85 | 0 | 0.00 |
select dictionary0_.id as id28_2_, dictionary0_.author as author28_2_, dictionary0_.name_ as name2_28_2_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_, documents3_.Dictionary_id as Dictionary1_28_4_, documents3_.document as document4_ from ADP_DICTIONARY dictionary0_ left outer join adp_user user1_ on dictionary0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_dictionary_documents documents3_ on dictionary0_.id=documents3_.Dictionary_id where dictionary0_.id=? | 0 | 6,230 | 0 | 45 | 1 | 0.00 |
select department0_.id as col_0_0_, department0_.name as col_1_0_ from adp_department department0_ order by lower(department0_.name) | 0 | 126 | 28 | 78 | 11 | 0.00 |
select this_.id as id31_2_, this_.adconstruct_enabled as adconstr2_31_2_, this_.address as address31_2_, this_.aggregator_disabled as aggregator4_31_2_, this_.bank_acc as bank5_31_2_, this_.bic as bic31_2_, this_.business_hours as business7_31_2_, this_.coordinates as coordina8_31_2_, this_.do_dep as do9_31_2_, this_.is_ebf as is10_31_2_, this_.equeue_enabled as equeue11_31_2_, this_.ext_spu_id as ext12_31_2_, this_.frgu_code as frgu13_31_2_, this_.gisgmp_code as gisgmp14_31_2_, this_.gisgmp_main_dep_id as gisgmp23_31_2_, this_.gisgmp_role as gisgmp15_31_2_, this_.inn as inn31_2_, this_.kpp as kpp31_2_, this_.name as name31_2_, this_.ogrn as ogrn31_2_, this_.oktmo as oktmo31_2_, this_.parent_dep_id as parent24_31_2_, this_.phone as phone31_2_, this_.share_conv as share22_31_2_, department2_.id as id31_0_, department2_.adconstruct_enabled as adconstr2_31_0_, department2_.address as address31_0_, department2_.aggregator_disabled as aggregator4_31_0_, department2_.bank_acc as bank5_31_0_, department2_.bic as bic31_0_, department2_.business_hours as business7_31_0_, department2_.coordinates as coordina8_31_0_, department2_.do_dep as do9_31_0_, department2_.is_ebf as is10_31_0_, department2_.equeue_enabled as equeue11_31_0_, department2_.ext_spu_id as ext12_31_0_, department2_.frgu_code as frgu13_31_0_, department2_.gisgmp_code as gisgmp14_31_0_, department2_.gisgmp_main_dep_id as gisgmp23_31_0_, department2_.gisgmp_role as gisgmp15_31_0_, department2_.inn as inn31_0_, department2_.kpp as kpp31_0_, department2_.name as name31_0_, department2_.ogrn as ogrn31_0_, department2_.oktmo as oktmo31_0_, department2_.parent_dep_id as parent24_31_0_, department2_.phone as phone31_0_, department2_.share_conv as share22_31_0_, department3_.id as id31_1_, department3_.adconstruct_enabled as adconstr2_31_1_, department3_.address as address31_1_, department3_.aggregator_disabled as aggregator4_31_1_, department3_.bank_acc as bank5_31_1_, department3_.bic as bic31_1_, department3_.business_hours as business7_31_1_, department3_.coordinates as coordina8_31_1_, department3_.do_dep as do9_31_1_, department3_.is_ebf as is10_31_1_, department3_.equeue_enabled as equeue11_31_1_, department3_.ext_spu_id as ext12_31_1_, department3_.frgu_code as frgu13_31_1_, department3_.gisgmp_code as gisgmp14_31_1_, department3_.gisgmp_main_dep_id as gisgmp23_31_1_, department3_.gisgmp_role as gisgmp15_31_1_, department3_.inn as inn31_1_, department3_.kpp as kpp31_1_, department3_.name as name31_1_, department3_.ogrn as ogrn31_1_, department3_.oktmo as oktmo31_1_, department3_.parent_dep_id as parent24_31_1_, department3_.phone as phone31_1_, department3_.share_conv as share22_31_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id | 0 | 314 | 11 | 48 | 5 | 0.00 |
select this_.id as id33_2_, this_.adconstruct_enabled as adconstr2_33_2_, this_.address as address33_2_, this_.aggregator_disabled as aggregator4_33_2_, this_.bank_acc as bank5_33_2_, this_.bic as bic33_2_, this_.business_hours as business7_33_2_, this_.coordinates as coordina8_33_2_, this_.do_dep as do9_33_2_, this_.is_ebf as is10_33_2_, this_.equeue_enabled as equeue11_33_2_, this_.ext_spu_id as ext12_33_2_, this_.frgu_code as frgu13_33_2_, this_.gisgmp_code as gisgmp14_33_2_, this_.gisgmp_main_dep_id as gisgmp23_33_2_, this_.gisgmp_role as gisgmp15_33_2_, this_.inn as inn33_2_, this_.kpp as kpp33_2_, this_.name as name33_2_, this_.ogrn as ogrn33_2_, this_.oktmo as oktmo33_2_, this_.parent_dep_id as parent24_33_2_, this_.phone as phone33_2_, this_.share_conv as share22_33_2_, department2_.id as id33_0_, department2_.adconstruct_enabled as adconstr2_33_0_, department2_.address as address33_0_, department2_.aggregator_disabled as aggregator4_33_0_, department2_.bank_acc as bank5_33_0_, department2_.bic as bic33_0_, department2_.business_hours as business7_33_0_, department2_.coordinates as coordina8_33_0_, department2_.do_dep as do9_33_0_, department2_.is_ebf as is10_33_0_, department2_.equeue_enabled as equeue11_33_0_, department2_.ext_spu_id as ext12_33_0_, department2_.frgu_code as frgu13_33_0_, department2_.gisgmp_code as gisgmp14_33_0_, department2_.gisgmp_main_dep_id as gisgmp23_33_0_, department2_.gisgmp_role as gisgmp15_33_0_, department2_.inn as inn33_0_, department2_.kpp as kpp33_0_, department2_.name as name33_0_, department2_.ogrn as ogrn33_0_, department2_.oktmo as oktmo33_0_, department2_.parent_dep_id as parent24_33_0_, department2_.phone as phone33_0_, department2_.share_conv as share22_33_0_, department3_.id as id33_1_, department3_.adconstruct_enabled as adconstr2_33_1_, department3_.address as address33_1_, department3_.aggregator_disabled as aggregator4_33_1_, department3_.bank_acc as bank5_33_1_, department3_.bic as bic33_1_, department3_.business_hours as business7_33_1_, department3_.coordinates as coordina8_33_1_, department3_.do_dep as do9_33_1_, department3_.is_ebf as is10_33_1_, department3_.equeue_enabled as equeue11_33_1_, department3_.ext_spu_id as ext12_33_1_, department3_.frgu_code as frgu13_33_1_, department3_.gisgmp_code as gisgmp14_33_1_, department3_.gisgmp_main_dep_id as gisgmp23_33_1_, department3_.gisgmp_role as gisgmp15_33_1_, department3_.inn as inn33_1_, department3_.kpp as kpp33_1_, department3_.name as name33_1_, department3_.ogrn as ogrn33_1_, department3_.oktmo as oktmo33_1_, department3_.parent_dep_id as parent24_33_1_, department3_.phone as phone33_1_, department3_.share_conv as share22_33_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id | 0 | 291 | 11 | 22 | 4 | 0.00 |
select adapters0_.user_id as user1_24_0_, adapters0_.adapter_id as adapter2_0_, adapters0_.adapter_type as adapter3_0_ from adp_user_adapters adapters0_ where adapters0_.user_id=? | 0 | 6,883 | 0 | 33 | 1 | 0.00 |
select containsus0_.parent_id as parent1_24_2_, containsus0_.child_id as child2_2_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_ from adp_user_contains containsus0_ inner join adp_user user1_ on containsus0_.child_id=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where containsus0_.parent_id=? | 0 | 9,608 | 0 | 10 | 0 | 0.00 |
select containsus0_.parent_id as parent1_22_2_, containsus0_.child_id as child2_2_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_ from adp_user_contains containsus0_ inner join adp_user user1_ on containsus0_.child_id=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where containsus0_.parent_id=? | 0 | 7,561 | 0 | 23 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 42 | 72 | 135 | 18 | 0.00 |
select this_.id as id11_2_, this_.adconstruct_enabled as adconstr2_11_2_, this_.address as address11_2_, this_.aggregator_disabled as aggregator4_11_2_, this_.bank_acc as bank5_11_2_, this_.bic as bic11_2_, this_.business_hours as business7_11_2_, this_.coordinates as coordina8_11_2_, this_.do_dep as do9_11_2_, this_.is_ebf as is10_11_2_, this_.equeue_enabled as equeue11_11_2_, this_.ext_spu_id as ext12_11_2_, this_.frgu_code as frgu13_11_2_, this_.gisgmp_code as gisgmp14_11_2_, this_.gisgmp_main_dep_id as gisgmp23_11_2_, this_.gisgmp_role as gisgmp15_11_2_, this_.inn as inn11_2_, this_.kpp as kpp11_2_, this_.name as name11_2_, this_.ogrn as ogrn11_2_, this_.oktmo as oktmo11_2_, this_.parent_dep_id as parent24_11_2_, this_.phone as phone11_2_, this_.share_conv as share22_11_2_, department2_.id as id11_0_, department2_.adconstruct_enabled as adconstr2_11_0_, department2_.address as address11_0_, department2_.aggregator_disabled as aggregator4_11_0_, department2_.bank_acc as bank5_11_0_, department2_.bic as bic11_0_, department2_.business_hours as business7_11_0_, department2_.coordinates as coordina8_11_0_, department2_.do_dep as do9_11_0_, department2_.is_ebf as is10_11_0_, department2_.equeue_enabled as equeue11_11_0_, department2_.ext_spu_id as ext12_11_0_, department2_.frgu_code as frgu13_11_0_, department2_.gisgmp_code as gisgmp14_11_0_, department2_.gisgmp_main_dep_id as gisgmp23_11_0_, department2_.gisgmp_role as gisgmp15_11_0_, department2_.inn as inn11_0_, department2_.kpp as kpp11_0_, department2_.name as name11_0_, department2_.ogrn as ogrn11_0_, department2_.oktmo as oktmo11_0_, department2_.parent_dep_id as parent24_11_0_, department2_.phone as phone11_0_, department2_.share_conv as share22_11_0_, department3_.id as id11_1_, department3_.adconstruct_enabled as adconstr2_11_1_, department3_.address as address11_1_, department3_.aggregator_disabled as aggregator4_11_1_, department3_.bank_acc as bank5_11_1_, department3_.bic as bic11_1_, department3_.business_hours as business7_11_1_, department3_.coordinates as coordina8_11_1_, department3_.do_dep as do9_11_1_, department3_.is_ebf as is10_11_1_, department3_.equeue_enabled as equeue11_11_1_, department3_.ext_spu_id as ext12_11_1_, department3_.frgu_code as frgu13_11_1_, department3_.gisgmp_code as gisgmp14_11_1_, department3_.gisgmp_main_dep_id as gisgmp23_11_1_, department3_.gisgmp_role as gisgmp15_11_1_, department3_.inn as inn11_1_, department3_.kpp as kpp11_1_, department3_.name as name11_1_, department3_.ogrn as ogrn11_1_, department3_.oktmo as oktmo11_1_, department3_.parent_dep_id as parent24_11_1_, department3_.phone as phone11_1_, department3_.share_conv as share22_11_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id | 0 | 274 | 10 | 20 | 2 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where length(coalesce(this_.email, '')) > 0 and this_.email like '%_@_%_.__%' and this_.no_emails=? and this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) | 0 | 771 | 3 | 68 | 5 | 0.00 |
select templateen0_.adapter_id as adapter1_34_0_, templateen0_.template as template34_0_ from adp_template templateen0_ where templateen0_.adapter_id=? | 0 | 10,072 | 0 | 6 | 0 | 0.00 |
select this_.id as y0_ from adp_conversation_out this_ where this_.endpoint in (?, ?, ?, ?, ?, ?) and this_.status in (?, ?, ?) and CURRENT_TIMESTAMP - request_date < interval '30' day order by this_.response_timestamp asc | 0 | 1,095 | 2 | 154 | 5 | 0.00 |
select this_.id as id34_2_, this_.created_at as created2_34_2_, this_.data as data34_2_, this_.last_updated as last4_34_2_, this_.message as message34_2_, this_.owner_id as owner9_34_2_, this_.stack_trace as stack6_34_2_, this_.status as status34_2_, this_.title as title34_2_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_, user3_.id as id24_1_, user3_.cert_fingerprint as cert2_24_1_, user3_.created_at as created3_24_1_, user3_.department as department24_1_, user3_.email as email24_1_, user3_.first_name as first6_24_1_, user3_.gisgmp_department as gisgmp7_24_1_, user3_.inherit_adapters as inherit8_24_1_, user3_.last_name as last9_24_1_, user3_.last_updated as last10_24_1_, user3_.middle_name as middle11_24_1_, user3_.mnemonic as mnemonic24_1_, user3_.no_emails as no13_24_1_, user3_.owner as owner24_1_, user3_.passwd as passwd24_1_, user3_.phone as phone24_1_, user3_.position as position24_1_, user3_.region as region24_1_, user3_.passwd_salt as passwd18_24_1_, user3_.snils as snils24_1_, user3_.username as username24_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.last_updated>=? order by this_.last_updated desc | 0 | 5,498 | 0 | 29 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 237 | 11 | 508 | 36 | 0.00 |
select department0_.adapter_id as adapter1_29_0_, department0_.department as department0_ from adp_dynamic_adapter_dpt department0_ where department0_.adapter_id=? | 0 | 5,000 | 0 | 41 | 0 | 0.00 |
select oktmo0_.user_id as user1_22_0_, oktmo0_.oktmo as oktmo0_ from adp_user_oktmo oktmo0_ where oktmo0_.user_id=? | 0 | 12,880 | 0 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 40 | 61 | 259 | 55 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 42 | 58 | 493 | 74 | 0.00 |
select this_.id as id29_0_, this_.adapter_id as adapter2_29_0_, this_.deprecated as deprecated29_0_, this_.mnemonic as mnemonic29_0_, this_.name as name29_0_, this_.region as region29_0_, this_.request_ui as request7_29_0_, this_.resp_subj_sign as resp8_29_0_, this_.response_ui as response9_29_0_, this_.sc_query as sc10_29_0_, this_.supp_subj_sign as supp11_29_0_ from adp_dynamic_adapter this_ where this_.adapter_id=? | 0 | 4,998 | 0 | 41 | 0 | 0.00 |
select this_.id as id33_2_, this_.adconstruct_enabled as adconstr2_33_2_, this_.address as address33_2_, this_.aggregator_disabled as aggregator4_33_2_, this_.bank_acc as bank5_33_2_, this_.bic as bic33_2_, this_.business_hours as business7_33_2_, this_.coordinates as coordina8_33_2_, this_.do_dep as do9_33_2_, this_.is_ebf as is10_33_2_, this_.equeue_enabled as equeue11_33_2_, this_.ext_spu_id as ext12_33_2_, this_.frgu_code as frgu13_33_2_, this_.gisgmp_code as gisgmp14_33_2_, this_.gisgmp_main_dep_id as gisgmp23_33_2_, this_.gisgmp_role as gisgmp15_33_2_, this_.inn as inn33_2_, this_.kpp as kpp33_2_, this_.name as name33_2_, this_.ogrn as ogrn33_2_, this_.oktmo as oktmo33_2_, this_.parent_dep_id as parent24_33_2_, this_.phone as phone33_2_, this_.share_conv as share22_33_2_, department2_.id as id33_0_, department2_.adconstruct_enabled as adconstr2_33_0_, department2_.address as address33_0_, department2_.aggregator_disabled as aggregator4_33_0_, department2_.bank_acc as bank5_33_0_, department2_.bic as bic33_0_, department2_.business_hours as business7_33_0_, department2_.coordinates as coordina8_33_0_, department2_.do_dep as do9_33_0_, department2_.is_ebf as is10_33_0_, department2_.equeue_enabled as equeue11_33_0_, department2_.ext_spu_id as ext12_33_0_, department2_.frgu_code as frgu13_33_0_, department2_.gisgmp_code as gisgmp14_33_0_, department2_.gisgmp_main_dep_id as gisgmp23_33_0_, department2_.gisgmp_role as gisgmp15_33_0_, department2_.inn as inn33_0_, department2_.kpp as kpp33_0_, department2_.name as name33_0_, department2_.ogrn as ogrn33_0_, department2_.oktmo as oktmo33_0_, department2_.parent_dep_id as parent24_33_0_, department2_.phone as phone33_0_, department2_.share_conv as share22_33_0_, department3_.id as id33_1_, department3_.adconstruct_enabled as adconstr2_33_1_, department3_.address as address33_1_, department3_.aggregator_disabled as aggregator4_33_1_, department3_.bank_acc as bank5_33_1_, department3_.bic as bic33_1_, department3_.business_hours as business7_33_1_, department3_.coordinates as coordina8_33_1_, department3_.do_dep as do9_33_1_, department3_.is_ebf as is10_33_1_, department3_.equeue_enabled as equeue11_33_1_, department3_.ext_spu_id as ext12_33_1_, department3_.frgu_code as frgu13_33_1_, department3_.gisgmp_code as gisgmp14_33_1_, department3_.gisgmp_main_dep_id as gisgmp23_33_1_, department3_.gisgmp_role as gisgmp15_33_1_, department3_.inn as inn33_1_, department3_.kpp as kpp33_1_, department3_.name as name33_1_, department3_.ogrn as ogrn33_1_, department3_.oktmo as oktmo33_1_, department3_.parent_dep_id as parent24_33_1_, department3_.phone as phone33_1_, department3_.share_conv as share22_33_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id where this_.parent_dep_id=? | 0 | 1,701 | 1 | 10 | 1 | 0.00 |
select dictionary0_.id as id6_2_, dictionary0_.author as author6_2_, dictionary0_.name_ as name2_6_2_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_, user2_.id as id0_1_, user2_.cert_fingerprint as cert2_0_1_, user2_.created_at as created3_0_1_, user2_.department as department0_1_, user2_.email as email0_1_, user2_.first_name as first6_0_1_, user2_.gisgmp_department as gisgmp7_0_1_, user2_.inherit_adapters as inherit8_0_1_, user2_.last_name as last9_0_1_, user2_.last_updated as last10_0_1_, user2_.middle_name as middle11_0_1_, user2_.mnemonic as mnemonic0_1_, user2_.no_emails as no13_0_1_, user2_.owner as owner0_1_, user2_.passwd as passwd0_1_, user2_.phone as phone0_1_, user2_.position as position0_1_, user2_.region as region0_1_, user2_.passwd_salt as passwd18_0_1_, user2_.snils as snils0_1_, user2_.username as username0_1_, documents3_.Dictionary_id as Dictionary1_6_4_, documents3_.document as document4_ from ADP_DICTIONARY dictionary0_ left outer join adp_user user1_ on dictionary0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_dictionary_documents documents3_ on dictionary0_.id=documents3_.Dictionary_id where dictionary0_.id=? | 0 | 3,126 | 0 | 55 | 2 | 0.00 |
select dictionary0_.id as id8_2_, dictionary0_.author as author8_2_, dictionary0_.name_ as name2_8_2_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_, documents3_.Dictionary_id as Dictionary1_8_4_, documents3_.document as document4_ from ADP_DICTIONARY dictionary0_ left outer join adp_user user1_ on dictionary0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_dictionary_documents documents3_ on dictionary0_.id=documents3_.Dictionary_id where dictionary0_.id=? | 0 | 2,838 | 0 | 30 | 2 | 0.00 |
select this_.id as id9_2_, this_.adconstruct_enabled as adconstr2_9_2_, this_.address as address9_2_, this_.aggregator_disabled as aggregator4_9_2_, this_.bank_acc as bank5_9_2_, this_.bic as bic9_2_, this_.business_hours as business7_9_2_, this_.coordinates as coordina8_9_2_, this_.do_dep as do9_9_2_, this_.is_ebf as is10_9_2_, this_.equeue_enabled as equeue11_9_2_, this_.ext_spu_id as ext12_9_2_, this_.frgu_code as frgu13_9_2_, this_.gisgmp_code as gisgmp14_9_2_, this_.gisgmp_main_dep_id as gisgmp23_9_2_, this_.gisgmp_role as gisgmp15_9_2_, this_.inn as inn9_2_, this_.kpp as kpp9_2_, this_.name as name9_2_, this_.ogrn as ogrn9_2_, this_.oktmo as oktmo9_2_, this_.parent_dep_id as parent24_9_2_, this_.phone as phone9_2_, this_.share_conv as share22_9_2_, department2_.id as id9_0_, department2_.adconstruct_enabled as adconstr2_9_0_, department2_.address as address9_0_, department2_.aggregator_disabled as aggregator4_9_0_, department2_.bank_acc as bank5_9_0_, department2_.bic as bic9_0_, department2_.business_hours as business7_9_0_, department2_.coordinates as coordina8_9_0_, department2_.do_dep as do9_9_0_, department2_.is_ebf as is10_9_0_, department2_.equeue_enabled as equeue11_9_0_, department2_.ext_spu_id as ext12_9_0_, department2_.frgu_code as frgu13_9_0_, department2_.gisgmp_code as gisgmp14_9_0_, department2_.gisgmp_main_dep_id as gisgmp23_9_0_, department2_.gisgmp_role as gisgmp15_9_0_, department2_.inn as inn9_0_, department2_.kpp as kpp9_0_, department2_.name as name9_0_, department2_.ogrn as ogrn9_0_, department2_.oktmo as oktmo9_0_, department2_.parent_dep_id as parent24_9_0_, department2_.phone as phone9_0_, department2_.share_conv as share22_9_0_, department3_.id as id9_1_, department3_.adconstruct_enabled as adconstr2_9_1_, department3_.address as address9_1_, department3_.aggregator_disabled as aggregator4_9_1_, department3_.bank_acc as bank5_9_1_, department3_.bic as bic9_1_, department3_.business_hours as business7_9_1_, department3_.coordinates as coordina8_9_1_, department3_.do_dep as do9_9_1_, department3_.is_ebf as is10_9_1_, department3_.equeue_enabled as equeue11_9_1_, department3_.ext_spu_id as ext12_9_1_, department3_.frgu_code as frgu13_9_1_, department3_.gisgmp_code as gisgmp14_9_1_, department3_.gisgmp_main_dep_id as gisgmp23_9_1_, department3_.gisgmp_role as gisgmp15_9_1_, department3_.inn as inn9_1_, department3_.kpp as kpp9_1_, department3_.name as name9_1_, department3_.ogrn as ogrn9_1_, department3_.oktmo as oktmo9_1_, department3_.parent_dep_id as parent24_9_1_, department3_.phone as phone9_1_, department3_.share_conv as share22_9_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id where this_.parent_dep_id=? | 0 | 1,411 | 1 | 11 | 1 | 0.00 |
select adapters0_.user_id as user1_22_0_, adapters0_.adapter_id as adapter2_0_, adapters0_.adapter_type as adapter3_0_ from adp_user_adapters adapters0_ where adapters0_.user_id=? | 0 | 4,887 | 0 | 23 | 1 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) and this_.department = ? | 0 | 1,868 | 1 | 674 | 15 | 0.00 |
select roles0_.user_id as user1_2_0_, roles0_.role_name as role2_0_ from adp_user_roles roles0_ where roles0_.user_id=? | 0 | 5,711 | 0 | 20 | 0 | 0.00 |
select oktmo0_.user_id as user1_0_0_, oktmo0_.oktmo as oktmo0_ from adp_user_oktmo oktmo0_ where oktmo0_.user_id=? | 0 | 10,521 | 0 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 18 | 88 | 258 | 51 | 0.00 |
select templateen0_.adapter_id as adapter1_12_0_, templateen0_.template as template12_0_ from adp_template templateen0_ where templateen0_.adapter_id=? | 0 | 7,222 | 0 | 4 | 0 | 0.00 |
select containsus0_.parent_id as parent1_2_2_, containsus0_.child_id as child2_2_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_ from adp_user_contains containsus0_ inner join adp_user user1_ on containsus0_.child_id=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where containsus0_.parent_id=? | 0 | 2,866 | 0 | 18 | 0 | 0.00 |
select roles0_.user_id as user1_0_0_, roles0_.role_name as role2_0_ from adp_user_roles roles0_ where roles0_.user_id=? | 0 | 4,978 | 0 | 3 | 0 | 0.00 |
select containsus0_.parent_id as parent1_0_2_, containsus0_.child_id as child2_2_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_, user2_.id as id0_1_, user2_.cert_fingerprint as cert2_0_1_, user2_.created_at as created3_0_1_, user2_.department as department0_1_, user2_.email as email0_1_, user2_.first_name as first6_0_1_, user2_.gisgmp_department as gisgmp7_0_1_, user2_.inherit_adapters as inherit8_0_1_, user2_.last_name as last9_0_1_, user2_.last_updated as last10_0_1_, user2_.middle_name as middle11_0_1_, user2_.mnemonic as mnemonic0_1_, user2_.no_emails as no13_0_1_, user2_.owner as owner0_1_, user2_.passwd as passwd0_1_, user2_.phone as phone0_1_, user2_.position as position0_1_, user2_.region as region0_1_, user2_.passwd_salt as passwd18_0_1_, user2_.snils as snils0_1_, user2_.username as username0_1_ from adp_user_contains containsus0_ inner join adp_user user1_ on containsus0_.child_id=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id where containsus0_.parent_id=? | 0 | 3,245 | 0 | 4 | 0 | 0.00 |
select this_.id as id32_2_, this_.created_at as created2_32_2_, this_.data as data32_2_, this_.last_updated as last4_32_2_, this_.message as message32_2_, this_.owner_id as owner9_32_2_, this_.stack_trace as stack6_32_2_, this_.status as status32_2_, this_.title as title32_2_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_, user3_.id as id22_1_, user3_.cert_fingerprint as cert2_22_1_, user3_.created_at as created3_22_1_, user3_.department as department22_1_, user3_.email as email22_1_, user3_.first_name as first6_22_1_, user3_.gisgmp_department as gisgmp7_22_1_, user3_.inherit_adapters as inherit8_22_1_, user3_.last_name as last9_22_1_, user3_.last_updated as last10_22_1_, user3_.middle_name as middle11_22_1_, user3_.mnemonic as mnemonic22_1_, user3_.no_emails as no13_22_1_, user3_.owner as owner22_1_, user3_.passwd as passwd22_1_, user3_.phone as phone22_1_, user3_.position as position22_1_, user3_.region as region22_1_, user3_.passwd_salt as passwd18_22_1_, user3_.snils as snils22_1_, user3_.username as username22_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.last_updated>=? order by this_.last_updated desc | 0 | 2,462 | 0 | 11 | 0 | 0.00 |
select this_.id as id31_2_, this_.adconstruct_enabled as adconstr2_31_2_, this_.address as address31_2_, this_.aggregator_disabled as aggregator4_31_2_, this_.bank_acc as bank5_31_2_, this_.bic as bic31_2_, this_.business_hours as business7_31_2_, this_.coordinates as coordina8_31_2_, this_.do_dep as do9_31_2_, this_.is_ebf as is10_31_2_, this_.equeue_enabled as equeue11_31_2_, this_.ext_spu_id as ext12_31_2_, this_.frgu_code as frgu13_31_2_, this_.gisgmp_code as gisgmp14_31_2_, this_.gisgmp_main_dep_id as gisgmp23_31_2_, this_.gisgmp_role as gisgmp15_31_2_, this_.inn as inn31_2_, this_.kpp as kpp31_2_, this_.name as name31_2_, this_.ogrn as ogrn31_2_, this_.oktmo as oktmo31_2_, this_.parent_dep_id as parent24_31_2_, this_.phone as phone31_2_, this_.share_conv as share22_31_2_, department2_.id as id31_0_, department2_.adconstruct_enabled as adconstr2_31_0_, department2_.address as address31_0_, department2_.aggregator_disabled as aggregator4_31_0_, department2_.bank_acc as bank5_31_0_, department2_.bic as bic31_0_, department2_.business_hours as business7_31_0_, department2_.coordinates as coordina8_31_0_, department2_.do_dep as do9_31_0_, department2_.is_ebf as is10_31_0_, department2_.equeue_enabled as equeue11_31_0_, department2_.ext_spu_id as ext12_31_0_, department2_.frgu_code as frgu13_31_0_, department2_.gisgmp_code as gisgmp14_31_0_, department2_.gisgmp_main_dep_id as gisgmp23_31_0_, department2_.gisgmp_role as gisgmp15_31_0_, department2_.inn as inn31_0_, department2_.kpp as kpp31_0_, department2_.name as name31_0_, department2_.ogrn as ogrn31_0_, department2_.oktmo as oktmo31_0_, department2_.parent_dep_id as parent24_31_0_, department2_.phone as phone31_0_, department2_.share_conv as share22_31_0_, department3_.id as id31_1_, department3_.adconstruct_enabled as adconstr2_31_1_, department3_.address as address31_1_, department3_.aggregator_disabled as aggregator4_31_1_, department3_.bank_acc as bank5_31_1_, department3_.bic as bic31_1_, department3_.business_hours as business7_31_1_, department3_.coordinates as coordina8_31_1_, department3_.do_dep as do9_31_1_, department3_.is_ebf as is10_31_1_, department3_.equeue_enabled as equeue11_31_1_, department3_.ext_spu_id as ext12_31_1_, department3_.frgu_code as frgu13_31_1_, department3_.gisgmp_code as gisgmp14_31_1_, department3_.gisgmp_main_dep_id as gisgmp23_31_1_, department3_.gisgmp_role as gisgmp15_31_1_, department3_.inn as inn31_1_, department3_.kpp as kpp31_1_, department3_.name as name31_1_, department3_.ogrn as ogrn31_1_, department3_.oktmo as oktmo31_1_, department3_.parent_dep_id as parent24_31_1_, department3_.phone as phone31_1_, department3_.share_conv as share22_31_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id where this_.parent_dep_id=? | 0 | 872 | 1 | 9 | 1 | 0.00 |
select sum(t.cnt) from ( select count(*) cnt from adp_conversation_in c where c.status in ('ACCEPT', 'PROCESS') and c.request_date <= ? union all select count(*) cnt from adp_conversation_ext ext where ext.is_incoming = '1' and ext.status in ('ACCEPT', 'PROCESS') and ext.request_date <= ? ) t
| 0 | 1 | 1,245 | 1,245 | 0 | 0.00 |
select adapters0_.user_id as user1_0_0_, adapters0_.adapter_id as adapter2_0_, adapters0_.adapter_type as adapter3_0_ from adp_user_adapters adapters0_ where adapters0_.user_id=? | 0 | 2,126 | 0 | 10 | 1 | 0.00 |
select adapters0_.user_id as user1_2_0_, adapters0_.adapter_id as adapter2_0_, adapters0_.adapter_type as adapter3_0_ from adp_user_adapters adapters0_ where adapters0_.user_id=? | 0 | 1,767 | 0 | 66 | 2 | 0.00 |
select this_.id as id11_2_, this_.adconstruct_enabled as adconstr2_11_2_, this_.address as address11_2_, this_.aggregator_disabled as aggregator4_11_2_, this_.bank_acc as bank5_11_2_, this_.bic as bic11_2_, this_.business_hours as business7_11_2_, this_.coordinates as coordina8_11_2_, this_.do_dep as do9_11_2_, this_.is_ebf as is10_11_2_, this_.equeue_enabled as equeue11_11_2_, this_.ext_spu_id as ext12_11_2_, this_.frgu_code as frgu13_11_2_, this_.gisgmp_code as gisgmp14_11_2_, this_.gisgmp_main_dep_id as gisgmp23_11_2_, this_.gisgmp_role as gisgmp15_11_2_, this_.inn as inn11_2_, this_.kpp as kpp11_2_, this_.name as name11_2_, this_.ogrn as ogrn11_2_, this_.oktmo as oktmo11_2_, this_.parent_dep_id as parent24_11_2_, this_.phone as phone11_2_, this_.share_conv as share22_11_2_, department2_.id as id11_0_, department2_.adconstruct_enabled as adconstr2_11_0_, department2_.address as address11_0_, department2_.aggregator_disabled as aggregator4_11_0_, department2_.bank_acc as bank5_11_0_, department2_.bic as bic11_0_, department2_.business_hours as business7_11_0_, department2_.coordinates as coordina8_11_0_, department2_.do_dep as do9_11_0_, department2_.is_ebf as is10_11_0_, department2_.equeue_enabled as equeue11_11_0_, department2_.ext_spu_id as ext12_11_0_, department2_.frgu_code as frgu13_11_0_, department2_.gisgmp_code as gisgmp14_11_0_, department2_.gisgmp_main_dep_id as gisgmp23_11_0_, department2_.gisgmp_role as gisgmp15_11_0_, department2_.inn as inn11_0_, department2_.kpp as kpp11_0_, department2_.name as name11_0_, department2_.ogrn as ogrn11_0_, department2_.oktmo as oktmo11_0_, department2_.parent_dep_id as parent24_11_0_, department2_.phone as phone11_0_, department2_.share_conv as share22_11_0_, department3_.id as id11_1_, department3_.adconstruct_enabled as adconstr2_11_1_, department3_.address as address11_1_, department3_.aggregator_disabled as aggregator4_11_1_, department3_.bank_acc as bank5_11_1_, department3_.bic as bic11_1_, department3_.business_hours as business7_11_1_, department3_.coordinates as coordina8_11_1_, department3_.do_dep as do9_11_1_, department3_.is_ebf as is10_11_1_, department3_.equeue_enabled as equeue11_11_1_, department3_.ext_spu_id as ext12_11_1_, department3_.frgu_code as frgu13_11_1_, department3_.gisgmp_code as gisgmp14_11_1_, department3_.gisgmp_main_dep_id as gisgmp23_11_1_, department3_.gisgmp_role as gisgmp15_11_1_, department3_.inn as inn11_1_, department3_.kpp as kpp11_1_, department3_.name as name11_1_, department3_.ogrn as ogrn11_1_, department3_.oktmo as oktmo11_1_, department3_.parent_dep_id as parent24_11_1_, department3_.phone as phone11_1_, department3_.share_conv as share22_11_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id where this_.parent_dep_id=? | 0 | 873 | 1 | 23 | 1 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 1,219 | 0 | 15 | 1 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) and this_.department = ? | 0 | 1,917 | 0 | 13 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 242 | 4 | 16 | 3 | 0.00 |
select templateen0_.adapter_id as adapter1_14_0_, templateen0_.template as template14_0_ from adp_template templateen0_ where templateen0_.adapter_id=? | 0 | 3,408 | 0 | 11 | 0 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) and this_.department = ? | 0 | 771 | 1 | 15 | 1 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 161 | 6 | 18 | 3 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 18 | 55 | 335 | 78 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name from adp_user u where u.region = ? and ( exists(select 1 from adp_user_adapters a where a.user_id = u.id and a.adapter_id = ?) or (u.inherit_adapters = '1' and u.owner is not null and exists(select 1 from adp_user_adapters a where a.user_id = u.owner and a.adapter_id = ?)) or exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) or exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) ) and not exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) | 0 | 397 | 2 | 16 | 1 | 0.00 |
select this_.id as id10_3_, this_.department_id as department17_10_3_, this_.done_by_days as done2_10_3_, this_.done_by_days_kind as done3_10_3_, this_.equeue_delay_days as equeue4_10_3_, this_.equeue_enabled as equeue5_10_3_, this_.event_service_url as event6_10_3_, this_.form_id as form7_10_3_, this_.payment_enabled as payment8_10_3_, this_.req_tag_name as req9_10_3_, this_.req_tag_ns as req10_10_3_, this_.request_xslt as request11_10_3_, this_.resp_tag_name as resp12_10_3_, this_.resp_tag_ns as resp13_10_3_, this_.service_code as service14_10_3_, this_.name as name10_3_, this_.smev_version as smev16_10_3_, department2_.id as id11_0_, department2_.adconstruct_enabled as adconstr2_11_0_, department2_.address as address11_0_, department2_.aggregator_disabled as aggregator4_11_0_, department2_.bank_acc as bank5_11_0_, department2_.bic as bic11_0_, department2_.business_hours as business7_11_0_, department2_.coordinates as coordina8_11_0_, department2_.do_dep as do9_11_0_, department2_.is_ebf as is10_11_0_, department2_.equeue_enabled as equeue11_11_0_, department2_.ext_spu_id as ext12_11_0_, department2_.frgu_code as frgu13_11_0_, department2_.gisgmp_code as gisgmp14_11_0_, department2_.gisgmp_main_dep_id as gisgmp23_11_0_, department2_.gisgmp_role as gisgmp15_11_0_, department2_.inn as inn11_0_, department2_.kpp as kpp11_0_, department2_.name as name11_0_, department2_.ogrn as ogrn11_0_, department2_.oktmo as oktmo11_0_, department2_.parent_dep_id as parent24_11_0_, department2_.phone as phone11_0_, department2_.share_conv as share22_11_0_, department3_.id as id11_1_, department3_.adconstruct_enabled as adconstr2_11_1_, department3_.address as address11_1_, department3_.aggregator_disabled as aggregator4_11_1_, department3_.bank_acc as bank5_11_1_, department3_.bic as bic11_1_, department3_.business_hours as business7_11_1_, department3_.coordinates as coordina8_11_1_, department3_.do_dep as do9_11_1_, department3_.is_ebf as is10_11_1_, department3_.equeue_enabled as equeue11_11_1_, department3_.ext_spu_id as ext12_11_1_, department3_.frgu_code as frgu13_11_1_, department3_.gisgmp_code as gisgmp14_11_1_, department3_.gisgmp_main_dep_id as gisgmp23_11_1_, department3_.gisgmp_role as gisgmp15_11_1_, department3_.inn as inn11_1_, department3_.kpp as kpp11_1_, department3_.name as name11_1_, department3_.ogrn as ogrn11_1_, department3_.oktmo as oktmo11_1_, department3_.parent_dep_id as parent24_11_1_, department3_.phone as phone11_1_, department3_.share_conv as share22_11_1_, department4_.id as id11_2_, department4_.adconstruct_enabled as adconstr2_11_2_, department4_.address as address11_2_, department4_.aggregator_disabled as aggregator4_11_2_, department4_.bank_acc as bank5_11_2_, department4_.bic as bic11_2_, department4_.business_hours as business7_11_2_, department4_.coordinates as coordina8_11_2_, department4_.do_dep as do9_11_2_, department4_.is_ebf as is10_11_2_, department4_.equeue_enabled as equeue11_11_2_, department4_.ext_spu_id as ext12_11_2_, department4_.frgu_code as frgu13_11_2_, department4_.gisgmp_code as gisgmp14_11_2_, department4_.gisgmp_main_dep_id as gisgmp23_11_2_, department4_.gisgmp_role as gisgmp15_11_2_, department4_.inn as inn11_2_, department4_.kpp as kpp11_2_, department4_.name as name11_2_, department4_.ogrn as ogrn11_2_, department4_.oktmo as oktmo11_2_, department4_.parent_dep_id as parent24_11_2_, department4_.phone as phone11_2_, department4_.share_conv as share22_11_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id where this_.service_code=? | 0 | 1,868 | 0 | 9 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 1,219 | 0 | 5 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by this_.created_at desc limit ? offset ? | 0 | 137 | 6 | 12 | 1 | 0.00 |
select this_.id as id9_0_, this_.adapter_id as adapter2_9_0_, this_.deprecated as deprecated9_0_, this_.mnemonic as mnemonic9_0_, this_.name as name9_0_, this_.region as region9_0_, this_.request_ui as request7_9_0_, this_.resp_subj_sign as resp8_9_0_, this_.response_ui as response9_9_0_, this_.sc_query as sc10_9_0_, this_.supp_subj_sign as supp11_9_0_ from adp_dynamic_adapter this_ where this_.adapter_id=? | 0 | 1,299 | 0 | 18 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 155 | 5 | 12 | 2 | 0.00 |
select autofillda0_.user_id as user1_22_0_, autofillda0_.autofill_data as autofill2_0_, autofillda0_.adapter_id as adapter3_0_ from adp_autofill_data autofillda0_ where autofillda0_.user_id=? | 0 | 2,554 | 0 | 6 | 0 | 0.00 |
select this_.id as id7_0_, this_.adapter_id as adapter2_7_0_, this_.deprecated as deprecated7_0_, this_.mnemonic as mnemonic7_0_, this_.name as name7_0_, this_.region as region7_0_, this_.request_ui as request7_7_0_, this_.resp_subj_sign as resp8_7_0_, this_.response_ui as response9_7_0_, this_.sc_query as sc10_7_0_, this_.supp_subj_sign as supp11_7_0_ from adp_dynamic_adapter this_ where this_.adapter_id=? | 0 | 1,496 | 0 | 4 | 0 | 0.00 |
select this_.id as id32_3_, this_.department_id as department17_32_3_, this_.done_by_days as done2_32_3_, this_.done_by_days_kind as done3_32_3_, this_.equeue_delay_days as equeue4_32_3_, this_.equeue_enabled as equeue5_32_3_, this_.event_service_url as event6_32_3_, this_.form_id as form7_32_3_, this_.payment_enabled as payment8_32_3_, this_.req_tag_name as req9_32_3_, this_.req_tag_ns as req10_32_3_, this_.request_xslt as request11_32_3_, this_.resp_tag_name as resp12_32_3_, this_.resp_tag_ns as resp13_32_3_, this_.service_code as service14_32_3_, this_.name as name32_3_, this_.smev_version as smev16_32_3_, department2_.id as id33_0_, department2_.adconstruct_enabled as adconstr2_33_0_, department2_.address as address33_0_, department2_.aggregator_disabled as aggregator4_33_0_, department2_.bank_acc as bank5_33_0_, department2_.bic as bic33_0_, department2_.business_hours as business7_33_0_, department2_.coordinates as coordina8_33_0_, department2_.do_dep as do9_33_0_, department2_.is_ebf as is10_33_0_, department2_.equeue_enabled as equeue11_33_0_, department2_.ext_spu_id as ext12_33_0_, department2_.frgu_code as frgu13_33_0_, department2_.gisgmp_code as gisgmp14_33_0_, department2_.gisgmp_main_dep_id as gisgmp23_33_0_, department2_.gisgmp_role as gisgmp15_33_0_, department2_.inn as inn33_0_, department2_.kpp as kpp33_0_, department2_.name as name33_0_, department2_.ogrn as ogrn33_0_, department2_.oktmo as oktmo33_0_, department2_.parent_dep_id as parent24_33_0_, department2_.phone as phone33_0_, department2_.share_conv as share22_33_0_, department3_.id as id33_1_, department3_.adconstruct_enabled as adconstr2_33_1_, department3_.address as address33_1_, department3_.aggregator_disabled as aggregator4_33_1_, department3_.bank_acc as bank5_33_1_, department3_.bic as bic33_1_, department3_.business_hours as business7_33_1_, department3_.coordinates as coordina8_33_1_, department3_.do_dep as do9_33_1_, department3_.is_ebf as is10_33_1_, department3_.equeue_enabled as equeue11_33_1_, department3_.ext_spu_id as ext12_33_1_, department3_.frgu_code as frgu13_33_1_, department3_.gisgmp_code as gisgmp14_33_1_, department3_.gisgmp_main_dep_id as gisgmp23_33_1_, department3_.gisgmp_role as gisgmp15_33_1_, department3_.inn as inn33_1_, department3_.kpp as kpp33_1_, department3_.name as name33_1_, department3_.ogrn as ogrn33_1_, department3_.oktmo as oktmo33_1_, department3_.parent_dep_id as parent24_33_1_, department3_.phone as phone33_1_, department3_.share_conv as share22_33_1_, department4_.id as id33_2_, department4_.adconstruct_enabled as adconstr2_33_2_, department4_.address as address33_2_, department4_.aggregator_disabled as aggregator4_33_2_, department4_.bank_acc as bank5_33_2_, department4_.bic as bic33_2_, department4_.business_hours as business7_33_2_, department4_.coordinates as coordina8_33_2_, department4_.do_dep as do9_33_2_, department4_.is_ebf as is10_33_2_, department4_.equeue_enabled as equeue11_33_2_, department4_.ext_spu_id as ext12_33_2_, department4_.frgu_code as frgu13_33_2_, department4_.gisgmp_code as gisgmp14_33_2_, department4_.gisgmp_main_dep_id as gisgmp23_33_2_, department4_.gisgmp_role as gisgmp15_33_2_, department4_.inn as inn33_2_, department4_.kpp as kpp33_2_, department4_.name as name33_2_, department4_.ogrn as ogrn33_2_, department4_.oktmo as oktmo33_2_, department4_.parent_dep_id as parent24_33_2_, department4_.phone as phone33_2_, department4_.share_conv as share22_33_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id where this_.service_code=? | 0 | 771 | 0 | 6 | 0 | 0.00 |
select department0_.adapter_id as adapter1_7_0_, department0_.department as department0_ from adp_dynamic_adapter_dpt department0_ where department0_.adapter_id=? | 0 | 1,501 | 0 | 41 | 1 | 0.00 |
select department0_.adapter_id as adapter1_9_0_, department0_.department as department0_ from adp_dynamic_adapter_dpt department0_ where department0_.adapter_id=? | 0 | 1,330 | 0 | 14 | 0 | 0.00 |
select this_.id as id12_2_, this_.created_at as created2_12_2_, this_.data as data12_2_, this_.last_updated as last4_12_2_, this_.message as message12_2_, this_.owner_id as owner9_12_2_, this_.stack_trace as stack6_12_2_, this_.status as status12_2_, this_.title as title12_2_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_, user3_.id as id2_1_, user3_.cert_fingerprint as cert2_2_1_, user3_.created_at as created3_2_1_, user3_.department as department2_1_, user3_.email as email2_1_, user3_.first_name as first6_2_1_, user3_.gisgmp_department as gisgmp7_2_1_, user3_.inherit_adapters as inherit8_2_1_, user3_.last_name as last9_2_1_, user3_.last_updated as last10_2_1_, user3_.middle_name as middle11_2_1_, user3_.mnemonic as mnemonic2_1_, user3_.no_emails as no13_2_1_, user3_.owner as owner2_1_, user3_.passwd as passwd2_1_, user3_.phone as phone2_1_, user3_.position as position2_1_, user3_.region as region2_1_, user3_.passwd_salt as passwd18_2_1_, user3_.snils as snils2_1_, user3_.username as username2_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.last_updated>=? order by this_.last_updated desc | 0 | 909 | 0 | 29 | 1 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 19 | 38 | 155 | 32 | 0.00 |
select this_.id as id10_2_, this_.created_at as created2_10_2_, this_.data as data10_2_, this_.last_updated as last4_10_2_, this_.message as message10_2_, this_.owner_id as owner9_10_2_, this_.stack_trace as stack6_10_2_, this_.status as status10_2_, this_.title as title10_2_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_, user3_.id as id0_1_, user3_.cert_fingerprint as cert2_0_1_, user3_.created_at as created3_0_1_, user3_.department as department0_1_, user3_.email as email0_1_, user3_.first_name as first6_0_1_, user3_.gisgmp_department as gisgmp7_0_1_, user3_.inherit_adapters as inherit8_0_1_, user3_.last_name as last9_0_1_, user3_.last_updated as last10_0_1_, user3_.middle_name as middle11_0_1_, user3_.mnemonic as mnemonic0_1_, user3_.no_emails as no13_0_1_, user3_.owner as owner0_1_, user3_.passwd as passwd0_1_, user3_.phone as phone0_1_, user3_.position as position0_1_, user3_.region as region0_1_, user3_.passwd_salt as passwd18_0_1_, user3_.snils as snils0_1_, user3_.username as username0_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.last_updated>=? order by this_.last_updated desc | 0 | 1,096 | 0 | 3 | 0 | 0.00 |
select this_.id as id30_3_, this_.department_id as department17_30_3_, this_.done_by_days as done2_30_3_, this_.done_by_days_kind as done3_30_3_, this_.equeue_delay_days as equeue4_30_3_, this_.equeue_enabled as equeue5_30_3_, this_.event_service_url as event6_30_3_, this_.form_id as form7_30_3_, this_.payment_enabled as payment8_30_3_, this_.req_tag_name as req9_30_3_, this_.req_tag_ns as req10_30_3_, this_.request_xslt as request11_30_3_, this_.resp_tag_name as resp12_30_3_, this_.resp_tag_ns as resp13_30_3_, this_.service_code as service14_30_3_, this_.name as name30_3_, this_.smev_version as smev16_30_3_, department2_.id as id31_0_, department2_.adconstruct_enabled as adconstr2_31_0_, department2_.address as address31_0_, department2_.aggregator_disabled as aggregator4_31_0_, department2_.bank_acc as bank5_31_0_, department2_.bic as bic31_0_, department2_.business_hours as business7_31_0_, department2_.coordinates as coordina8_31_0_, department2_.do_dep as do9_31_0_, department2_.is_ebf as is10_31_0_, department2_.equeue_enabled as equeue11_31_0_, department2_.ext_spu_id as ext12_31_0_, department2_.frgu_code as frgu13_31_0_, department2_.gisgmp_code as gisgmp14_31_0_, department2_.gisgmp_main_dep_id as gisgmp23_31_0_, department2_.gisgmp_role as gisgmp15_31_0_, department2_.inn as inn31_0_, department2_.kpp as kpp31_0_, department2_.name as name31_0_, department2_.ogrn as ogrn31_0_, department2_.oktmo as oktmo31_0_, department2_.parent_dep_id as parent24_31_0_, department2_.phone as phone31_0_, department2_.share_conv as share22_31_0_, department3_.id as id31_1_, department3_.adconstruct_enabled as adconstr2_31_1_, department3_.address as address31_1_, department3_.aggregator_disabled as aggregator4_31_1_, department3_.bank_acc as bank5_31_1_, department3_.bic as bic31_1_, department3_.business_hours as business7_31_1_, department3_.coordinates as coordina8_31_1_, department3_.do_dep as do9_31_1_, department3_.is_ebf as is10_31_1_, department3_.equeue_enabled as equeue11_31_1_, department3_.ext_spu_id as ext12_31_1_, department3_.frgu_code as frgu13_31_1_, department3_.gisgmp_code as gisgmp14_31_1_, department3_.gisgmp_main_dep_id as gisgmp23_31_1_, department3_.gisgmp_role as gisgmp15_31_1_, department3_.inn as inn31_1_, department3_.kpp as kpp31_1_, department3_.name as name31_1_, department3_.ogrn as ogrn31_1_, department3_.oktmo as oktmo31_1_, department3_.parent_dep_id as parent24_31_1_, department3_.phone as phone31_1_, department3_.share_conv as share22_31_1_, department4_.id as id31_2_, department4_.adconstruct_enabled as adconstr2_31_2_, department4_.address as address31_2_, department4_.aggregator_disabled as aggregator4_31_2_, department4_.bank_acc as bank5_31_2_, department4_.bic as bic31_2_, department4_.business_hours as business7_31_2_, department4_.coordinates as coordina8_31_2_, department4_.do_dep as do9_31_2_, department4_.is_ebf as is10_31_2_, department4_.equeue_enabled as equeue11_31_2_, department4_.ext_spu_id as ext12_31_2_, department4_.frgu_code as frgu13_31_2_, department4_.gisgmp_code as gisgmp14_31_2_, department4_.gisgmp_main_dep_id as gisgmp23_31_2_, department4_.gisgmp_role as gisgmp15_31_2_, department4_.inn as inn31_2_, department4_.kpp as kpp31_2_, department4_.name as name31_2_, department4_.ogrn as ogrn31_2_, department4_.oktmo as oktmo31_2_, department4_.parent_dep_id as parent24_31_2_, department4_.phone as phone31_2_, department4_.share_conv as share22_31_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id where this_.service_code=? | 0 | 1,917 | 0 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 43 | 15 | 132 | 18 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? offset ? | 0 | 127 | 4 | 7 | 1 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.username=? | 0 | 559 | 1 | 11 | 1 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.username=? | 0 | 383 | 1 | 12 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y4_ desc limit ? offset ? | 0 | 55 | 8 | 14 | 2 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.username=? | 0 | 257 | 1 | 44 | 3 | 0.00 |
select this_.id as id9_2_, this_.adconstruct_enabled as adconstr2_9_2_, this_.address as address9_2_, this_.aggregator_disabled as aggregator4_9_2_, this_.bank_acc as bank5_9_2_, this_.bic as bic9_2_, this_.business_hours as business7_9_2_, this_.coordinates as coordina8_9_2_, this_.do_dep as do9_9_2_, this_.is_ebf as is10_9_2_, this_.equeue_enabled as equeue11_9_2_, this_.ext_spu_id as ext12_9_2_, this_.frgu_code as frgu13_9_2_, this_.gisgmp_code as gisgmp14_9_2_, this_.gisgmp_main_dep_id as gisgmp23_9_2_, this_.gisgmp_role as gisgmp15_9_2_, this_.inn as inn9_2_, this_.kpp as kpp9_2_, this_.name as name9_2_, this_.ogrn as ogrn9_2_, this_.oktmo as oktmo9_2_, this_.parent_dep_id as parent24_9_2_, this_.phone as phone9_2_, this_.share_conv as share22_9_2_, department2_.id as id9_0_, department2_.adconstruct_enabled as adconstr2_9_0_, department2_.address as address9_0_, department2_.aggregator_disabled as aggregator4_9_0_, department2_.bank_acc as bank5_9_0_, department2_.bic as bic9_0_, department2_.business_hours as business7_9_0_, department2_.coordinates as coordina8_9_0_, department2_.do_dep as do9_9_0_, department2_.is_ebf as is10_9_0_, department2_.equeue_enabled as equeue11_9_0_, department2_.ext_spu_id as ext12_9_0_, department2_.frgu_code as frgu13_9_0_, department2_.gisgmp_code as gisgmp14_9_0_, department2_.gisgmp_main_dep_id as gisgmp23_9_0_, department2_.gisgmp_role as gisgmp15_9_0_, department2_.inn as inn9_0_, department2_.kpp as kpp9_0_, department2_.name as name9_0_, department2_.ogrn as ogrn9_0_, department2_.oktmo as oktmo9_0_, department2_.parent_dep_id as parent24_9_0_, department2_.phone as phone9_0_, department2_.share_conv as share22_9_0_, department3_.id as id9_1_, department3_.adconstruct_enabled as adconstr2_9_1_, department3_.address as address9_1_, department3_.aggregator_disabled as aggregator4_9_1_, department3_.bank_acc as bank5_9_1_, department3_.bic as bic9_1_, department3_.business_hours as business7_9_1_, department3_.coordinates as coordina8_9_1_, department3_.do_dep as do9_9_1_, department3_.is_ebf as is10_9_1_, department3_.equeue_enabled as equeue11_9_1_, department3_.ext_spu_id as ext12_9_1_, department3_.frgu_code as frgu13_9_1_, department3_.gisgmp_code as gisgmp14_9_1_, department3_.gisgmp_main_dep_id as gisgmp23_9_1_, department3_.gisgmp_role as gisgmp15_9_1_, department3_.inn as inn9_1_, department3_.kpp as kpp9_1_, department3_.name as name9_1_, department3_.ogrn as ogrn9_1_, department3_.oktmo as oktmo9_1_, department3_.parent_dep_id as parent24_9_1_, department3_.phone as phone9_1_, department3_.share_conv as share22_9_1_ from adp_department this_ left outer join adp_department department2_ on this_.gisgmp_main_dep_id=department2_.id left outer join adp_department department3_ on department2_.parent_dep_id=department3_.id | 0 | 30 | 13 | 38 | 7 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 128 | 3 | 9 | 1 | 0.00 |
select sum(t.cnt) from ( select count(*) cnt from adp_conversation_in c where c.status in ('ACCEPT', 'PROCESS') and c.request_date <= ? and c.oktmo like ? || '%' union all select count(*) cnt from adp_conversation_ext ext where ext.is_incoming = '1' and ext.status in ('ACCEPT', 'PROCESS') and ext.request_date <= ? and ext.oktmo like ? || '%' ) t
| 0 | 3 | 135 | 182 | 46 | 0.00 |
select autofillda0_.user_id as user1_2_0_, autofillda0_.autofill_data as autofill2_0_, autofillda0_.adapter_id as adapter3_0_ from adp_autofill_data autofillda0_ where autofillda0_.user_id=? | 0 | 940 | 0 | 11 | 1 | 0.00 |
select this_.id as id0_1_, this_.cert_fingerprint as cert2_0_1_, this_.created_at as created3_0_1_, this_.department as department0_1_, this_.email as email0_1_, this_.first_name as first6_0_1_, this_.gisgmp_department as gisgmp7_0_1_, this_.inherit_adapters as inherit8_0_1_, this_.last_name as last9_0_1_, this_.last_updated as last10_0_1_, this_.middle_name as middle11_0_1_, this_.mnemonic as mnemonic0_1_, this_.no_emails as no13_0_1_, this_.owner as owner0_1_, this_.passwd as passwd0_1_, this_.phone as phone0_1_, this_.position as position0_1_, this_.region as region0_1_, this_.passwd_salt as passwd18_0_1_, this_.snils as snils0_1_, this_.username as username0_1_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where length(coalesce(this_.email, '')) > 0 and this_.email like '%_@_%_.__%' and this_.no_emails=? and this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) | 0 | 30 | 13 | 60 | 14 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 128 | 2 | 7 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 37 | 10 | 22 | 3 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 4 | 91 | 97 | 6 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 4 | 91 | 104 | 13 | 0.00 |
select autofillda0_.user_id as user1_0_0_, autofillda0_.autofill_data as autofill2_0_, autofillda0_.adapter_id as adapter3_0_ from adp_autofill_data autofillda0_ where autofillda0_.user_id=? | 0 | 609 | 0 | 13 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by this_.created_at desc limit ? offset ? | 0 | 66 | 5 | 9 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? offset ? | 0 | 42 | 8 | 78 | 11 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? offset ? | 0 | 33 | 10 | 24 | 3 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 303 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 303 | 1 | 2 | 0 | 0.00 |
select this_.id as id34_2_, this_.created_at as created2_34_2_, this_.data as data34_2_, this_.last_updated as last4_34_2_, this_.message as message34_2_, this_.owner_id as owner9_34_2_, this_.stack_trace as stack6_34_2_, this_.status as status34_2_, this_.title as title34_2_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_, user3_.id as id24_1_, user3_.cert_fingerprint as cert2_24_1_, user3_.created_at as created3_24_1_, user3_.department as department24_1_, user3_.email as email24_1_, user3_.first_name as first6_24_1_, user3_.gisgmp_department as gisgmp7_24_1_, user3_.inherit_adapters as inherit8_24_1_, user3_.last_name as last9_24_1_, user3_.last_updated as last10_24_1_, user3_.middle_name as middle11_24_1_, user3_.mnemonic as mnemonic24_1_, user3_.no_emails as no13_24_1_, user3_.owner as owner24_1_, user3_.passwd as passwd24_1_, user3_.phone as phone24_1_, user3_.position as position24_1_, user3_.region as region24_1_, user3_.passwd_salt as passwd18_24_1_, user3_.snils as snils24_1_, user3_.username as username24_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.status in (?) order by this_.last_updated desc | 0 | 211 | 1 | 19 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?) )
| 0 | 117 | 2 | 24 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 12 | 23 | 230 | 64 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name from adp_user u where u.region = ? and ( exists(select 1 from adp_user_adapters a where a.user_id = u.id and a.adapter_id = ?) or (u.inherit_adapters = '1' and u.owner is not null and exists(select 1 from adp_user_adapters a where a.user_id = u.owner and a.adapter_id = ?)) or exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) or exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) ) and not exists(select 1 from adp_user_roles r where r.user_id = u.id and r.role_name = ?) and u.department in (?) | 0 | 66 | 4 | 27 | 5 | 0.00 |
select outgoingco0_.id as id27_7_, outgoingco0_.author as author27_7_, outgoingco0_.created_at as created2_27_7_, outgoingco0_.description as descript3_27_7_, outgoingco0_.labels as labels27_7_, outgoingco0_.last_updated as last5_27_7_, outgoingco0_.recipient_code as recipient6_27_7_, outgoingco0_.recipient_name as recipient7_27_7_, outgoingco0_.request_content as request8_27_7_, outgoingco0_.request_date as request9_27_7_, outgoingco0_.response_content as response10_27_7_, outgoingco0_.response_timestamp as response11_27_7_, outgoingco0_.sender_code as sender12_27_7_, outgoingco0_.sender_name as sender13_27_7_, outgoingco0_.service as service27_7_, outgoingco0_.sign_org as sign15_27_7_, outgoingco0_.sign_subj as sign16_27_7_, outgoingco0_.status as status27_7_, outgoingco0_.tp_number as tp18_27_7_, outgoingco0_.trans_code as trans19_27_7_, outgoingco0_.endpoint as endpoint27_7_, outgoingco0_.external_id as external21_27_7_, outgoingco0_.periodic_changed as periodic22_27_7_, outgoingco0_.periodic_req_id as periodic24_27_7_, outgoingco0_.pgu_conv_id as pgu25_27_7_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_, periodicre3_.id as id28_2_, periodicre3_.created_at as created2_28_2_, periodicre3_.fields as fields28_2_, periodicre3_.group_id as group4_28_2_, periodicre4_.id as id29_3_, periodicre4_.adapter as adapter29_3_, periodicre4_.req_first_nodelay as req3_29_3_, periodicre4_.grid_fields as grid4_29_3_, periodicre4_.name as name29_3_, periodicre4_.owner_id as owner9_29_3_, periodicre4_.req_schedule as req6_29_3_, periodicre4_.req_start as req7_29_3_, periodicre4_.response_fields as response8_29_3_, user5_.id as id24_4_, user5_.cert_fingerprint as cert2_24_4_, user5_.created_at as created3_24_4_, user5_.department as department24_4_, user5_.email as email24_4_, user5_.first_name as first6_24_4_, user5_.gisgmp_department as gisgmp7_24_4_, user5_.inherit_adapters as inherit8_24_4_, user5_.last_name as last9_24_4_, user5_.last_updated as last10_24_4_, user5_.middle_name as middle11_24_4_, user5_.mnemonic as mnemonic24_4_, user5_.no_emails as no13_24_4_, user5_.owner as owner24_4_, user5_.passwd as passwd24_4_, user5_.phone as phone24_4_, user5_.position as position24_4_, user5_.region as region24_4_, user5_.passwd_salt as passwd18_24_4_, user5_.snils as snils24_4_, user5_.username as username24_4_, incomingco6_.id as id26_5_, incomingco6_.author as author26_5_, incomingco6_.created_at as created2_26_5_, incomingco6_.description as descript3_26_5_, incomingco6_.labels as labels26_5_, incomingco6_.last_updated as last5_26_5_, incomingco6_.recipient_code as recipient6_26_5_, incomingco6_.recipient_name as recipient7_26_5_, incomingco6_.request_content as request8_26_5_, incomingco6_.request_date as request9_26_5_, incomingco6_.response_content as response10_26_5_, incomingco6_.response_timestamp as response11_26_5_, incomingco6_.sender_code as sender12_26_5_, incomingco6_.sender_name as sender13_26_5_, incomingco6_.service as service26_5_, incomingco6_.sign_org as sign15_26_5_, incomingco6_.sign_subj as sign16_26_5_, incomingco6_.status as status26_5_, incomingco6_.tp_number as tp18_26_5_, incomingco6_.trans_code as trans19_26_5_, incomingco6_.department as department26_5_, incomingco6_.done_by as done21_26_5_, incomingco6_.last_assigned as last22_26_5_, incomingco6_.oktmo as oktmo26_5_, incomingco6_.reg_date as reg24_26_5_, incomingco6_.reg_number as reg25_26_5_, incomingco6_.rpgu_created_at as rpgu26_26_5_, incomingco6_.service_code as service27_26_5_, user7_.id as id24_6_, user7_.cert_fingerprint as cert2_24_6_, user7_.created_at as created3_24_6_, user7_.departmen Details
select outgoingco0_.id as id27_7_, outgoingco0_.author as author27_7_, outgoingco0_.created_at as created2_27_7_, outgoingco0_.description as descript3_27_7_, outgoingco0_.labels as labels27_7_, outgoingco0_.last_updated as last5_27_7_, outgoingco0_.recipient_code as recipient6_27_7_, outgoingco0_.recipient_name as recipient7_27_7_, outgoingco0_.request_content as request8_27_7_, outgoingco0_.request_date as request9_27_7_, outgoingco0_.response_content as response10_27_7_, outgoingco0_.response_timestamp as response11_27_7_, outgoingco0_.sender_code as sender12_27_7_, outgoingco0_.sender_name as sender13_27_7_, outgoingco0_.service as service27_7_, outgoingco0_.sign_org as sign15_27_7_, outgoingco0_.sign_subj as sign16_27_7_, outgoingco0_.status as status27_7_, outgoingco0_.tp_number as tp18_27_7_, outgoingco0_.trans_code as trans19_27_7_, outgoingco0_.endpoint as endpoint27_7_, outgoingco0_.external_id as external21_27_7_, outgoingco0_.periodic_changed as periodic22_27_7_, outgoingco0_.periodic_req_id as periodic24_27_7_, outgoingco0_.pgu_conv_id as pgu25_27_7_, user1_.id as id24_0_, user1_.cert_fingerprint as cert2_24_0_, user1_.created_at as created3_24_0_, user1_.department as department24_0_, user1_.email as email24_0_, user1_.first_name as first6_24_0_, user1_.gisgmp_department as gisgmp7_24_0_, user1_.inherit_adapters as inherit8_24_0_, user1_.last_name as last9_24_0_, user1_.last_updated as last10_24_0_, user1_.middle_name as middle11_24_0_, user1_.mnemonic as mnemonic24_0_, user1_.no_emails as no13_24_0_, user1_.owner as owner24_0_, user1_.passwd as passwd24_0_, user1_.phone as phone24_0_, user1_.position as position24_0_, user1_.region as region24_0_, user1_.passwd_salt as passwd18_24_0_, user1_.snils as snils24_0_, user1_.username as username24_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_, periodicre3_.id as id28_2_, periodicre3_.created_at as created2_28_2_, periodicre3_.fields as fields28_2_, periodicre3_.group_id as group4_28_2_, periodicre4_.id as id29_3_, periodicre4_.adapter as adapter29_3_, periodicre4_.req_first_nodelay as req3_29_3_, periodicre4_.grid_fields as grid4_29_3_, periodicre4_.name as name29_3_, periodicre4_.owner_id as owner9_29_3_, periodicre4_.req_schedule as req6_29_3_, periodicre4_.req_start as req7_29_3_, periodicre4_.response_fields as response8_29_3_, user5_.id as id24_4_, user5_.cert_fingerprint as cert2_24_4_, user5_.created_at as created3_24_4_, user5_.department as department24_4_, user5_.email as email24_4_, user5_.first_name as first6_24_4_, user5_.gisgmp_department as gisgmp7_24_4_, user5_.inherit_adapters as inherit8_24_4_, user5_.last_name as last9_24_4_, user5_.last_updated as last10_24_4_, user5_.middle_name as middle11_24_4_, user5_.mnemonic as mnemonic24_4_, user5_.no_emails as no13_24_4_, user5_.owner as owner24_4_, user5_.passwd as passwd24_4_, user5_.phone as phone24_4_, user5_.position as position24_4_, user5_.region as region24_4_, user5_.passwd_salt as passwd18_24_4_, user5_.snils as snils24_4_, user5_.username as username24_4_, incomingco6_.id as id26_5_, incomingco6_.author as author26_5_, incomingco6_.created_at as created2_26_5_, incomingco6_.description as descript3_26_5_, incomingco6_.labels as labels26_5_, incomingco6_.last_updated as last5_26_5_, incomingco6_.recipient_code as recipient6_26_5_, incomingco6_.recipient_name as recipient7_26_5_, incomingco6_.request_content as request8_26_5_, incomingco6_.request_date as request9_26_5_, incomingco6_.response_content as response10_26_5_, incomingco6_.response_timestamp as response11_26_5_, incomingco6_.sender_code as sender12_26_5_, incomingco6_.sender_name as sender13_26_5_, incomingco6_.service as service26_5_, incomingco6_.sign_org as sign15_26_5_, incomingco6_.sign_subj as sign16_26_5_, incomingco6_.status as status26_5_, incomingco6_.tp_number as tp18_26_5_, incomingco6_.trans_code as trans19_26_5_, incomingco6_.department as department26_5_, incomingco6_.done_by as done21_26_5_, incomingco6_.last_assigned as last22_26_5_, incomingco6_.oktmo as oktmo26_5_, incomingco6_.reg_date as reg24_26_5_, incomingco6_.reg_number as reg25_26_5_, incomingco6_.rpgu_created_at as rpgu26_26_5_, incomingco6_.service_code as service27_26_5_, user7_.id as id24_6_, user7_.cert_fingerprint as cert2_24_6_, user7_.created_at as created3_24_6_, user7_.department as department24_6_, user7_.email as email24_6_, user7_.first_name as first6_24_6_, user7_.gisgmp_department as gisgmp7_24_6_, user7_.inherit_adapters as inherit8_24_6_, user7_.last_name as last9_24_6_, user7_.last_updated as last10_24_6_, user7_.middle_name as middle11_24_6_, user7_.mnemonic as mnemonic24_6_, user7_.no_emails as no13_24_6_, user7_.owner as owner24_6_, user7_.passwd as passwd24_6_, user7_.phone as phone24_6_, user7_.position as position24_6_, user7_.region as region24_6_, user7_.passwd_salt as passwd18_24_6_, user7_.snils as snils24_6_, user7_.username as username24_6_ from adp_conversation_out outgoingco0_ left outer join adp_user user1_ on outgoingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_periodic_req periodicre3_ on outgoingco0_.periodic_req_id=periodicre3_.id left outer join adp_periodic_req_group periodicre4_ on periodicre3_.group_id=periodicre4_.id left outer join adp_user user5_ on periodicre4_.owner_id=user5_.id left outer join adp_conversation_in incomingco6_ on outgoingco0_.pgu_conv_id=incomingco6_.id left outer join adp_user user7_ on incomingco6_.author=user7_.id where outgoingco0_.id=?
| 0 | 17 | 15 | 46 | 14 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 120 | 2 | 3 | 0 | 0.00 |
delete from adp_department where id=? | 0 | 11 | 21 | 102 | 31 | 18.18 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 23 | 9 | 16 | 2 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 114 | 1 | 21 | 2 | 0.00 |
select this_.id as id0_1_, this_.cert_fingerprint as cert2_0_1_, this_.created_at as created3_0_1_, this_.department as department0_1_, this_.email as email0_1_, this_.first_name as first6_0_1_, this_.gisgmp_department as gisgmp7_0_1_, this_.inherit_adapters as inherit8_0_1_, this_.last_name as last9_0_1_, this_.last_updated as last10_0_1_, this_.middle_name as middle11_0_1_, this_.mnemonic as mnemonic0_1_, this_.no_emails as no13_0_1_, this_.owner as owner0_1_, this_.passwd as passwd0_1_, this_.phone as phone0_1_, this_.position as position0_1_, this_.region as region0_1_, this_.passwd_salt as passwd18_0_1_, this_.snils as snils0_1_, this_.username as username0_1_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.username=? | 0 | 125 | 1 | 17 | 2 | 0.00 |
select this_.id as id32_2_, this_.created_at as created2_32_2_, this_.data as data32_2_, this_.last_updated as last4_32_2_, this_.message as message32_2_, this_.owner_id as owner9_32_2_, this_.stack_trace as stack6_32_2_, this_.status as status32_2_, this_.title as title32_2_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_, user3_.id as id22_1_, user3_.cert_fingerprint as cert2_22_1_, user3_.created_at as created3_22_1_, user3_.department as department22_1_, user3_.email as email22_1_, user3_.first_name as first6_22_1_, user3_.gisgmp_department as gisgmp7_22_1_, user3_.inherit_adapters as inherit8_22_1_, user3_.last_name as last9_22_1_, user3_.last_updated as last10_22_1_, user3_.middle_name as middle11_22_1_, user3_.mnemonic as mnemonic22_1_, user3_.no_emails as no13_22_1_, user3_.owner as owner22_1_, user3_.passwd as passwd22_1_, user3_.phone as phone22_1_, user3_.position as position22_1_, user3_.region as region22_1_, user3_.passwd_salt as passwd18_22_1_, user3_.snils as snils22_1_, user3_.username as username22_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.status in (?) order by this_.last_updated desc | 0 | 121 | 1 | 17 | 2 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 197 | 1 | 17 | 2 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 11 | 18 | 23 | 4 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 56 | 3 | 20 | 4 | 0.00 |
select attachment0_.id as id23_9_, attachment0_.content as content23_9_, attachment0_.content_type as content3_23_9_, attachment0_.conv_in as conv8_23_9_, attachment0_.conv_out as conv9_23_9_, attachment0_.created as created23_9_, attachment0_.file_name as file5_23_9_, attachment0_.metadata as metadata23_9_, attachment0_.typ as typ23_9_, incomingco1_.id as id24_0_, incomingco1_.author as author24_0_, incomingco1_.created_at as created2_24_0_, incomingco1_.description as descript3_24_0_, incomingco1_.labels as labels24_0_, incomingco1_.last_updated as last5_24_0_, incomingco1_.recipient_code as recipient6_24_0_, incomingco1_.recipient_name as recipient7_24_0_, incomingco1_.request_content as request8_24_0_, incomingco1_.request_date as request9_24_0_, incomingco1_.response_content as response10_24_0_, incomingco1_.response_timestamp as response11_24_0_, incomingco1_.sender_code as sender12_24_0_, incomingco1_.sender_name as sender13_24_0_, incomingco1_.service as service24_0_, incomingco1_.sign_org as sign15_24_0_, incomingco1_.sign_subj as sign16_24_0_, incomingco1_.status as status24_0_, incomingco1_.tp_number as tp18_24_0_, incomingco1_.trans_code as trans19_24_0_, incomingco1_.department as department24_0_, incomingco1_.done_by as done21_24_0_, incomingco1_.last_assigned as last22_24_0_, incomingco1_.oktmo as oktmo24_0_, incomingco1_.reg_date as reg24_24_0_, incomingco1_.reg_number as reg25_24_0_, incomingco1_.rpgu_created_at as rpgu26_24_0_, incomingco1_.service_code as service27_24_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_, user3_.id as id22_2_, user3_.cert_fingerprint as cert2_22_2_, user3_.created_at as created3_22_2_, user3_.department as department22_2_, user3_.email as email22_2_, user3_.first_name as first6_22_2_, user3_.gisgmp_department as gisgmp7_22_2_, user3_.inherit_adapters as inherit8_22_2_, user3_.last_name as last9_22_2_, user3_.last_updated as last10_22_2_, user3_.middle_name as middle11_22_2_, user3_.mnemonic as mnemonic22_2_, user3_.no_emails as no13_22_2_, user3_.owner as owner22_2_, user3_.passwd as passwd22_2_, user3_.phone as phone22_2_, user3_.position as position22_2_, user3_.region as region22_2_, user3_.passwd_salt as passwd18_22_2_, user3_.snils as snils22_2_, user3_.username as username22_2_, outgoingco4_.id as id25_3_, outgoingco4_.author as author25_3_, outgoingco4_.created_at as created2_25_3_, outgoingco4_.description as descript3_25_3_, outgoingco4_.labels as labels25_3_, outgoingco4_.last_updated as last5_25_3_, outgoingco4_.recipient_code as recipient6_25_3_, outgoingco4_.recipient_name as recipient7_25_3_, outgoingco4_.request_content as request8_25_3_, outgoingco4_.request_date as request9_25_3_, outgoingco4_.response_content as response10_25_3_, outgoingco4_.response_timestamp as response11_25_3_, outgoingco4_.sender_code as sender12_25_3_, outgoingco4_.sender_name as sender13_25_3_, outgoingco4_.service as service25_3_, outgoingco4_.sign_org as sign15_25_3_, outgoingco4_.sign_subj as sign16_25_3_, outgoingco4_.status as status25_3_, outgoingco4_.tp_number as tp18_25_3_, outgoingco4_.trans_code as trans19_25_3_, outgoingco4_.endpoint as endpoint25_3_, outgoingco4_.external_id as external21_25_3_, outgoingco4_.periodic_changed as periodic22_25_3_, outgoingco4_.periodic_req_id as periodic24_25_3_, outgoingco4_.pgu_conv_id as pgu25_25_3_, user5_.id as id22_4_, user5_.cert_fingerprint as cert2_22_4_, user5_.created_at as created3_22_4_, user5_.department as department22_4_, user5_.email as email22_4_, user5_.first_name as first6_22_4_, user5_.gisgmp_department as gisgmp7_22_4_, user5_.inherit_adapters as inherit8_22_4_, user5_.last_name as last9_22_4_, user5_.last_updated as last10_22_4_, user5_.middle_name as middle11_22_4_, user5_.mnemonic as mnemonic22_4_, user5_.no_emails as no13_22_4_, user5_.owner as owner22_4_, user5_.passwd as passwd22_4_, user5_.phone as phone22_4_, user5_.position as position22_4_, user5_.region as region22_4_, user5_.passwd_salt as passwd18_22_4_, user5_.snils as snils22_4_, user5_.username as username22_4_, periodicre6_.id as id26_5_, periodicre6_.created_at as created2_26_5_, periodicre6_.fields as fields26_5_, periodicre6_.group_id as group4_26_5_, periodicre7_.id as id27_6_, periodicre7_.adapter as adapter27_6_, periodicre7_.req_first_nodelay as req3_27_6_, periodicre7_.grid_fiel Details
select attachment0_.id as id23_9_, attachment0_.content as content23_9_, attachment0_.content_type as content3_23_9_, attachment0_.conv_in as conv8_23_9_, attachment0_.conv_out as conv9_23_9_, attachment0_.created as created23_9_, attachment0_.file_name as file5_23_9_, attachment0_.metadata as metadata23_9_, attachment0_.typ as typ23_9_, incomingco1_.id as id24_0_, incomingco1_.author as author24_0_, incomingco1_.created_at as created2_24_0_, incomingco1_.description as descript3_24_0_, incomingco1_.labels as labels24_0_, incomingco1_.last_updated as last5_24_0_, incomingco1_.recipient_code as recipient6_24_0_, incomingco1_.recipient_name as recipient7_24_0_, incomingco1_.request_content as request8_24_0_, incomingco1_.request_date as request9_24_0_, incomingco1_.response_content as response10_24_0_, incomingco1_.response_timestamp as response11_24_0_, incomingco1_.sender_code as sender12_24_0_, incomingco1_.sender_name as sender13_24_0_, incomingco1_.service as service24_0_, incomingco1_.sign_org as sign15_24_0_, incomingco1_.sign_subj as sign16_24_0_, incomingco1_.status as status24_0_, incomingco1_.tp_number as tp18_24_0_, incomingco1_.trans_code as trans19_24_0_, incomingco1_.department as department24_0_, incomingco1_.done_by as done21_24_0_, incomingco1_.last_assigned as last22_24_0_, incomingco1_.oktmo as oktmo24_0_, incomingco1_.reg_date as reg24_24_0_, incomingco1_.reg_number as reg25_24_0_, incomingco1_.rpgu_created_at as rpgu26_24_0_, incomingco1_.service_code as service27_24_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_, user3_.id as id22_2_, user3_.cert_fingerprint as cert2_22_2_, user3_.created_at as created3_22_2_, user3_.department as department22_2_, user3_.email as email22_2_, user3_.first_name as first6_22_2_, user3_.gisgmp_department as gisgmp7_22_2_, user3_.inherit_adapters as inherit8_22_2_, user3_.last_name as last9_22_2_, user3_.last_updated as last10_22_2_, user3_.middle_name as middle11_22_2_, user3_.mnemonic as mnemonic22_2_, user3_.no_emails as no13_22_2_, user3_.owner as owner22_2_, user3_.passwd as passwd22_2_, user3_.phone as phone22_2_, user3_.position as position22_2_, user3_.region as region22_2_, user3_.passwd_salt as passwd18_22_2_, user3_.snils as snils22_2_, user3_.username as username22_2_, outgoingco4_.id as id25_3_, outgoingco4_.author as author25_3_, outgoingco4_.created_at as created2_25_3_, outgoingco4_.description as descript3_25_3_, outgoingco4_.labels as labels25_3_, outgoingco4_.last_updated as last5_25_3_, outgoingco4_.recipient_code as recipient6_25_3_, outgoingco4_.recipient_name as recipient7_25_3_, outgoingco4_.request_content as request8_25_3_, outgoingco4_.request_date as request9_25_3_, outgoingco4_.response_content as response10_25_3_, outgoingco4_.response_timestamp as response11_25_3_, outgoingco4_.sender_code as sender12_25_3_, outgoingco4_.sender_name as sender13_25_3_, outgoingco4_.service as service25_3_, outgoingco4_.sign_org as sign15_25_3_, outgoingco4_.sign_subj as sign16_25_3_, outgoingco4_.status as status25_3_, outgoingco4_.tp_number as tp18_25_3_, outgoingco4_.trans_code as trans19_25_3_, outgoingco4_.endpoint as endpoint25_3_, outgoingco4_.external_id as external21_25_3_, outgoingco4_.periodic_changed as periodic22_25_3_, outgoingco4_.periodic_req_id as periodic24_25_3_, outgoingco4_.pgu_conv_id as pgu25_25_3_, user5_.id as id22_4_, user5_.cert_fingerprint as cert2_22_4_, user5_.created_at as created3_22_4_, user5_.department as department22_4_, user5_.email as email22_4_, user5_.first_name as first6_22_4_, user5_.gisgmp_department as gisgmp7_22_4_, user5_.inherit_adapters as inherit8_22_4_, user5_.last_name as last9_22_4_, user5_.last_updated as last10_22_4_, user5_.middle_name as middle11_22_4_, user5_.mnemonic as mnemonic22_4_, user5_.no_emails as no13_22_4_, user5_.owner as owner22_4_, user5_.passwd as passwd22_4_, user5_.phone as phone22_4_, user5_.position as position22_4_, user5_.region as region22_4_, user5_.passwd_salt as passwd18_22_4_, user5_.snils as snils22_4_, user5_.username as username22_4_, periodicre6_.id as id26_5_, periodicre6_.created_at as created2_26_5_, periodicre6_.fields as fields26_5_, periodicre6_.group_id as group4_26_5_, periodicre7_.id as id27_6_, periodicre7_.adapter as adapter27_6_, periodicre7_.req_first_nodelay as req3_27_6_, periodicre7_.grid_fields as grid4_27_6_, periodicre7_.name as name27_6_, periodicre7_.owner_id as owner9_27_6_, periodicre7_.req_schedule as req6_27_6_, periodicre7_.req_start as req7_27_6_, periodicre7_.response_fields as response8_27_6_, user8_.id as id22_7_, user8_.cert_fingerprint as cert2_22_7_, user8_.created_at as created3_22_7_, user8_.department as department22_7_, user8_.email as email22_7_, user8_.first_name as first6_22_7_, user8_.gisgmp_department as gisgmp7_22_7_, user8_.inherit_adapters as inherit8_22_7_, user8_.last_name as last9_22_7_, user8_.last_updated as last10_22_7_, user8_.middle_name as middle11_22_7_, user8_.mnemonic as mnemonic22_7_, user8_.no_emails as no13_22_7_, user8_.owner as owner22_7_, user8_.passwd as passwd22_7_, user8_.phone as phone22_7_, user8_.position as position22_7_, user8_.region as region22_7_, user8_.passwd_salt as passwd18_22_7_, user8_.snils as snils22_7_, user8_.username as username22_7_, incomingco9_.id as id24_8_, incomingco9_.author as author24_8_, incomingco9_.created_at as created2_24_8_, incomingco9_.description as descript3_24_8_, incomingco9_.labels as labels24_8_, incomingco9_.last_updated as last5_24_8_, incomingco9_.recipient_code as recipient6_24_8_, incomingco9_.recipient_name as recipient7_24_8_, incomingco9_.request_content as request8_24_8_, incomingco9_.request_date as request9_24_8_, incomingco9_.response_content as response10_24_8_, incomingco9_.response_timestamp as response11_24_8_, incomingco9_.sender_code as sender12_24_8_, incomingco9_.sender_name as sender13_24_8_, incomingco9_.service as service24_8_, incomingco9_.sign_org as sign15_24_8_, incomingco9_.sign_subj as sign16_24_8_, incomingco9_.status as status24_8_, incomingco9_.tp_number as tp18_24_8_, incomingco9_.trans_code as trans19_24_8_, incomingco9_.department as department24_8_, incomingco9_.done_by as done21_24_8_, incomingco9_.last_assigned as last22_24_8_, incomingco9_.oktmo as oktmo24_8_, incomingco9_.reg_date as reg24_24_8_, incomingco9_.reg_number as reg25_24_8_, incomingco9_.rpgu_created_at as rpgu26_24_8_, incomingco9_.service_code as service27_24_8_ from adp_attachment attachment0_ left outer join adp_conversation_in incomingco1_ on attachment0_.conv_in=incomingco1_.id left outer join adp_user user2_ on incomingco1_.author=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id left outer join adp_conversation_out outgoingco4_ on attachment0_.conv_out=outgoingco4_.id left outer join adp_user user5_ on outgoingco4_.author=user5_.id left outer join adp_periodic_req periodicre6_ on outgoingco4_.periodic_req_id=periodicre6_.id left outer join adp_periodic_req_group periodicre7_ on periodicre6_.group_id=periodicre7_.id left outer join adp_user user8_ on periodicre7_.owner_id=user8_.id left outer join adp_conversation_in incomingco9_ on outgoingco4_.pgu_conv_id=incomingco9_.id where attachment0_.id=?
| 0 | 21 | 9 | 26 | 6 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 33 | 5 | 10 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 11 | 15 | 24 | 3 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' )
| 0 | 57 | 2 | 21 | 3 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 18 | 8 | 20 | 4 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 10 | 15 | 63 | 17 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 33 | 4 | 13 | 2 | 0.00 |
select d.id as id, d.name_ as name from adp_dictionary d | 0 | 84 | 1 | 38 | 4 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? and (this_.owner=? or this_.id=?) order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 55 | 2 | 10 | 1 | 0.00 |
select this_.id as id12_2_, this_.created_at as created2_12_2_, this_.data as data12_2_, this_.last_updated as last4_12_2_, this_.message as message12_2_, this_.owner_id as owner9_12_2_, this_.stack_trace as stack6_12_2_, this_.status as status12_2_, this_.title as title12_2_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_, user3_.id as id2_1_, user3_.cert_fingerprint as cert2_2_1_, user3_.created_at as created3_2_1_, user3_.department as department2_1_, user3_.email as email2_1_, user3_.first_name as first6_2_1_, user3_.gisgmp_department as gisgmp7_2_1_, user3_.inherit_adapters as inherit8_2_1_, user3_.last_name as last9_2_1_, user3_.last_updated as last10_2_1_, user3_.middle_name as middle11_2_1_, user3_.mnemonic as mnemonic2_1_, user3_.no_emails as no13_2_1_, user3_.owner as owner2_1_, user3_.passwd as passwd2_1_, user3_.phone as phone2_1_, user3_.position as position2_1_, user3_.region as region2_1_, user3_.passwd_salt as passwd18_2_1_, user3_.snils as snils2_1_, user3_.username as username2_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.status in (?) order by this_.last_updated desc | 0 | 42 | 3 | 35 | 6 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? offset ? | 0 | 23 | 5 | 8 | 1 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 42 | 2 | 17 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? offset ? | 0 | 31 | 3 | 7 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 56 | 2 | 6 | 0 | 0.00 |
select this_.id as id9_0_, this_.conv_in as conv2_9_0_, this_.conv_out as conv3_9_0_, this_.signature as signature9_0_, this_.signed_data as signed5_9_0_ from adp_aggregator_dsig this_ where this_.conv_in=? limit ? | 0 | 81 | 1 | 14 | 2 | 0.00 |
select this_.id as id7_0_, this_.conv_in as conv2_7_0_, this_.conv_out as conv3_7_0_, this_.signature as signature7_0_, this_.signed_data as signed5_7_0_ from adp_aggregator_dsig this_ where this_.conv_in=? limit ? | 0 | 51 | 2 | 9 | 1 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 107 | 1 | 4 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 41 | 2 | 26 | 4 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? and (this_.owner=? or this_.id=?) order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 44 | 2 | 8 | 1 | 0.00 |
insert into adp_dynamic_adapter_dpt (adapter_id, department) values (?, ?) | 0 | 69 | 1 | 19 | 2 | 0.00 |
update adp_user set cert_fingerprint=?, created_at=?, department=?, email=?, first_name=?, gisgmp_department=?, inherit_adapters=?, last_name=?, last_updated=?, middle_name=?, mnemonic=?, no_emails=?, owner=?, passwd=?, phone=?, position=?, region=?, passwd_salt=?, snils=?, username=? where id=? | 0 | 51 | 2 | 33 | 4 | 0.00 |
select appointmen0_.department as col_0_0_ from adp_equeue_slot appointmen0_ where appointmen0_.start_at>=current_timestamp group by appointmen0_.department | 0 | 7 | 13 | 30 | 8 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 58 | 1 | 3 | 0 | 0.00 |
select this_.id as id22_0_, this_.conv_in as conv2_22_0_, this_.conv_out as conv3_22_0_, this_.signature as signature22_0_, this_.signed_data as signed5_22_0_ from adp_aggregator_dsig this_ where this_.conv_in=? limit ? | 0 | 52 | 1 | 9 | 2 | 0.00 |
insert into adp_user (cert_fingerprint, created_at, department, email, first_name, gisgmp_department, inherit_adapters, last_name, last_updated, middle_name, mnemonic, no_emails, owner, passwd, phone, position, region, passwd_salt, snils, username, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | 0 | 15 | 6 | 29 | 7 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 107 | 0 | 2 | 0 | 0.00 |
select attachment0_.id as id3_9_, attachment0_.content as content3_9_, attachment0_.content_type as content3_3_9_, attachment0_.conv_in as conv8_3_9_, attachment0_.conv_out as conv9_3_9_, attachment0_.created as created3_9_, attachment0_.file_name as file5_3_9_, attachment0_.metadata as metadata3_9_, attachment0_.typ as typ3_9_, incomingco1_.id as id4_0_, incomingco1_.author as author4_0_, incomingco1_.created_at as created2_4_0_, incomingco1_.description as descript3_4_0_, incomingco1_.labels as labels4_0_, incomingco1_.last_updated as last5_4_0_, incomingco1_.recipient_code as recipient6_4_0_, incomingco1_.recipient_name as recipient7_4_0_, incomingco1_.request_content as request8_4_0_, incomingco1_.request_date as request9_4_0_, incomingco1_.response_content as response10_4_0_, incomingco1_.response_timestamp as response11_4_0_, incomingco1_.sender_code as sender12_4_0_, incomingco1_.sender_name as sender13_4_0_, incomingco1_.service as service4_0_, incomingco1_.sign_org as sign15_4_0_, incomingco1_.sign_subj as sign16_4_0_, incomingco1_.status as status4_0_, incomingco1_.tp_number as tp18_4_0_, incomingco1_.trans_code as trans19_4_0_, incomingco1_.department as department4_0_, incomingco1_.done_by as done21_4_0_, incomingco1_.last_assigned as last22_4_0_, incomingco1_.oktmo as oktmo4_0_, incomingco1_.reg_date as reg24_4_0_, incomingco1_.reg_number as reg25_4_0_, incomingco1_.rpgu_created_at as rpgu26_4_0_, incomingco1_.service_code as service27_4_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_, user3_.id as id2_2_, user3_.cert_fingerprint as cert2_2_2_, user3_.created_at as created3_2_2_, user3_.department as department2_2_, user3_.email as email2_2_, user3_.first_name as first6_2_2_, user3_.gisgmp_department as gisgmp7_2_2_, user3_.inherit_adapters as inherit8_2_2_, user3_.last_name as last9_2_2_, user3_.last_updated as last10_2_2_, user3_.middle_name as middle11_2_2_, user3_.mnemonic as mnemonic2_2_, user3_.no_emails as no13_2_2_, user3_.owner as owner2_2_, user3_.passwd as passwd2_2_, user3_.phone as phone2_2_, user3_.position as position2_2_, user3_.region as region2_2_, user3_.passwd_salt as passwd18_2_2_, user3_.snils as snils2_2_, user3_.username as username2_2_, outgoingco4_.id as id5_3_, outgoingco4_.author as author5_3_, outgoingco4_.created_at as created2_5_3_, outgoingco4_.description as descript3_5_3_, outgoingco4_.labels as labels5_3_, outgoingco4_.last_updated as last5_5_3_, outgoingco4_.recipient_code as recipient6_5_3_, outgoingco4_.recipient_name as recipient7_5_3_, outgoingco4_.request_content as request8_5_3_, outgoingco4_.request_date as request9_5_3_, outgoingco4_.response_content as response10_5_3_, outgoingco4_.response_timestamp as response11_5_3_, outgoingco4_.sender_code as sender12_5_3_, outgoingco4_.sender_name as sender13_5_3_, outgoingco4_.service as service5_3_, outgoingco4_.sign_org as sign15_5_3_, outgoingco4_.sign_subj as sign16_5_3_, outgoingco4_.status as status5_3_, outgoingco4_.tp_number as tp18_5_3_, outgoingco4_.trans_code as trans19_5_3_, outgoingco4_.endpoint as endpoint5_3_, outgoingco4_.external_id as external21_5_3_, outgoingco4_.periodic_changed as periodic22_5_3_, outgoingco4_.periodic_req_id as periodic24_5_3_, outgoingco4_.pgu_conv_id as pgu25_5_3_, user5_.id as id2_4_, user5_.cert_fingerprint as cert2_2_4_, user5_.created_at as created3_2_4_, user5_.department as department2_4_, user5_.email as email2_4_, user5_.first_name as first6_2_4_, user5_.gisgmp_department as gisgmp7_2_4_, user5_.inherit_adapters as inherit8_2_4_, user5_.last_name as last9_2_4_, user5_.last_updated as last10_2_4_, user5_.middle_name as middle11_2_4_, user5_.mnemonic as mnemonic2_4_, user5_.no_emails as no13_2_4_, user5_.owner as owner2_4_, user5_.passwd as passwd2_4_, user5_.phone as phone2_4_, user5_.position as position2_4_, user5_.region as region2_4_, user5_.passwd_salt as passwd18_2_4_, user5_.snils as snils2_4_, user5_.username as username2_4_, periodicre6_.id as id6_5_, periodicre6_.created_at as created2_6_5_, periodicre6_.fields as fields6_5_, periodicre6_.group_id as group4_6_5_, periodicre7_.id as id7_6_, periodicre7_.adapter as adapter7_6_, periodicre7_.req_first_nodelay as req3_7_6_, periodicre7_.grid_fields as grid4_7_6_, periodicre7_.name as name7_6_, periodicre7_.owner_id as owner9_7_6_, periodicre7_.req_schedule as req6_7_6_, perio Details
select attachment0_.id as id3_9_, attachment0_.content as content3_9_, attachment0_.content_type as content3_3_9_, attachment0_.conv_in as conv8_3_9_, attachment0_.conv_out as conv9_3_9_, attachment0_.created as created3_9_, attachment0_.file_name as file5_3_9_, attachment0_.metadata as metadata3_9_, attachment0_.typ as typ3_9_, incomingco1_.id as id4_0_, incomingco1_.author as author4_0_, incomingco1_.created_at as created2_4_0_, incomingco1_.description as descript3_4_0_, incomingco1_.labels as labels4_0_, incomingco1_.last_updated as last5_4_0_, incomingco1_.recipient_code as recipient6_4_0_, incomingco1_.recipient_name as recipient7_4_0_, incomingco1_.request_content as request8_4_0_, incomingco1_.request_date as request9_4_0_, incomingco1_.response_content as response10_4_0_, incomingco1_.response_timestamp as response11_4_0_, incomingco1_.sender_code as sender12_4_0_, incomingco1_.sender_name as sender13_4_0_, incomingco1_.service as service4_0_, incomingco1_.sign_org as sign15_4_0_, incomingco1_.sign_subj as sign16_4_0_, incomingco1_.status as status4_0_, incomingco1_.tp_number as tp18_4_0_, incomingco1_.trans_code as trans19_4_0_, incomingco1_.department as department4_0_, incomingco1_.done_by as done21_4_0_, incomingco1_.last_assigned as last22_4_0_, incomingco1_.oktmo as oktmo4_0_, incomingco1_.reg_date as reg24_4_0_, incomingco1_.reg_number as reg25_4_0_, incomingco1_.rpgu_created_at as rpgu26_4_0_, incomingco1_.service_code as service27_4_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_, user3_.id as id2_2_, user3_.cert_fingerprint as cert2_2_2_, user3_.created_at as created3_2_2_, user3_.department as department2_2_, user3_.email as email2_2_, user3_.first_name as first6_2_2_, user3_.gisgmp_department as gisgmp7_2_2_, user3_.inherit_adapters as inherit8_2_2_, user3_.last_name as last9_2_2_, user3_.last_updated as last10_2_2_, user3_.middle_name as middle11_2_2_, user3_.mnemonic as mnemonic2_2_, user3_.no_emails as no13_2_2_, user3_.owner as owner2_2_, user3_.passwd as passwd2_2_, user3_.phone as phone2_2_, user3_.position as position2_2_, user3_.region as region2_2_, user3_.passwd_salt as passwd18_2_2_, user3_.snils as snils2_2_, user3_.username as username2_2_, outgoingco4_.id as id5_3_, outgoingco4_.author as author5_3_, outgoingco4_.created_at as created2_5_3_, outgoingco4_.description as descript3_5_3_, outgoingco4_.labels as labels5_3_, outgoingco4_.last_updated as last5_5_3_, outgoingco4_.recipient_code as recipient6_5_3_, outgoingco4_.recipient_name as recipient7_5_3_, outgoingco4_.request_content as request8_5_3_, outgoingco4_.request_date as request9_5_3_, outgoingco4_.response_content as response10_5_3_, outgoingco4_.response_timestamp as response11_5_3_, outgoingco4_.sender_code as sender12_5_3_, outgoingco4_.sender_name as sender13_5_3_, outgoingco4_.service as service5_3_, outgoingco4_.sign_org as sign15_5_3_, outgoingco4_.sign_subj as sign16_5_3_, outgoingco4_.status as status5_3_, outgoingco4_.tp_number as tp18_5_3_, outgoingco4_.trans_code as trans19_5_3_, outgoingco4_.endpoint as endpoint5_3_, outgoingco4_.external_id as external21_5_3_, outgoingco4_.periodic_changed as periodic22_5_3_, outgoingco4_.periodic_req_id as periodic24_5_3_, outgoingco4_.pgu_conv_id as pgu25_5_3_, user5_.id as id2_4_, user5_.cert_fingerprint as cert2_2_4_, user5_.created_at as created3_2_4_, user5_.department as department2_4_, user5_.email as email2_4_, user5_.first_name as first6_2_4_, user5_.gisgmp_department as gisgmp7_2_4_, user5_.inherit_adapters as inherit8_2_4_, user5_.last_name as last9_2_4_, user5_.last_updated as last10_2_4_, user5_.middle_name as middle11_2_4_, user5_.mnemonic as mnemonic2_4_, user5_.no_emails as no13_2_4_, user5_.owner as owner2_4_, user5_.passwd as passwd2_4_, user5_.phone as phone2_4_, user5_.position as position2_4_, user5_.region as region2_4_, user5_.passwd_salt as passwd18_2_4_, user5_.snils as snils2_4_, user5_.username as username2_4_, periodicre6_.id as id6_5_, periodicre6_.created_at as created2_6_5_, periodicre6_.fields as fields6_5_, periodicre6_.group_id as group4_6_5_, periodicre7_.id as id7_6_, periodicre7_.adapter as adapter7_6_, periodicre7_.req_first_nodelay as req3_7_6_, periodicre7_.grid_fields as grid4_7_6_, periodicre7_.name as name7_6_, periodicre7_.owner_id as owner9_7_6_, periodicre7_.req_schedule as req6_7_6_, periodicre7_.req_start as req7_7_6_, periodicre7_.response_fields as response8_7_6_, user8_.id as id2_7_, user8_.cert_fingerprint as cert2_2_7_, user8_.created_at as created3_2_7_, user8_.department as department2_7_, user8_.email as email2_7_, user8_.first_name as first6_2_7_, user8_.gisgmp_department as gisgmp7_2_7_, user8_.inherit_adapters as inherit8_2_7_, user8_.last_name as last9_2_7_, user8_.last_updated as last10_2_7_, user8_.middle_name as middle11_2_7_, user8_.mnemonic as mnemonic2_7_, user8_.no_emails as no13_2_7_, user8_.owner as owner2_7_, user8_.passwd as passwd2_7_, user8_.phone as phone2_7_, user8_.position as position2_7_, user8_.region as region2_7_, user8_.passwd_salt as passwd18_2_7_, user8_.snils as snils2_7_, user8_.username as username2_7_, incomingco9_.id as id4_8_, incomingco9_.author as author4_8_, incomingco9_.created_at as created2_4_8_, incomingco9_.description as descript3_4_8_, incomingco9_.labels as labels4_8_, incomingco9_.last_updated as last5_4_8_, incomingco9_.recipient_code as recipient6_4_8_, incomingco9_.recipient_name as recipient7_4_8_, incomingco9_.request_content as request8_4_8_, incomingco9_.request_date as request9_4_8_, incomingco9_.response_content as response10_4_8_, incomingco9_.response_timestamp as response11_4_8_, incomingco9_.sender_code as sender12_4_8_, incomingco9_.sender_name as sender13_4_8_, incomingco9_.service as service4_8_, incomingco9_.sign_org as sign15_4_8_, incomingco9_.sign_subj as sign16_4_8_, incomingco9_.status as status4_8_, incomingco9_.tp_number as tp18_4_8_, incomingco9_.trans_code as trans19_4_8_, incomingco9_.department as department4_8_, incomingco9_.done_by as done21_4_8_, incomingco9_.last_assigned as last22_4_8_, incomingco9_.oktmo as oktmo4_8_, incomingco9_.reg_date as reg24_4_8_, incomingco9_.reg_number as reg25_4_8_, incomingco9_.rpgu_created_at as rpgu26_4_8_, incomingco9_.service_code as service27_4_8_ from adp_attachment attachment0_ left outer join adp_conversation_in incomingco1_ on attachment0_.conv_in=incomingco1_.id left outer join adp_user user2_ on incomingco1_.author=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id left outer join adp_conversation_out outgoingco4_ on attachment0_.conv_out=outgoingco4_.id left outer join adp_user user5_ on outgoingco4_.author=user5_.id left outer join adp_periodic_req periodicre6_ on outgoingco4_.periodic_req_id=periodicre6_.id left outer join adp_periodic_req_group periodicre7_ on periodicre6_.group_id=periodicre7_.id left outer join adp_user user8_ on periodicre7_.owner_id=user8_.id left outer join adp_conversation_in incomingco9_ on outgoingco4_.pgu_conv_id=incomingco9_.id where attachment0_.id=?
| 0 | 5 | 18 | 23 | 4 | 0.00 |
insert into adp_user_adapters (user_id, adapter_id, adapter_type) values (?, ?, ?) | 0 | 36 | 2 | 9 | 3 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 44 | 1 | 9 | 1 | 0.00 |
select this_.id as id10_2_, this_.created_at as created2_10_2_, this_.data as data10_2_, this_.last_updated as last4_10_2_, this_.message as message10_2_, this_.owner_id as owner9_10_2_, this_.stack_trace as stack6_10_2_, this_.status as status10_2_, this_.title as title10_2_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_, user3_.id as id0_1_, user3_.cert_fingerprint as cert2_0_1_, user3_.created_at as created3_0_1_, user3_.department as department0_1_, user3_.email as email0_1_, user3_.first_name as first6_0_1_, user3_.gisgmp_department as gisgmp7_0_1_, user3_.inherit_adapters as inherit8_0_1_, user3_.last_name as last9_0_1_, user3_.last_updated as last10_0_1_, user3_.middle_name as middle11_0_1_, user3_.mnemonic as mnemonic0_1_, user3_.no_emails as no13_0_1_, user3_.owner as owner0_1_, user3_.passwd as passwd0_1_, user3_.phone as phone0_1_, user3_.position as position0_1_, user3_.region as region0_1_, user3_.passwd_salt as passwd18_0_1_, user3_.snils as snils0_1_, user3_.username as username0_1_ from adp_task this_ left outer join adp_user user2_ on this_.owner_id=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id where this_.owner_id=? and this_.status in (?) order by this_.last_updated desc | 0 | 42 | 2 | 14 | 2 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 32 | 2 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ?
| 0 | 120 | 0 | 2 | 0 | 0.00 |
select this_.id as id9_0_, this_.adapter_id as adapter2_9_0_, this_.deprecated as deprecated9_0_, this_.mnemonic as mnemonic9_0_, this_.name as name9_0_, this_.region as region9_0_, this_.request_ui as request7_9_0_, this_.resp_subj_sign as resp8_9_0_, this_.response_ui as response9_9_0_, this_.sc_query as sc10_9_0_, this_.supp_subj_sign as supp11_9_0_ from adp_dynamic_adapter this_ | 0 | 32 | 2 | 4 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date > interval '5' second order by y4_ desc limit ? | 0 | 1 | 72 | 72 | 0 | 0.00 |
select this_.id as id0_1_, this_.cert_fingerprint as cert2_0_1_, this_.created_at as created3_0_1_, this_.department as department0_1_, this_.email as email0_1_, this_.first_name as first6_0_1_, this_.gisgmp_department as gisgmp7_0_1_, this_.inherit_adapters as inherit8_0_1_, this_.last_name as last9_0_1_, this_.last_updated as last10_0_1_, this_.middle_name as middle11_0_1_, this_.mnemonic as mnemonic0_1_, this_.no_emails as no13_0_1_, this_.owner as owner0_1_, this_.passwd as passwd0_1_, this_.phone as phone0_1_, this_.position as position0_1_, this_.region as region0_1_, this_.passwd_salt as passwd18_0_1_, this_.snils as snils0_1_, this_.username as username0_1_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where this_.region=? and not exists(select 1 from adp_user_roles r where r.user_id = this_.id and r.role_name in(?, ?, ?)) and exists(select 1 from adp_user_adapters a where a.user_id = (case when this_.inherit_adapters = ? then this_.owner else this_.id end) and a.adapter_id = ?) and this_.department = ? | 0 | 30 | 2 | 5 | 0 | 0.00 |
insert into adp_config (prop_name, prop_value) values(?, ?) | 0 | 365 | 0 | 0 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' )
| 0 | 32 | 2 | 8 | 1 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 8 | 8 | 39 | 12 | 0.00 |
select this_.id as id20_0_, this_.conv_in as conv2_20_0_, this_.conv_out as conv3_20_0_, this_.signature as signature20_0_, this_.signed_data as signed5_20_0_ from adp_aggregator_dsig this_ where this_.conv_in=? limit ? | 0 | 22 | 2 | 11 | 2 | 0.00 |
delete from adp_config | 0 | 5 | 12 | 17 | 3 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 20 | 3 | 13 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 42 | 1 | 8 | 1 | 0.00 |
insert into adp_department (adconstruct_enabled, address, aggregator_disabled, bank_acc, bic, business_hours, coordinates, do_dep, is_ebf, equeue_enabled, ext_spu_id, frgu_code, gisgmp_code, gisgmp_main_dep_id, gisgmp_role, inn, kpp, name, ogrn, oktmo, parent_dep_id, phone, share_conv, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | 0 | 26 | 2 | 9 | 3 | 38.46 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 11 | 5 | 32 | 9 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?)
| 0 | 157 | 0 | 2 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 18 | 3 | 14 | 3 | 0.00 |
select attachment0_.id as id25_9_, attachment0_.content as content25_9_, attachment0_.content_type as content3_25_9_, attachment0_.conv_in as conv8_25_9_, attachment0_.conv_out as conv9_25_9_, attachment0_.created as created25_9_, attachment0_.file_name as file5_25_9_, attachment0_.metadata as metadata25_9_, attachment0_.typ as typ25_9_, incomingco1_.id as id26_0_, incomingco1_.author as author26_0_, incomingco1_.created_at as created2_26_0_, incomingco1_.description as descript3_26_0_, incomingco1_.labels as labels26_0_, incomingco1_.last_updated as last5_26_0_, incomingco1_.recipient_code as recipient6_26_0_, incomingco1_.recipient_name as recipient7_26_0_, incomingco1_.request_content as request8_26_0_, incomingco1_.request_date as request9_26_0_, incomingco1_.response_content as response10_26_0_, incomingco1_.response_timestamp as response11_26_0_, incomingco1_.sender_code as sender12_26_0_, incomingco1_.sender_name as sender13_26_0_, incomingco1_.service as service26_0_, incomingco1_.sign_org as sign15_26_0_, incomingco1_.sign_subj as sign16_26_0_, incomingco1_.status as status26_0_, incomingco1_.tp_number as tp18_26_0_, incomingco1_.trans_code as trans19_26_0_, incomingco1_.department as department26_0_, incomingco1_.done_by as done21_26_0_, incomingco1_.last_assigned as last22_26_0_, incomingco1_.oktmo as oktmo26_0_, incomingco1_.reg_date as reg24_26_0_, incomingco1_.reg_number as reg25_26_0_, incomingco1_.rpgu_created_at as rpgu26_26_0_, incomingco1_.service_code as service27_26_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_, user3_.id as id24_2_, user3_.cert_fingerprint as cert2_24_2_, user3_.created_at as created3_24_2_, user3_.department as department24_2_, user3_.email as email24_2_, user3_.first_name as first6_24_2_, user3_.gisgmp_department as gisgmp7_24_2_, user3_.inherit_adapters as inherit8_24_2_, user3_.last_name as last9_24_2_, user3_.last_updated as last10_24_2_, user3_.middle_name as middle11_24_2_, user3_.mnemonic as mnemonic24_2_, user3_.no_emails as no13_24_2_, user3_.owner as owner24_2_, user3_.passwd as passwd24_2_, user3_.phone as phone24_2_, user3_.position as position24_2_, user3_.region as region24_2_, user3_.passwd_salt as passwd18_24_2_, user3_.snils as snils24_2_, user3_.username as username24_2_, outgoingco4_.id as id27_3_, outgoingco4_.author as author27_3_, outgoingco4_.created_at as created2_27_3_, outgoingco4_.description as descript3_27_3_, outgoingco4_.labels as labels27_3_, outgoingco4_.last_updated as last5_27_3_, outgoingco4_.recipient_code as recipient6_27_3_, outgoingco4_.recipient_name as recipient7_27_3_, outgoingco4_.request_content as request8_27_3_, outgoingco4_.request_date as request9_27_3_, outgoingco4_.response_content as response10_27_3_, outgoingco4_.response_timestamp as response11_27_3_, outgoingco4_.sender_code as sender12_27_3_, outgoingco4_.sender_name as sender13_27_3_, outgoingco4_.service as service27_3_, outgoingco4_.sign_org as sign15_27_3_, outgoingco4_.sign_subj as sign16_27_3_, outgoingco4_.status as status27_3_, outgoingco4_.tp_number as tp18_27_3_, outgoingco4_.trans_code as trans19_27_3_, outgoingco4_.endpoint as endpoint27_3_, outgoingco4_.external_id as external21_27_3_, outgoingco4_.periodic_changed as periodic22_27_3_, outgoingco4_.periodic_req_id as periodic24_27_3_, outgoingco4_.pgu_conv_id as pgu25_27_3_, user5_.id as id24_4_, user5_.cert_fingerprint as cert2_24_4_, user5_.created_at as created3_24_4_, user5_.department as department24_4_, user5_.email as email24_4_, user5_.first_name as first6_24_4_, user5_.gisgmp_department as gisgmp7_24_4_, user5_.inherit_adapters as inherit8_24_4_, user5_.last_name as last9_24_4_, user5_.last_updated as last10_24_4_, user5_.middle_name as middle11_24_4_, user5_.mnemonic as mnemonic24_4_, user5_.no_emails as no13_24_4_, user5_.owner as owner24_4_, user5_.passwd as passwd24_4_, user5_.phone as phone24_4_, user5_.position as position24_4_, user5_.region as region24_4_, user5_.passwd_salt as passwd18_24_4_, user5_.snils as snils24_4_, user5_.username as username24_4_, periodicre6_.id as id28_5_, periodicre6_.created_at as created2_28_5_, periodicre6_.fields as fields28_5_, periodicre6_.group_id as group4_28_5_, periodicre7_.id as id29_6_, periodicre7_.adapter as adapter29_6_, periodicre7_.req_first_nodelay as req3_29_6_, periodicre7_.grid_fiel Details
select attachment0_.id as id25_9_, attachment0_.content as content25_9_, attachment0_.content_type as content3_25_9_, attachment0_.conv_in as conv8_25_9_, attachment0_.conv_out as conv9_25_9_, attachment0_.created as created25_9_, attachment0_.file_name as file5_25_9_, attachment0_.metadata as metadata25_9_, attachment0_.typ as typ25_9_, incomingco1_.id as id26_0_, incomingco1_.author as author26_0_, incomingco1_.created_at as created2_26_0_, incomingco1_.description as descript3_26_0_, incomingco1_.labels as labels26_0_, incomingco1_.last_updated as last5_26_0_, incomingco1_.recipient_code as recipient6_26_0_, incomingco1_.recipient_name as recipient7_26_0_, incomingco1_.request_content as request8_26_0_, incomingco1_.request_date as request9_26_0_, incomingco1_.response_content as response10_26_0_, incomingco1_.response_timestamp as response11_26_0_, incomingco1_.sender_code as sender12_26_0_, incomingco1_.sender_name as sender13_26_0_, incomingco1_.service as service26_0_, incomingco1_.sign_org as sign15_26_0_, incomingco1_.sign_subj as sign16_26_0_, incomingco1_.status as status26_0_, incomingco1_.tp_number as tp18_26_0_, incomingco1_.trans_code as trans19_26_0_, incomingco1_.department as department26_0_, incomingco1_.done_by as done21_26_0_, incomingco1_.last_assigned as last22_26_0_, incomingco1_.oktmo as oktmo26_0_, incomingco1_.reg_date as reg24_26_0_, incomingco1_.reg_number as reg25_26_0_, incomingco1_.rpgu_created_at as rpgu26_26_0_, incomingco1_.service_code as service27_26_0_, user2_.id as id24_1_, user2_.cert_fingerprint as cert2_24_1_, user2_.created_at as created3_24_1_, user2_.department as department24_1_, user2_.email as email24_1_, user2_.first_name as first6_24_1_, user2_.gisgmp_department as gisgmp7_24_1_, user2_.inherit_adapters as inherit8_24_1_, user2_.last_name as last9_24_1_, user2_.last_updated as last10_24_1_, user2_.middle_name as middle11_24_1_, user2_.mnemonic as mnemonic24_1_, user2_.no_emails as no13_24_1_, user2_.owner as owner24_1_, user2_.passwd as passwd24_1_, user2_.phone as phone24_1_, user2_.position as position24_1_, user2_.region as region24_1_, user2_.passwd_salt as passwd18_24_1_, user2_.snils as snils24_1_, user2_.username as username24_1_, user3_.id as id24_2_, user3_.cert_fingerprint as cert2_24_2_, user3_.created_at as created3_24_2_, user3_.department as department24_2_, user3_.email as email24_2_, user3_.first_name as first6_24_2_, user3_.gisgmp_department as gisgmp7_24_2_, user3_.inherit_adapters as inherit8_24_2_, user3_.last_name as last9_24_2_, user3_.last_updated as last10_24_2_, user3_.middle_name as middle11_24_2_, user3_.mnemonic as mnemonic24_2_, user3_.no_emails as no13_24_2_, user3_.owner as owner24_2_, user3_.passwd as passwd24_2_, user3_.phone as phone24_2_, user3_.position as position24_2_, user3_.region as region24_2_, user3_.passwd_salt as passwd18_24_2_, user3_.snils as snils24_2_, user3_.username as username24_2_, outgoingco4_.id as id27_3_, outgoingco4_.author as author27_3_, outgoingco4_.created_at as created2_27_3_, outgoingco4_.description as descript3_27_3_, outgoingco4_.labels as labels27_3_, outgoingco4_.last_updated as last5_27_3_, outgoingco4_.recipient_code as recipient6_27_3_, outgoingco4_.recipient_name as recipient7_27_3_, outgoingco4_.request_content as request8_27_3_, outgoingco4_.request_date as request9_27_3_, outgoingco4_.response_content as response10_27_3_, outgoingco4_.response_timestamp as response11_27_3_, outgoingco4_.sender_code as sender12_27_3_, outgoingco4_.sender_name as sender13_27_3_, outgoingco4_.service as service27_3_, outgoingco4_.sign_org as sign15_27_3_, outgoingco4_.sign_subj as sign16_27_3_, outgoingco4_.status as status27_3_, outgoingco4_.tp_number as tp18_27_3_, outgoingco4_.trans_code as trans19_27_3_, outgoingco4_.endpoint as endpoint27_3_, outgoingco4_.external_id as external21_27_3_, outgoingco4_.periodic_changed as periodic22_27_3_, outgoingco4_.periodic_req_id as periodic24_27_3_, outgoingco4_.pgu_conv_id as pgu25_27_3_, user5_.id as id24_4_, user5_.cert_fingerprint as cert2_24_4_, user5_.created_at as created3_24_4_, user5_.department as department24_4_, user5_.email as email24_4_, user5_.first_name as first6_24_4_, user5_.gisgmp_department as gisgmp7_24_4_, user5_.inherit_adapters as inherit8_24_4_, user5_.last_name as last9_24_4_, user5_.last_updated as last10_24_4_, user5_.middle_name as middle11_24_4_, user5_.mnemonic as mnemonic24_4_, user5_.no_emails as no13_24_4_, user5_.owner as owner24_4_, user5_.passwd as passwd24_4_, user5_.phone as phone24_4_, user5_.position as position24_4_, user5_.region as region24_4_, user5_.passwd_salt as passwd18_24_4_, user5_.snils as snils24_4_, user5_.username as username24_4_, periodicre6_.id as id28_5_, periodicre6_.created_at as created2_28_5_, periodicre6_.fields as fields28_5_, periodicre6_.group_id as group4_28_5_, periodicre7_.id as id29_6_, periodicre7_.adapter as adapter29_6_, periodicre7_.req_first_nodelay as req3_29_6_, periodicre7_.grid_fields as grid4_29_6_, periodicre7_.name as name29_6_, periodicre7_.owner_id as owner9_29_6_, periodicre7_.req_schedule as req6_29_6_, periodicre7_.req_start as req7_29_6_, periodicre7_.response_fields as response8_29_6_, user8_.id as id24_7_, user8_.cert_fingerprint as cert2_24_7_, user8_.created_at as created3_24_7_, user8_.department as department24_7_, user8_.email as email24_7_, user8_.first_name as first6_24_7_, user8_.gisgmp_department as gisgmp7_24_7_, user8_.inherit_adapters as inherit8_24_7_, user8_.last_name as last9_24_7_, user8_.last_updated as last10_24_7_, user8_.middle_name as middle11_24_7_, user8_.mnemonic as mnemonic24_7_, user8_.no_emails as no13_24_7_, user8_.owner as owner24_7_, user8_.passwd as passwd24_7_, user8_.phone as phone24_7_, user8_.position as position24_7_, user8_.region as region24_7_, user8_.passwd_salt as passwd18_24_7_, user8_.snils as snils24_7_, user8_.username as username24_7_, incomingco9_.id as id26_8_, incomingco9_.author as author26_8_, incomingco9_.created_at as created2_26_8_, incomingco9_.description as descript3_26_8_, incomingco9_.labels as labels26_8_, incomingco9_.last_updated as last5_26_8_, incomingco9_.recipient_code as recipient6_26_8_, incomingco9_.recipient_name as recipient7_26_8_, incomingco9_.request_content as request8_26_8_, incomingco9_.request_date as request9_26_8_, incomingco9_.response_content as response10_26_8_, incomingco9_.response_timestamp as response11_26_8_, incomingco9_.sender_code as sender12_26_8_, incomingco9_.sender_name as sender13_26_8_, incomingco9_.service as service26_8_, incomingco9_.sign_org as sign15_26_8_, incomingco9_.sign_subj as sign16_26_8_, incomingco9_.status as status26_8_, incomingco9_.tp_number as tp18_26_8_, incomingco9_.trans_code as trans19_26_8_, incomingco9_.department as department26_8_, incomingco9_.done_by as done21_26_8_, incomingco9_.last_assigned as last22_26_8_, incomingco9_.oktmo as oktmo26_8_, incomingco9_.reg_date as reg24_26_8_, incomingco9_.reg_number as reg25_26_8_, incomingco9_.rpgu_created_at as rpgu26_26_8_, incomingco9_.service_code as service27_26_8_ from adp_attachment attachment0_ left outer join adp_conversation_in incomingco1_ on attachment0_.conv_in=incomingco1_.id left outer join adp_user user2_ on incomingco1_.author=user2_.id left outer join adp_user user3_ on user2_.owner=user3_.id left outer join adp_conversation_out outgoingco4_ on attachment0_.conv_out=outgoingco4_.id left outer join adp_user user5_ on outgoingco4_.author=user5_.id left outer join adp_periodic_req periodicre6_ on outgoingco4_.periodic_req_id=periodicre6_.id left outer join adp_periodic_req_group periodicre7_ on periodicre6_.group_id=periodicre7_.id left outer join adp_user user8_ on periodicre7_.owner_id=user8_.id left outer join adp_conversation_in incomingco9_ on outgoingco4_.pgu_conv_id=incomingco9_.id where attachment0_.id=?
| 0 | 2 | 27 | 30 | 3 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at <= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 3 | 17 | 22 | 3 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y4_ desc limit ? offset ? | 0 | 21 | 2 | 4 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y2_ desc limit ? offset ? | 0 | 11 | 4 | 6 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 43 | 1 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 13 | 3 | 7 | 1 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 4 | 12 | 24 | 8 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y2_ desc limit ? offset ? | 0 | 6 | 8 | 9 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 22 | 2 | 4 | 0 | 0.00 |
select this_.id as id11_0_, this_.access_key as access2_11_0_, this_.export_result as export3_11_0_, this_.title as title11_0_ from adp_do_department this_ order by this_.title asc | 0 | 23 | 2 | 7 | 2 | 0.00 |
select dynamicada0_.id as id9_0_, dynamicada0_.adapter_id as adapter2_9_0_, dynamicada0_.deprecated as deprecated9_0_, dynamicada0_.mnemonic as mnemonic9_0_, dynamicada0_.name as name9_0_, dynamicada0_.region as region9_0_, dynamicada0_.request_ui as request7_9_0_, dynamicada0_.resp_subj_sign as resp8_9_0_, dynamicada0_.response_ui as response9_9_0_, dynamicada0_.sc_query as sc10_9_0_, dynamicada0_.supp_subj_sign as supp11_9_0_ from adp_dynamic_adapter dynamicada0_ where dynamicada0_.id=? | 0 | 63 | 0 | 13 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 8 | 5 | 27 | 8 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 13 | 3 | 5 | 1 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 4 | 10 | 15 | 3 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 5 | 8 | 17 | 5 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 49 | 0 | 2 | 0 | 0.00 |
select this_.id as id8_3_, this_.department_id as department17_8_3_, this_.done_by_days as done2_8_3_, this_.done_by_days_kind as done3_8_3_, this_.equeue_delay_days as equeue4_8_3_, this_.equeue_enabled as equeue5_8_3_, this_.event_service_url as event6_8_3_, this_.form_id as form7_8_3_, this_.payment_enabled as payment8_8_3_, this_.req_tag_name as req9_8_3_, this_.req_tag_ns as req10_8_3_, this_.request_xslt as request11_8_3_, this_.resp_tag_name as resp12_8_3_, this_.resp_tag_ns as resp13_8_3_, this_.service_code as service14_8_3_, this_.name as name8_3_, this_.smev_version as smev16_8_3_, department2_.id as id9_0_, department2_.adconstruct_enabled as adconstr2_9_0_, department2_.address as address9_0_, department2_.aggregator_disabled as aggregator4_9_0_, department2_.bank_acc as bank5_9_0_, department2_.bic as bic9_0_, department2_.business_hours as business7_9_0_, department2_.coordinates as coordina8_9_0_, department2_.do_dep as do9_9_0_, department2_.is_ebf as is10_9_0_, department2_.equeue_enabled as equeue11_9_0_, department2_.ext_spu_id as ext12_9_0_, department2_.frgu_code as frgu13_9_0_, department2_.gisgmp_code as gisgmp14_9_0_, department2_.gisgmp_main_dep_id as gisgmp23_9_0_, department2_.gisgmp_role as gisgmp15_9_0_, department2_.inn as inn9_0_, department2_.kpp as kpp9_0_, department2_.name as name9_0_, department2_.ogrn as ogrn9_0_, department2_.oktmo as oktmo9_0_, department2_.parent_dep_id as parent24_9_0_, department2_.phone as phone9_0_, department2_.share_conv as share22_9_0_, department3_.id as id9_1_, department3_.adconstruct_enabled as adconstr2_9_1_, department3_.address as address9_1_, department3_.aggregator_disabled as aggregator4_9_1_, department3_.bank_acc as bank5_9_1_, department3_.bic as bic9_1_, department3_.business_hours as business7_9_1_, department3_.coordinates as coordina8_9_1_, department3_.do_dep as do9_9_1_, department3_.is_ebf as is10_9_1_, department3_.equeue_enabled as equeue11_9_1_, department3_.ext_spu_id as ext12_9_1_, department3_.frgu_code as frgu13_9_1_, department3_.gisgmp_code as gisgmp14_9_1_, department3_.gisgmp_main_dep_id as gisgmp23_9_1_, department3_.gisgmp_role as gisgmp15_9_1_, department3_.inn as inn9_1_, department3_.kpp as kpp9_1_, department3_.name as name9_1_, department3_.ogrn as ogrn9_1_, department3_.oktmo as oktmo9_1_, department3_.parent_dep_id as parent24_9_1_, department3_.phone as phone9_1_, department3_.share_conv as share22_9_1_, department4_.id as id9_2_, department4_.adconstruct_enabled as adconstr2_9_2_, department4_.address as address9_2_, department4_.aggregator_disabled as aggregator4_9_2_, department4_.bank_acc as bank5_9_2_, department4_.bic as bic9_2_, department4_.business_hours as business7_9_2_, department4_.coordinates as coordina8_9_2_, department4_.do_dep as do9_9_2_, department4_.is_ebf as is10_9_2_, department4_.equeue_enabled as equeue11_9_2_, department4_.ext_spu_id as ext12_9_2_, department4_.frgu_code as frgu13_9_2_, department4_.gisgmp_code as gisgmp14_9_2_, department4_.gisgmp_main_dep_id as gisgmp23_9_2_, department4_.gisgmp_role as gisgmp15_9_2_, department4_.inn as inn9_2_, department4_.kpp as kpp9_2_, department4_.name as name9_2_, department4_.ogrn as ogrn9_2_, department4_.oktmo as oktmo9_2_, department4_.parent_dep_id as parent24_9_2_, department4_.phone as phone9_2_, department4_.share_conv as share22_9_2_ from adp_pgu_service this_ left outer join adp_department department2_ on this_.department_id=department2_.id left outer join adp_department department3_ on department2_.gisgmp_main_dep_id=department3_.id left outer join adp_department department4_ on department3_.parent_dep_id=department4_.id where this_.service_code=? | 0 | 30 | 1 | 2 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 4 | 10 | 12 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? offset ? | 0 | 10 | 3 | 6 | 1 | 0.00 |
select a.id as id, a.name as name, a.adapter_id as adapterId, a.supp_subj_sign as supportsSubjectSignature, a.sc_query as smartConnectorQuery from adp_dynamic_adapter a order by a.adapter_id asc | 0 | 44 | 0 | 11 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1
| 0 | 51 | 0 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 5 | 7 | 10 | 2 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ?
| 0 | 2 | 17 | 19 | 2 | 0.00 |
select sum(t.cnt), t.sender_name from ( select count(*) cnt, c.sender_name sender_name from adp_conversation_in c where c.request_date >= ? and c.sender_name is not null group by c.sender_name union all select count(*) cnt, ext.sender_name sender_name from adp_conversation_ext ext where ext.is_incoming = '1' and ext.request_date >= ? and ext.sender_name is not null group by ext.sender_name ) t group by t.sender_name order by sum(t.cnt) desc
| 0 | 1 | 34 | 34 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 1 | 34 | 34 | 0 | 0.00 |
select sum(t.cnt), t.sender_name from ( select count(*) cnt, c.sender_name sender_name from adp_conversation_in c where c.request_date >= ? and c.sender_name is not null and c.oktmo like ? || '%' group by c.sender_name union all select count(*) cnt, ext.sender_name sender_name from adp_conversation_ext ext where ext.is_incoming = '1' and ext.request_date >= ? and ext.sender_name is not null and ext.oktmo like ? || '%' group by ext.sender_name ) t group by t.sender_name order by sum(t.cnt) desc
| 0 | 3 | 11 | 17 | 4 | 0.00 |
delete from adp_dynamic_adapter_dpt where adapter_id=? | 0 | 35 | 0 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 5 | 6 | 8 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 1 | 31 | 31 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? offset ? | 0 | 4 | 7 | 9 | 0 | 0.00 |
select dynamicada0_.id as id31_0_, dynamicada0_.adapter_id as adapter2_31_0_, dynamicada0_.deprecated as deprecated31_0_, dynamicada0_.mnemonic as mnemonic31_0_, dynamicada0_.name as name31_0_, dynamicada0_.region as region31_0_, dynamicada0_.request_ui as request7_31_0_, dynamicada0_.resp_subj_sign as resp8_31_0_, dynamicada0_.response_ui as response9_31_0_, dynamicada0_.sc_query as sc10_31_0_, dynamicada0_.supp_subj_sign as supp11_31_0_ from adp_dynamic_adapter dynamicada0_ where dynamicada0_.id=? | 0 | 18 | 1 | 6 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?) )
| 0 | 12 | 2 | 3 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 10 | 2 | 5 | 0 | 0.00 |
insert into adp_user_roles (user_id, role_name) values (?, ?) | 0 | 21 | 1 | 8 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 8 | 3 | 6 | 1 | 0.00 |
select sum(t.cnt), t.dpt from ( select count(*) cnt, u.department dpt from adp_conversation_out c inner join adp_user u on u.id = c.author where c.request_date >= ? and u.department is not null group by u.department union all select count(*) cnt, ext.sender_name dpt from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.sender_name is not null group by ext.sender_name ) t group by t.dpt order by sum(t.cnt) desc
| 0 | 1 | 29 | 29 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 12 | 2 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 3 | 9 | 12 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 49 | 0 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) )
| 0 | 2 | 14 | 14 | 0 | 0.00 |
select outgoingco0_.id as id5_7_, outgoingco0_.author as author5_7_, outgoingco0_.created_at as created2_5_7_, outgoingco0_.description as descript3_5_7_, outgoingco0_.labels as labels5_7_, outgoingco0_.last_updated as last5_5_7_, outgoingco0_.recipient_code as recipient6_5_7_, outgoingco0_.recipient_name as recipient7_5_7_, outgoingco0_.request_content as request8_5_7_, outgoingco0_.request_date as request9_5_7_, outgoingco0_.response_content as response10_5_7_, outgoingco0_.response_timestamp as response11_5_7_, outgoingco0_.sender_code as sender12_5_7_, outgoingco0_.sender_name as sender13_5_7_, outgoingco0_.service as service5_7_, outgoingco0_.sign_org as sign15_5_7_, outgoingco0_.sign_subj as sign16_5_7_, outgoingco0_.status as status5_7_, outgoingco0_.tp_number as tp18_5_7_, outgoingco0_.trans_code as trans19_5_7_, outgoingco0_.endpoint as endpoint5_7_, outgoingco0_.external_id as external21_5_7_, outgoingco0_.periodic_changed as periodic22_5_7_, outgoingco0_.periodic_req_id as periodic24_5_7_, outgoingco0_.pgu_conv_id as pgu25_5_7_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_, periodicre3_.id as id6_2_, periodicre3_.created_at as created2_6_2_, periodicre3_.fields as fields6_2_, periodicre3_.group_id as group4_6_2_, periodicre4_.id as id7_3_, periodicre4_.adapter as adapter7_3_, periodicre4_.req_first_nodelay as req3_7_3_, periodicre4_.grid_fields as grid4_7_3_, periodicre4_.name as name7_3_, periodicre4_.owner_id as owner9_7_3_, periodicre4_.req_schedule as req6_7_3_, periodicre4_.req_start as req7_7_3_, periodicre4_.response_fields as response8_7_3_, user5_.id as id2_4_, user5_.cert_fingerprint as cert2_2_4_, user5_.created_at as created3_2_4_, user5_.department as department2_4_, user5_.email as email2_4_, user5_.first_name as first6_2_4_, user5_.gisgmp_department as gisgmp7_2_4_, user5_.inherit_adapters as inherit8_2_4_, user5_.last_name as last9_2_4_, user5_.last_updated as last10_2_4_, user5_.middle_name as middle11_2_4_, user5_.mnemonic as mnemonic2_4_, user5_.no_emails as no13_2_4_, user5_.owner as owner2_4_, user5_.passwd as passwd2_4_, user5_.phone as phone2_4_, user5_.position as position2_4_, user5_.region as region2_4_, user5_.passwd_salt as passwd18_2_4_, user5_.snils as snils2_4_, user5_.username as username2_4_, incomingco6_.id as id4_5_, incomingco6_.author as author4_5_, incomingco6_.created_at as created2_4_5_, incomingco6_.description as descript3_4_5_, incomingco6_.labels as labels4_5_, incomingco6_.last_updated as last5_4_5_, incomingco6_.recipient_code as recipient6_4_5_, incomingco6_.recipient_name as recipient7_4_5_, incomingco6_.request_content as request8_4_5_, incomingco6_.request_date as request9_4_5_, incomingco6_.response_content as response10_4_5_, incomingco6_.response_timestamp as response11_4_5_, incomingco6_.sender_code as sender12_4_5_, incomingco6_.sender_name as sender13_4_5_, incomingco6_.service as service4_5_, incomingco6_.sign_org as sign15_4_5_, incomingco6_.sign_subj as sign16_4_5_, incomingco6_.status as status4_5_, incomingco6_.tp_number as tp18_4_5_, incomingco6_.trans_code as trans19_4_5_, incomingco6_.department as department4_5_, incomingco6_.done_by as done21_4_5_, incomingco6_.last_assigned as last22_4_5_, incomingco6_.oktmo as oktmo4_5_, incomingco6_.reg_date as reg24_4_5_, incomingco6_.reg_number as reg25_4_5_, incomingco6_.rpgu_created_at as rpgu26_4_5_, incomingco6_.service_code as service27_4_5_, user7_.id as id2_6_, user7_.cert_fingerprint as cert2_2_6_, user7_.created_at as created3_2_6_, user7_.department as department2_6_, user7_.email as email2_6_, user7_.first_name as first6_2_6_, user7_.gisgmp_department as gisgmp7_2_6_, user7_.i Details
select outgoingco0_.id as id5_7_, outgoingco0_.author as author5_7_, outgoingco0_.created_at as created2_5_7_, outgoingco0_.description as descript3_5_7_, outgoingco0_.labels as labels5_7_, outgoingco0_.last_updated as last5_5_7_, outgoingco0_.recipient_code as recipient6_5_7_, outgoingco0_.recipient_name as recipient7_5_7_, outgoingco0_.request_content as request8_5_7_, outgoingco0_.request_date as request9_5_7_, outgoingco0_.response_content as response10_5_7_, outgoingco0_.response_timestamp as response11_5_7_, outgoingco0_.sender_code as sender12_5_7_, outgoingco0_.sender_name as sender13_5_7_, outgoingco0_.service as service5_7_, outgoingco0_.sign_org as sign15_5_7_, outgoingco0_.sign_subj as sign16_5_7_, outgoingco0_.status as status5_7_, outgoingco0_.tp_number as tp18_5_7_, outgoingco0_.trans_code as trans19_5_7_, outgoingco0_.endpoint as endpoint5_7_, outgoingco0_.external_id as external21_5_7_, outgoingco0_.periodic_changed as periodic22_5_7_, outgoingco0_.periodic_req_id as periodic24_5_7_, outgoingco0_.pgu_conv_id as pgu25_5_7_, user1_.id as id2_0_, user1_.cert_fingerprint as cert2_2_0_, user1_.created_at as created3_2_0_, user1_.department as department2_0_, user1_.email as email2_0_, user1_.first_name as first6_2_0_, user1_.gisgmp_department as gisgmp7_2_0_, user1_.inherit_adapters as inherit8_2_0_, user1_.last_name as last9_2_0_, user1_.last_updated as last10_2_0_, user1_.middle_name as middle11_2_0_, user1_.mnemonic as mnemonic2_0_, user1_.no_emails as no13_2_0_, user1_.owner as owner2_0_, user1_.passwd as passwd2_0_, user1_.phone as phone2_0_, user1_.position as position2_0_, user1_.region as region2_0_, user1_.passwd_salt as passwd18_2_0_, user1_.snils as snils2_0_, user1_.username as username2_0_, user2_.id as id2_1_, user2_.cert_fingerprint as cert2_2_1_, user2_.created_at as created3_2_1_, user2_.department as department2_1_, user2_.email as email2_1_, user2_.first_name as first6_2_1_, user2_.gisgmp_department as gisgmp7_2_1_, user2_.inherit_adapters as inherit8_2_1_, user2_.last_name as last9_2_1_, user2_.last_updated as last10_2_1_, user2_.middle_name as middle11_2_1_, user2_.mnemonic as mnemonic2_1_, user2_.no_emails as no13_2_1_, user2_.owner as owner2_1_, user2_.passwd as passwd2_1_, user2_.phone as phone2_1_, user2_.position as position2_1_, user2_.region as region2_1_, user2_.passwd_salt as passwd18_2_1_, user2_.snils as snils2_1_, user2_.username as username2_1_, periodicre3_.id as id6_2_, periodicre3_.created_at as created2_6_2_, periodicre3_.fields as fields6_2_, periodicre3_.group_id as group4_6_2_, periodicre4_.id as id7_3_, periodicre4_.adapter as adapter7_3_, periodicre4_.req_first_nodelay as req3_7_3_, periodicre4_.grid_fields as grid4_7_3_, periodicre4_.name as name7_3_, periodicre4_.owner_id as owner9_7_3_, periodicre4_.req_schedule as req6_7_3_, periodicre4_.req_start as req7_7_3_, periodicre4_.response_fields as response8_7_3_, user5_.id as id2_4_, user5_.cert_fingerprint as cert2_2_4_, user5_.created_at as created3_2_4_, user5_.department as department2_4_, user5_.email as email2_4_, user5_.first_name as first6_2_4_, user5_.gisgmp_department as gisgmp7_2_4_, user5_.inherit_adapters as inherit8_2_4_, user5_.last_name as last9_2_4_, user5_.last_updated as last10_2_4_, user5_.middle_name as middle11_2_4_, user5_.mnemonic as mnemonic2_4_, user5_.no_emails as no13_2_4_, user5_.owner as owner2_4_, user5_.passwd as passwd2_4_, user5_.phone as phone2_4_, user5_.position as position2_4_, user5_.region as region2_4_, user5_.passwd_salt as passwd18_2_4_, user5_.snils as snils2_4_, user5_.username as username2_4_, incomingco6_.id as id4_5_, incomingco6_.author as author4_5_, incomingco6_.created_at as created2_4_5_, incomingco6_.description as descript3_4_5_, incomingco6_.labels as labels4_5_, incomingco6_.last_updated as last5_4_5_, incomingco6_.recipient_code as recipient6_4_5_, incomingco6_.recipient_name as recipient7_4_5_, incomingco6_.request_content as request8_4_5_, incomingco6_.request_date as request9_4_5_, incomingco6_.response_content as response10_4_5_, incomingco6_.response_timestamp as response11_4_5_, incomingco6_.sender_code as sender12_4_5_, incomingco6_.sender_name as sender13_4_5_, incomingco6_.service as service4_5_, incomingco6_.sign_org as sign15_4_5_, incomingco6_.sign_subj as sign16_4_5_, incomingco6_.status as status4_5_, incomingco6_.tp_number as tp18_4_5_, incomingco6_.trans_code as trans19_4_5_, incomingco6_.department as department4_5_, incomingco6_.done_by as done21_4_5_, incomingco6_.last_assigned as last22_4_5_, incomingco6_.oktmo as oktmo4_5_, incomingco6_.reg_date as reg24_4_5_, incomingco6_.reg_number as reg25_4_5_, incomingco6_.rpgu_created_at as rpgu26_4_5_, incomingco6_.service_code as service27_4_5_, user7_.id as id2_6_, user7_.cert_fingerprint as cert2_2_6_, user7_.created_at as created3_2_6_, user7_.department as department2_6_, user7_.email as email2_6_, user7_.first_name as first6_2_6_, user7_.gisgmp_department as gisgmp7_2_6_, user7_.inherit_adapters as inherit8_2_6_, user7_.last_name as last9_2_6_, user7_.last_updated as last10_2_6_, user7_.middle_name as middle11_2_6_, user7_.mnemonic as mnemonic2_6_, user7_.no_emails as no13_2_6_, user7_.owner as owner2_6_, user7_.passwd as passwd2_6_, user7_.phone as phone2_6_, user7_.position as position2_6_, user7_.region as region2_6_, user7_.passwd_salt as passwd18_2_6_, user7_.snils as snils2_6_, user7_.username as username2_6_ from adp_conversation_out outgoingco0_ left outer join adp_user user1_ on outgoingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_periodic_req periodicre3_ on outgoingco0_.periodic_req_id=periodicre3_.id left outer join adp_periodic_req_group periodicre4_ on periodicre3_.group_id=periodicre4_.id left outer join adp_user user5_ on periodicre4_.owner_id=user5_.id left outer join adp_conversation_in incomingco6_ on outgoingco0_.pgu_conv_id=incomingco6_.id left outer join adp_user user7_ on incomingco6_.author=user7_.id where outgoingco0_.id=?
| 0 | 4 | 6 | 10 | 2 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 27 | 27 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 11 | 2 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 4 | 6 | 10 | 2 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?)) )
| 0 | 3 | 8 | 11 | 3 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 12 | 2 | 3 | 0 | 0.00 |
select sum(t.cnt), t.dpt from ( select count(*) cnt, u.department dpt from adp_conversation_out c inner join adp_user u on u.id = c.author where c.request_date >= ? and u.department is not null and u.region = ? group by u.department union all select count(*) cnt, ext.sender_name dpt from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.sender_name is not null group by ext.sender_name ) t group by t.dpt order by sum(t.cnt) desc
| 0 | 3 | 8 | 13 | 4 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 24 | 24 | 0 | 0.00 |
select outgoingco0_.id as id3_7_, outgoingco0_.author as author3_7_, outgoingco0_.created_at as created2_3_7_, outgoingco0_.description as descript3_3_7_, outgoingco0_.labels as labels3_7_, outgoingco0_.last_updated as last5_3_7_, outgoingco0_.recipient_code as recipient6_3_7_, outgoingco0_.recipient_name as recipient7_3_7_, outgoingco0_.request_content as request8_3_7_, outgoingco0_.request_date as request9_3_7_, outgoingco0_.response_content as response10_3_7_, outgoingco0_.response_timestamp as response11_3_7_, outgoingco0_.sender_code as sender12_3_7_, outgoingco0_.sender_name as sender13_3_7_, outgoingco0_.service as service3_7_, outgoingco0_.sign_org as sign15_3_7_, outgoingco0_.sign_subj as sign16_3_7_, outgoingco0_.status as status3_7_, outgoingco0_.tp_number as tp18_3_7_, outgoingco0_.trans_code as trans19_3_7_, outgoingco0_.endpoint as endpoint3_7_, outgoingco0_.external_id as external21_3_7_, outgoingco0_.periodic_changed as periodic22_3_7_, outgoingco0_.periodic_req_id as periodic24_3_7_, outgoingco0_.pgu_conv_id as pgu25_3_7_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_, user2_.id as id0_1_, user2_.cert_fingerprint as cert2_0_1_, user2_.created_at as created3_0_1_, user2_.department as department0_1_, user2_.email as email0_1_, user2_.first_name as first6_0_1_, user2_.gisgmp_department as gisgmp7_0_1_, user2_.inherit_adapters as inherit8_0_1_, user2_.last_name as last9_0_1_, user2_.last_updated as last10_0_1_, user2_.middle_name as middle11_0_1_, user2_.mnemonic as mnemonic0_1_, user2_.no_emails as no13_0_1_, user2_.owner as owner0_1_, user2_.passwd as passwd0_1_, user2_.phone as phone0_1_, user2_.position as position0_1_, user2_.region as region0_1_, user2_.passwd_salt as passwd18_0_1_, user2_.snils as snils0_1_, user2_.username as username0_1_, periodicre3_.id as id4_2_, periodicre3_.created_at as created2_4_2_, periodicre3_.fields as fields4_2_, periodicre3_.group_id as group4_4_2_, periodicre4_.id as id5_3_, periodicre4_.adapter as adapter5_3_, periodicre4_.req_first_nodelay as req3_5_3_, periodicre4_.grid_fields as grid4_5_3_, periodicre4_.name as name5_3_, periodicre4_.owner_id as owner9_5_3_, periodicre4_.req_schedule as req6_5_3_, periodicre4_.req_start as req7_5_3_, periodicre4_.response_fields as response8_5_3_, user5_.id as id0_4_, user5_.cert_fingerprint as cert2_0_4_, user5_.created_at as created3_0_4_, user5_.department as department0_4_, user5_.email as email0_4_, user5_.first_name as first6_0_4_, user5_.gisgmp_department as gisgmp7_0_4_, user5_.inherit_adapters as inherit8_0_4_, user5_.last_name as last9_0_4_, user5_.last_updated as last10_0_4_, user5_.middle_name as middle11_0_4_, user5_.mnemonic as mnemonic0_4_, user5_.no_emails as no13_0_4_, user5_.owner as owner0_4_, user5_.passwd as passwd0_4_, user5_.phone as phone0_4_, user5_.position as position0_4_, user5_.region as region0_4_, user5_.passwd_salt as passwd18_0_4_, user5_.snils as snils0_4_, user5_.username as username0_4_, incomingco6_.id as id2_5_, incomingco6_.author as author2_5_, incomingco6_.created_at as created2_2_5_, incomingco6_.description as descript3_2_5_, incomingco6_.labels as labels2_5_, incomingco6_.last_updated as last5_2_5_, incomingco6_.recipient_code as recipient6_2_5_, incomingco6_.recipient_name as recipient7_2_5_, incomingco6_.request_content as request8_2_5_, incomingco6_.request_date as request9_2_5_, incomingco6_.response_content as response10_2_5_, incomingco6_.response_timestamp as response11_2_5_, incomingco6_.sender_code as sender12_2_5_, incomingco6_.sender_name as sender13_2_5_, incomingco6_.service as service2_5_, incomingco6_.sign_org as sign15_2_5_, incomingco6_.sign_subj as sign16_2_5_, incomingco6_.status as status2_5_, incomingco6_.tp_number as tp18_2_5_, incomingco6_.trans_code as trans19_2_5_, incomingco6_.department as department2_5_, incomingco6_.done_by as done21_2_5_, incomingco6_.last_assigned as last22_2_5_, incomingco6_.oktmo as oktmo2_5_, incomingco6_.reg_date as reg24_2_5_, incomingco6_.reg_number as reg25_2_5_, incomingco6_.rpgu_created_at as rpgu26_2_5_, incomingco6_.service_code as service27_2_5_, user7_.id as id0_6_, user7_.cert_fingerprint as cert2_0_6_, user7_.created_at as created3_0_6_, user7_.department as department0_6_, user7_.email as email0_6_, user7_.first_name as first6_0_6_, user7_.gisgmp_department as gisgmp7_0_6_, user7_.i Details
select outgoingco0_.id as id3_7_, outgoingco0_.author as author3_7_, outgoingco0_.created_at as created2_3_7_, outgoingco0_.description as descript3_3_7_, outgoingco0_.labels as labels3_7_, outgoingco0_.last_updated as last5_3_7_, outgoingco0_.recipient_code as recipient6_3_7_, outgoingco0_.recipient_name as recipient7_3_7_, outgoingco0_.request_content as request8_3_7_, outgoingco0_.request_date as request9_3_7_, outgoingco0_.response_content as response10_3_7_, outgoingco0_.response_timestamp as response11_3_7_, outgoingco0_.sender_code as sender12_3_7_, outgoingco0_.sender_name as sender13_3_7_, outgoingco0_.service as service3_7_, outgoingco0_.sign_org as sign15_3_7_, outgoingco0_.sign_subj as sign16_3_7_, outgoingco0_.status as status3_7_, outgoingco0_.tp_number as tp18_3_7_, outgoingco0_.trans_code as trans19_3_7_, outgoingco0_.endpoint as endpoint3_7_, outgoingco0_.external_id as external21_3_7_, outgoingco0_.periodic_changed as periodic22_3_7_, outgoingco0_.periodic_req_id as periodic24_3_7_, outgoingco0_.pgu_conv_id as pgu25_3_7_, user1_.id as id0_0_, user1_.cert_fingerprint as cert2_0_0_, user1_.created_at as created3_0_0_, user1_.department as department0_0_, user1_.email as email0_0_, user1_.first_name as first6_0_0_, user1_.gisgmp_department as gisgmp7_0_0_, user1_.inherit_adapters as inherit8_0_0_, user1_.last_name as last9_0_0_, user1_.last_updated as last10_0_0_, user1_.middle_name as middle11_0_0_, user1_.mnemonic as mnemonic0_0_, user1_.no_emails as no13_0_0_, user1_.owner as owner0_0_, user1_.passwd as passwd0_0_, user1_.phone as phone0_0_, user1_.position as position0_0_, user1_.region as region0_0_, user1_.passwd_salt as passwd18_0_0_, user1_.snils as snils0_0_, user1_.username as username0_0_, user2_.id as id0_1_, user2_.cert_fingerprint as cert2_0_1_, user2_.created_at as created3_0_1_, user2_.department as department0_1_, user2_.email as email0_1_, user2_.first_name as first6_0_1_, user2_.gisgmp_department as gisgmp7_0_1_, user2_.inherit_adapters as inherit8_0_1_, user2_.last_name as last9_0_1_, user2_.last_updated as last10_0_1_, user2_.middle_name as middle11_0_1_, user2_.mnemonic as mnemonic0_1_, user2_.no_emails as no13_0_1_, user2_.owner as owner0_1_, user2_.passwd as passwd0_1_, user2_.phone as phone0_1_, user2_.position as position0_1_, user2_.region as region0_1_, user2_.passwd_salt as passwd18_0_1_, user2_.snils as snils0_1_, user2_.username as username0_1_, periodicre3_.id as id4_2_, periodicre3_.created_at as created2_4_2_, periodicre3_.fields as fields4_2_, periodicre3_.group_id as group4_4_2_, periodicre4_.id as id5_3_, periodicre4_.adapter as adapter5_3_, periodicre4_.req_first_nodelay as req3_5_3_, periodicre4_.grid_fields as grid4_5_3_, periodicre4_.name as name5_3_, periodicre4_.owner_id as owner9_5_3_, periodicre4_.req_schedule as req6_5_3_, periodicre4_.req_start as req7_5_3_, periodicre4_.response_fields as response8_5_3_, user5_.id as id0_4_, user5_.cert_fingerprint as cert2_0_4_, user5_.created_at as created3_0_4_, user5_.department as department0_4_, user5_.email as email0_4_, user5_.first_name as first6_0_4_, user5_.gisgmp_department as gisgmp7_0_4_, user5_.inherit_adapters as inherit8_0_4_, user5_.last_name as last9_0_4_, user5_.last_updated as last10_0_4_, user5_.middle_name as middle11_0_4_, user5_.mnemonic as mnemonic0_4_, user5_.no_emails as no13_0_4_, user5_.owner as owner0_4_, user5_.passwd as passwd0_4_, user5_.phone as phone0_4_, user5_.position as position0_4_, user5_.region as region0_4_, user5_.passwd_salt as passwd18_0_4_, user5_.snils as snils0_4_, user5_.username as username0_4_, incomingco6_.id as id2_5_, incomingco6_.author as author2_5_, incomingco6_.created_at as created2_2_5_, incomingco6_.description as descript3_2_5_, incomingco6_.labels as labels2_5_, incomingco6_.last_updated as last5_2_5_, incomingco6_.recipient_code as recipient6_2_5_, incomingco6_.recipient_name as recipient7_2_5_, incomingco6_.request_content as request8_2_5_, incomingco6_.request_date as request9_2_5_, incomingco6_.response_content as response10_2_5_, incomingco6_.response_timestamp as response11_2_5_, incomingco6_.sender_code as sender12_2_5_, incomingco6_.sender_name as sender13_2_5_, incomingco6_.service as service2_5_, incomingco6_.sign_org as sign15_2_5_, incomingco6_.sign_subj as sign16_2_5_, incomingco6_.status as status2_5_, incomingco6_.tp_number as tp18_2_5_, incomingco6_.trans_code as trans19_2_5_, incomingco6_.department as department2_5_, incomingco6_.done_by as done21_2_5_, incomingco6_.last_assigned as last22_2_5_, incomingco6_.oktmo as oktmo2_5_, incomingco6_.reg_date as reg24_2_5_, incomingco6_.reg_number as reg25_2_5_, incomingco6_.rpgu_created_at as rpgu26_2_5_, incomingco6_.service_code as service27_2_5_, user7_.id as id0_6_, user7_.cert_fingerprint as cert2_0_6_, user7_.created_at as created3_0_6_, user7_.department as department0_6_, user7_.email as email0_6_, user7_.first_name as first6_0_6_, user7_.gisgmp_department as gisgmp7_0_6_, user7_.inherit_adapters as inherit8_0_6_, user7_.last_name as last9_0_6_, user7_.last_updated as last10_0_6_, user7_.middle_name as middle11_0_6_, user7_.mnemonic as mnemonic0_6_, user7_.no_emails as no13_0_6_, user7_.owner as owner0_6_, user7_.passwd as passwd0_6_, user7_.phone as phone0_6_, user7_.position as position0_6_, user7_.region as region0_6_, user7_.passwd_salt as passwd18_0_6_, user7_.snils as snils0_6_, user7_.username as username0_6_ from adp_conversation_out outgoingco0_ left outer join adp_user user1_ on outgoingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_periodic_req periodicre3_ on outgoingco0_.periodic_req_id=periodicre3_.id left outer join adp_periodic_req_group periodicre4_ on periodicre3_.group_id=periodicre4_.id left outer join adp_user user5_ on periodicre4_.owner_id=user5_.id left outer join adp_conversation_in incomingco6_ on outgoingco0_.pgu_conv_id=incomingco6_.id left outer join adp_user user7_ on incomingco6_.author=user7_.id where outgoingco0_.id=?
| 0 | 1 | 24 | 24 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 5 | 4 | 9 | 3 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? and (this_.owner=? or this_.id=?) order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 8 | 3 | 7 | 1 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) | 0 | 6 | 4 | 6 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 7 | 3 | 6 | 1 | 0.00 |
select this_.status as y0_, count(*) as y1_ from adp_charge this_ where this_.created_at>=? group by this_.status | 0 | 2 | 12 | 16 | 5 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 7 | 3 | 12 | 4 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 18 | 1 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 9 | 2 | 4 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 9 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by this_.created_at desc limit ? | 0 | 6 | 3 | 4 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, Details
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' ||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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ?
| 0 | 1 | 21 | 21 | 0 | 0.00 |
select this_.id as id22_1_, this_.cert_fingerprint as cert2_22_1_, this_.created_at as created3_22_1_, this_.department as department22_1_, this_.email as email22_1_, this_.first_name as first6_22_1_, this_.gisgmp_department as gisgmp7_22_1_, this_.inherit_adapters as inherit8_22_1_, this_.last_name as last9_22_1_, this_.last_updated as last10_22_1_, this_.middle_name as middle11_22_1_, this_.mnemonic as mnemonic22_1_, this_.no_emails as no13_22_1_, this_.owner as owner22_1_, this_.passwd as passwd22_1_, this_.phone as phone22_1_, this_.position as position22_1_, this_.region as region22_1_, this_.passwd_salt as passwd18_22_1_, this_.snils as snils22_1_, this_.username as username22_1_, user2_.id as id22_0_, user2_.cert_fingerprint as cert2_22_0_, user2_.created_at as created3_22_0_, user2_.department as department22_0_, user2_.email as email22_0_, user2_.first_name as first6_22_0_, user2_.gisgmp_department as gisgmp7_22_0_, user2_.inherit_adapters as inherit8_22_0_, user2_.last_name as last9_22_0_, user2_.last_updated as last10_22_0_, user2_.middle_name as middle11_22_0_, user2_.mnemonic as mnemonic22_0_, user2_.no_emails as no13_22_0_, user2_.owner as owner22_0_, user2_.passwd as passwd22_0_, user2_.phone as phone22_0_, user2_.position as position22_0_, user2_.region as region22_0_, user2_.passwd_salt as passwd18_22_0_, user2_.snils as snils22_0_, user2_.username as username22_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where lower(this_.username)=? | 0 | 11 | 1 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) )
| 0 | 1 | 20 | 20 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, Details
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) )
| 0 | 1 | 20 | 20 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 3 | 6 | 8 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? offset ? | 0 | 4 | 4 | 6 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 order by u.last_name, u.first_name, u.middle_name, u.id limit ? offset ? | 0 | 10 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date > interval '5' second order by y4_ desc limit ? | 0 | 2 | 9 | 10 | 0 | 0.00 |
select outgoingco0_.id as id25_7_, outgoingco0_.author as author25_7_, outgoingco0_.created_at as created2_25_7_, outgoingco0_.description as descript3_25_7_, outgoingco0_.labels as labels25_7_, outgoingco0_.last_updated as last5_25_7_, outgoingco0_.recipient_code as recipient6_25_7_, outgoingco0_.recipient_name as recipient7_25_7_, outgoingco0_.request_content as request8_25_7_, outgoingco0_.request_date as request9_25_7_, outgoingco0_.response_content as response10_25_7_, outgoingco0_.response_timestamp as response11_25_7_, outgoingco0_.sender_code as sender12_25_7_, outgoingco0_.sender_name as sender13_25_7_, outgoingco0_.service as service25_7_, outgoingco0_.sign_org as sign15_25_7_, outgoingco0_.sign_subj as sign16_25_7_, outgoingco0_.status as status25_7_, outgoingco0_.tp_number as tp18_25_7_, outgoingco0_.trans_code as trans19_25_7_, outgoingco0_.endpoint as endpoint25_7_, outgoingco0_.external_id as external21_25_7_, outgoingco0_.periodic_changed as periodic22_25_7_, outgoingco0_.periodic_req_id as periodic24_25_7_, outgoingco0_.pgu_conv_id as pgu25_25_7_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_, periodicre3_.id as id26_2_, periodicre3_.created_at as created2_26_2_, periodicre3_.fields as fields26_2_, periodicre3_.group_id as group4_26_2_, periodicre4_.id as id27_3_, periodicre4_.adapter as adapter27_3_, periodicre4_.req_first_nodelay as req3_27_3_, periodicre4_.grid_fields as grid4_27_3_, periodicre4_.name as name27_3_, periodicre4_.owner_id as owner9_27_3_, periodicre4_.req_schedule as req6_27_3_, periodicre4_.req_start as req7_27_3_, periodicre4_.response_fields as response8_27_3_, user5_.id as id22_4_, user5_.cert_fingerprint as cert2_22_4_, user5_.created_at as created3_22_4_, user5_.department as department22_4_, user5_.email as email22_4_, user5_.first_name as first6_22_4_, user5_.gisgmp_department as gisgmp7_22_4_, user5_.inherit_adapters as inherit8_22_4_, user5_.last_name as last9_22_4_, user5_.last_updated as last10_22_4_, user5_.middle_name as middle11_22_4_, user5_.mnemonic as mnemonic22_4_, user5_.no_emails as no13_22_4_, user5_.owner as owner22_4_, user5_.passwd as passwd22_4_, user5_.phone as phone22_4_, user5_.position as position22_4_, user5_.region as region22_4_, user5_.passwd_salt as passwd18_22_4_, user5_.snils as snils22_4_, user5_.username as username22_4_, incomingco6_.id as id24_5_, incomingco6_.author as author24_5_, incomingco6_.created_at as created2_24_5_, incomingco6_.description as descript3_24_5_, incomingco6_.labels as labels24_5_, incomingco6_.last_updated as last5_24_5_, incomingco6_.recipient_code as recipient6_24_5_, incomingco6_.recipient_name as recipient7_24_5_, incomingco6_.request_content as request8_24_5_, incomingco6_.request_date as request9_24_5_, incomingco6_.response_content as response10_24_5_, incomingco6_.response_timestamp as response11_24_5_, incomingco6_.sender_code as sender12_24_5_, incomingco6_.sender_name as sender13_24_5_, incomingco6_.service as service24_5_, incomingco6_.sign_org as sign15_24_5_, incomingco6_.sign_subj as sign16_24_5_, incomingco6_.status as status24_5_, incomingco6_.tp_number as tp18_24_5_, incomingco6_.trans_code as trans19_24_5_, incomingco6_.department as department24_5_, incomingco6_.done_by as done21_24_5_, incomingco6_.last_assigned as last22_24_5_, incomingco6_.oktmo as oktmo24_5_, incomingco6_.reg_date as reg24_24_5_, incomingco6_.reg_number as reg25_24_5_, incomingco6_.rpgu_created_at as rpgu26_24_5_, incomingco6_.service_code as service27_24_5_, user7_.id as id22_6_, user7_.cert_fingerprint as cert2_22_6_, user7_.created_at as created3_22_6_, user7_.departmen Details
select outgoingco0_.id as id25_7_, outgoingco0_.author as author25_7_, outgoingco0_.created_at as created2_25_7_, outgoingco0_.description as descript3_25_7_, outgoingco0_.labels as labels25_7_, outgoingco0_.last_updated as last5_25_7_, outgoingco0_.recipient_code as recipient6_25_7_, outgoingco0_.recipient_name as recipient7_25_7_, outgoingco0_.request_content as request8_25_7_, outgoingco0_.request_date as request9_25_7_, outgoingco0_.response_content as response10_25_7_, outgoingco0_.response_timestamp as response11_25_7_, outgoingco0_.sender_code as sender12_25_7_, outgoingco0_.sender_name as sender13_25_7_, outgoingco0_.service as service25_7_, outgoingco0_.sign_org as sign15_25_7_, outgoingco0_.sign_subj as sign16_25_7_, outgoingco0_.status as status25_7_, outgoingco0_.tp_number as tp18_25_7_, outgoingco0_.trans_code as trans19_25_7_, outgoingco0_.endpoint as endpoint25_7_, outgoingco0_.external_id as external21_25_7_, outgoingco0_.periodic_changed as periodic22_25_7_, outgoingco0_.periodic_req_id as periodic24_25_7_, outgoingco0_.pgu_conv_id as pgu25_25_7_, user1_.id as id22_0_, user1_.cert_fingerprint as cert2_22_0_, user1_.created_at as created3_22_0_, user1_.department as department22_0_, user1_.email as email22_0_, user1_.first_name as first6_22_0_, user1_.gisgmp_department as gisgmp7_22_0_, user1_.inherit_adapters as inherit8_22_0_, user1_.last_name as last9_22_0_, user1_.last_updated as last10_22_0_, user1_.middle_name as middle11_22_0_, user1_.mnemonic as mnemonic22_0_, user1_.no_emails as no13_22_0_, user1_.owner as owner22_0_, user1_.passwd as passwd22_0_, user1_.phone as phone22_0_, user1_.position as position22_0_, user1_.region as region22_0_, user1_.passwd_salt as passwd18_22_0_, user1_.snils as snils22_0_, user1_.username as username22_0_, user2_.id as id22_1_, user2_.cert_fingerprint as cert2_22_1_, user2_.created_at as created3_22_1_, user2_.department as department22_1_, user2_.email as email22_1_, user2_.first_name as first6_22_1_, user2_.gisgmp_department as gisgmp7_22_1_, user2_.inherit_adapters as inherit8_22_1_, user2_.last_name as last9_22_1_, user2_.last_updated as last10_22_1_, user2_.middle_name as middle11_22_1_, user2_.mnemonic as mnemonic22_1_, user2_.no_emails as no13_22_1_, user2_.owner as owner22_1_, user2_.passwd as passwd22_1_, user2_.phone as phone22_1_, user2_.position as position22_1_, user2_.region as region22_1_, user2_.passwd_salt as passwd18_22_1_, user2_.snils as snils22_1_, user2_.username as username22_1_, periodicre3_.id as id26_2_, periodicre3_.created_at as created2_26_2_, periodicre3_.fields as fields26_2_, periodicre3_.group_id as group4_26_2_, periodicre4_.id as id27_3_, periodicre4_.adapter as adapter27_3_, periodicre4_.req_first_nodelay as req3_27_3_, periodicre4_.grid_fields as grid4_27_3_, periodicre4_.name as name27_3_, periodicre4_.owner_id as owner9_27_3_, periodicre4_.req_schedule as req6_27_3_, periodicre4_.req_start as req7_27_3_, periodicre4_.response_fields as response8_27_3_, user5_.id as id22_4_, user5_.cert_fingerprint as cert2_22_4_, user5_.created_at as created3_22_4_, user5_.department as department22_4_, user5_.email as email22_4_, user5_.first_name as first6_22_4_, user5_.gisgmp_department as gisgmp7_22_4_, user5_.inherit_adapters as inherit8_22_4_, user5_.last_name as last9_22_4_, user5_.last_updated as last10_22_4_, user5_.middle_name as middle11_22_4_, user5_.mnemonic as mnemonic22_4_, user5_.no_emails as no13_22_4_, user5_.owner as owner22_4_, user5_.passwd as passwd22_4_, user5_.phone as phone22_4_, user5_.position as position22_4_, user5_.region as region22_4_, user5_.passwd_salt as passwd18_22_4_, user5_.snils as snils22_4_, user5_.username as username22_4_, incomingco6_.id as id24_5_, incomingco6_.author as author24_5_, incomingco6_.created_at as created2_24_5_, incomingco6_.description as descript3_24_5_, incomingco6_.labels as labels24_5_, incomingco6_.last_updated as last5_24_5_, incomingco6_.recipient_code as recipient6_24_5_, incomingco6_.recipient_name as recipient7_24_5_, incomingco6_.request_content as request8_24_5_, incomingco6_.request_date as request9_24_5_, incomingco6_.response_content as response10_24_5_, incomingco6_.response_timestamp as response11_24_5_, incomingco6_.sender_code as sender12_24_5_, incomingco6_.sender_name as sender13_24_5_, incomingco6_.service as service24_5_, incomingco6_.sign_org as sign15_24_5_, incomingco6_.sign_subj as sign16_24_5_, incomingco6_.status as status24_5_, incomingco6_.tp_number as tp18_24_5_, incomingco6_.trans_code as trans19_24_5_, incomingco6_.department as department24_5_, incomingco6_.done_by as done21_24_5_, incomingco6_.last_assigned as last22_24_5_, incomingco6_.oktmo as oktmo24_5_, incomingco6_.reg_date as reg24_24_5_, incomingco6_.reg_number as reg25_24_5_, incomingco6_.rpgu_created_at as rpgu26_24_5_, incomingco6_.service_code as service27_24_5_, user7_.id as id22_6_, user7_.cert_fingerprint as cert2_22_6_, user7_.created_at as created3_22_6_, user7_.department as department22_6_, user7_.email as email22_6_, user7_.first_name as first6_22_6_, user7_.gisgmp_department as gisgmp7_22_6_, user7_.inherit_adapters as inherit8_22_6_, user7_.last_name as last9_22_6_, user7_.last_updated as last10_22_6_, user7_.middle_name as middle11_22_6_, user7_.mnemonic as mnemonic22_6_, user7_.no_emails as no13_22_6_, user7_.owner as owner22_6_, user7_.passwd as passwd22_6_, user7_.phone as phone22_6_, user7_.position as position22_6_, user7_.region as region22_6_, user7_.passwd_salt as passwd18_22_6_, user7_.snils as snils22_6_, user7_.username as username22_6_ from adp_conversation_out outgoingco0_ left outer join adp_user user1_ on outgoingco0_.author=user1_.id left outer join adp_user user2_ on user1_.owner=user2_.id left outer join adp_periodic_req periodicre3_ on outgoingco0_.periodic_req_id=periodicre3_.id left outer join adp_periodic_req_group periodicre4_ on periodicre3_.group_id=periodicre4_.id left outer join adp_user user5_ on periodicre4_.owner_id=user5_.id left outer join adp_conversation_in incomingco6_ on outgoingco0_.pgu_conv_id=incomingco6_.id left outer join adp_user user7_ on incomingco6_.author=user7_.id where outgoingco0_.id=?
| 0 | 3 | 6 | 7 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status=? order by y4_ desc limit ? | 0 | 2 | 9 | 11 | 2 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 19 | 19 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?) )
| 0 | 6 | 3 | 8 | 2 | 0.00 |
select sum(t.cnt), t.dt from ( select count(*) cnt, extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) dt from adp_conversation_out c inner join adp_user u on u.id = c.author and u.region = ? where c.request_date >= ? group by extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date)
union all select count(*) cnt, extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) dt from adp_conversation_ext c where c.request_date >= ? and c.is_incoming = '0' group by extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) ) t group by t.dt order by t.dt desc
| 0 | 3 | 6 | 7 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status=? order by y4_ desc limit ? | 0 | 2 | 9 | 15 | 8 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ?) and this_.service in (?, ?) and this_.service_code is null and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 11 | 1 | 2 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 6 | 2 | 6 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, Details
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?,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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ?
| 0 | 1 | 17 | 17 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?)) )
| 0 | 3 | 5 | 11 | 4 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y2_ asc limit ? offset ? | 0 | 2 | 8 | 10 | 2 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 4 | 4 | 5 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? order by u.last_name, u.first_name, u.middle_name, u.id limit ? offset ? | 0 | 8 | 2 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_n Details
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ?
| 0 | 1 | 17 | 17 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 8 | 2 | 4 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?) )
| 0 | 9 | 1 | 2 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 3 | 5 | 7 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at <= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y2_ desc limit ? offset ? | 0 | 4 | 4 | 4 | 0 | 0.00 |
select g.id "id", g.name "name", g.req_schedule "schedule", g.req_start "startDate", max(case when c.periodic_changed then '1' else '0' end) "hasChanges" from adp_periodic_req_group g left join adp_periodic_req r on r.group_id = g.id left join adp_conversation_out c on c.periodic_req_id = r.id and c.response_timestamp = (select max(c2.response_timestamp) from adp_conversation_out c2 where c2.periodic_req_id = r.id) where g.owner_id = ? group by g.id, g.name, g.req_schedule, g.req_start order by max(case when c.periodic_changed then '1' else '0' end) desc, lower(g.name) asc
| 0 | 2 | 8 | 9 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 2 | 8 | 8 | 0 | 0.00 |
select count(*) as y0_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 7 | 2 | 2 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?)) )
| 0 | 1 | 15 | 15 | 0 | 0.00 |
select this_.id as id0_1_, this_.cert_fingerprint as cert2_0_1_, this_.created_at as created3_0_1_, this_.department as department0_1_, this_.email as email0_1_, this_.first_name as first6_0_1_, this_.gisgmp_department as gisgmp7_0_1_, this_.inherit_adapters as inherit8_0_1_, this_.last_name as last9_0_1_, this_.last_updated as last10_0_1_, this_.middle_name as middle11_0_1_, this_.mnemonic as mnemonic0_1_, this_.no_emails as no13_0_1_, this_.owner as owner0_1_, this_.passwd as passwd0_1_, this_.phone as phone0_1_, this_.position as position0_1_, this_.region as region0_1_, this_.passwd_salt as passwd18_0_1_, this_.snils as snils0_1_, this_.username as username0_1_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 2 | 7 | 8 | 0 | 0.00 |
select this_.id as id13_0_, this_.access_key as access2_13_0_, this_.export_result as export3_13_0_, this_.title as title13_0_ from adp_do_department this_ order by this_.title asc | 0 | 18 | 0 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 15 | 15 | 0 | 0.00 |
select this_.id as id26_0_, this_.access_key as access2_26_0_, this_.export_result as export3_26_0_, this_.title as title26_0_ from adp_do_department this_ order by this_.title asc | 0 | 6 | 2 | 7 | 2 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?) )
| 0 | 7 | 2 | 3 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by this_.created_at desc limit ? | 0 | 5 | 3 | 5 | 1 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 4 | 3 | 4 | 0 | 0.00 |
insert into adp_dictionary_documents (Dictionary_id, document) values (?, ?) | 0 | 2 | 7 | 7 | 9 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ?) and this_.service in (?, ?) and this_.service_code is null and this_.created_at >= ? order by this_.created_at desc limit ? | 0 | 11 | 1 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?) )
| 0 | 7 | 2 | 3 | 0 | 0.00 |
update adp_dynamic_adapter set adapter_id=?, deprecated=?, mnemonic=?, name=?, region=?, request_ui=?, resp_subj_sign=?, response_ui=?, sc_query=?, supp_subj_sign=? where id=? | 0 | 13 | 1 | 4 | 0 | 0.00 |
select slot.id "id", slot.department "department", slot.service_code "serviceCode", slot.start_at "start", slot.duration "duration", slot.capacity "capacity", (select count(*) from adp_equeue_appointment a where a.slot_id = slot.id) "occupied" from adp_equeue_slot slot where 1 = 1
| 0 | 7 | 2 | 5 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?)) )
| 0 | 1 | 14 | 14 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 5 | 2 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 4 | 3 | 4 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? Details
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) )
| 0 | 1 | 14 | 14 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by this_.created_at desc limit ? | 0 | 7 | 1 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 6 | 2 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? offset ? | 0 | 6 | 2 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 2 | 6 | 11 | 6 | 0.00 |
select this_.id as id24_0_, this_.access_key as access2_24_0_, this_.export_result as export3_24_0_, this_.title as title24_0_ from adp_do_department this_ order by this_.title asc | 0 | 8 | 1 | 4 | 1 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 8 | 1 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?) )
| 0 | 6 | 2 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 12 | 12 | 0 | 0.00 |
select this_.id as id0_1_, this_.cert_fingerprint as cert2_0_1_, this_.created_at as created3_0_1_, this_.department as department0_1_, this_.email as email0_1_, this_.first_name as first6_0_1_, this_.gisgmp_department as gisgmp7_0_1_, this_.inherit_adapters as inherit8_0_1_, this_.last_name as last9_0_1_, this_.last_updated as last10_0_1_, this_.middle_name as middle11_0_1_, this_.mnemonic as mnemonic0_1_, this_.no_emails as no13_0_1_, this_.owner as owner0_1_, this_.passwd as passwd0_1_, this_.phone as phone0_1_, this_.position as position0_1_, this_.region as region0_1_, this_.passwd_salt as passwd18_0_1_, this_.snils as snils0_1_, this_.username as username0_1_, user2_.id as id0_0_, user2_.cert_fingerprint as cert2_0_0_, user2_.created_at as created3_0_0_, user2_.department as department0_0_, user2_.email as email0_0_, user2_.first_name as first6_0_0_, user2_.gisgmp_department as gisgmp7_0_0_, user2_.inherit_adapters as inherit8_0_0_, user2_.last_name as last9_0_0_, user2_.last_updated as last10_0_0_, user2_.middle_name as middle11_0_0_, user2_.mnemonic as mnemonic0_0_, user2_.no_emails as no13_0_0_, user2_.owner as owner0_0_, user2_.passwd as passwd0_0_, user2_.phone as phone0_0_, user2_.position as position0_0_, user2_.region as region0_0_, user2_.passwd_salt as passwd18_0_0_, user2_.snils as snils0_0_, user2_.username as username0_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? and (this_.owner=? or this_.id=?) order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 4 | 3 | 7 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 4 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? offset ? | 0 | 1 | 12 | 12 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 2 | 5 | 6 | 0 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where not this_.id=? order by this_.last_name asc, this_.first_name asc, this_.middle_name asc | 0 | 2 | 5 | 6 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) order by y4_ desc limit ? | 0 | 5 | 2 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and (u.id = ? or u.owner = ?) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 17 | 0 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? offset ? | 0 | 11 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) order by y4_ desc limit ? offset ? | 0 | 3 | 3 | 4 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at <= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y2_ desc limit ? | 0 | 3 | 3 | 4 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 11 | 11 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1 | 11 | 11 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 5 | 2 | 2 | 0 | 0.00 |
select count(*) as y0_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 12 | 0 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y1_ asc limit ? offset ? | 0 | 2 | 5 | 6 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at <= ? order by y2_ desc limit ? | 0 | 3 | 3 | 4 | 1 | 0.00 |
select this_.id as y0_, this_.status as y1_, s2_.id as y2_, s2_.department as y3_, s2_.region as y4_, s2_.service_code as y5_, s2_.start_at as y6_, s2_.duration as y7_, s2_.capacity as y8_, a1_.id as y9_, a1_.last_name as y10_, a1_.first_name as y11_, a1_.middle_name as y12_ from adp_equeue_appointment this_ left outer join adp_user a1_ on this_.assignee_id=a1_.id inner join adp_equeue_slot s2_ on this_.slot_id=s2_.id where not this_.status=? | 0 | 7 | 1 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 10 | 10 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 7 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date > interval '5' second order by y4_ desc limit ? offset ? | 0 | 2 | 5 | 5 | 0 | 0.00 |
select * from pg_stat_activity | 0 | 2 | 5 | 5 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 3 | 3 | 4 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 2 | 4 | 6 | 2 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 12 | 0 | 1 | 0 | 0.00 |
select this_.id as id31_0_, this_.adapter_id as adapter2_31_0_, this_.deprecated as deprecated31_0_, this_.mnemonic as mnemonic31_0_, this_.name as name31_0_, this_.region as region31_0_, this_.request_ui as request7_31_0_, this_.resp_subj_sign as resp8_31_0_, this_.response_ui as response9_31_0_, this_.sc_query as sc10_31_0_, this_.supp_subj_sign as supp11_31_0_ from adp_dynamic_adapter this_ | 0 | 3 | 3 | 4 | 1 | 0.00 |
select count(*) from adp_user u where 1 = 1 and (u.id = ? or u.owner = ?)
| 0 | 17 | 0 | 1 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 7 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 7 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, s2_.id as y2_, s2_.department as y3_, s2_.region as y4_, s2_.service_code as y5_, s2_.start_at as y6_, s2_.duration as y7_, s2_.capacity as y8_, a1_.id as y9_, a1_.last_name as y10_, a1_.first_name as y11_, a1_.middle_name as y12_ from adp_equeue_appointment this_ left outer join adp_user a1_ on this_.assignee_id=a1_.id inner join adp_equeue_slot s2_ on this_.slot_id=s2_.id where not this_.status=? and this_.assignee_id=? | 0 | 7 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y4_ desc limit ? | 0 | 5 | 1 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 4 | 2 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?)) )
| 0 | 2 | 4 | 4 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 5 | 1 | 2 | 0 | 0.00 |
delete from adp_user_roles where user_id=? | 0 | 23 | 0 | 0 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 2 | 4 | 4 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 8 | 8 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y1_ desc limit ? offset ? | 0 | 2 | 4 | 4 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?)
| 0 | 12 | 0 | 2 | 0 | 0.00 |
select this_.uin as uin37_4_, this_.amount as amount37_4_, this_.bill_date as bill3_37_4_, this_.created_at as created4_37_4_, this_.department as department37_4_, this_.last_updated as last6_37_4_, this_.package_id as package7_37_4_, this_.payer as payer37_4_, this_.pgu_conv_id as pgu18_37_4_, this_.prev_status as prev9_37_4_, this_.purpose as purpose37_4_, this_.region as region37_4_, this_.remainder as remainder37_4_, this_.smev_version as smev13_37_4_, this_.status as status37_4_, this_.user_id as user19_37_4_, this_.validation_error as validation15_37_4_, this_.vars as vars37_4_, this_.xml as xml37_4_, incomingco2_.id as id26_0_, incomingco2_.author as author26_0_, incomingco2_.created_at as created2_26_0_, incomingco2_.description as descript3_26_0_, incomingco2_.labels as labels26_0_, incomingco2_.last_updated as last5_26_0_, incomingco2_.recipient_code as recipient6_26_0_, incomingco2_.recipient_name as recipient7_26_0_, incomingco2_.request_content as request8_26_0_, incomingco2_.request_date as request9_26_0_, incomingco2_.response_content as response10_26_0_, incomingco2_.response_timestamp as response11_26_0_, incomingco2_.sender_code as sender12_26_0_, incomingco2_.sender_name as sender13_26_0_, incomingco2_.service as service26_0_, incomingco2_.sign_org as sign15_26_0_, incomingco2_.sign_subj as sign16_26_0_, incomingco2_.status as status26_0_, incomingco2_.tp_number as tp18_26_0_, incomingco2_.trans_code as trans19_26_0_, incomingco2_.department as department26_0_, incomingco2_.done_by as done21_26_0_, incomingco2_.last_assigned as last22_26_0_, incomingco2_.oktmo as oktmo26_0_, incomingco2_.reg_date as reg24_26_0_, incomingco2_.reg_number as reg25_26_0_, incomingco2_.rpgu_created_at as rpgu26_26_0_, incomingco2_.service_code as service27_26_0_, user3_.id as id24_1_, user3_.cert_fingerprint as cert2_24_1_, user3_.created_at as created3_24_1_, user3_.department as department24_1_, user3_.email as email24_1_, user3_.first_name as first6_24_1_, user3_.gisgmp_department as gisgmp7_24_1_, user3_.inherit_adapters as inherit8_24_1_, user3_.last_name as last9_24_1_, user3_.last_updated as last10_24_1_, user3_.middle_name as middle11_24_1_, user3_.mnemonic as mnemonic24_1_, user3_.no_emails as no13_24_1_, user3_.owner as owner24_1_, user3_.passwd as passwd24_1_, user3_.phone as phone24_1_, user3_.position as position24_1_, user3_.region as region24_1_, user3_.passwd_salt as passwd18_24_1_, user3_.snils as snils24_1_, user3_.username as username24_1_, user4_.id as id24_2_, user4_.cert_fingerprint as cert2_24_2_, user4_.created_at as created3_24_2_, user4_.department as department24_2_, user4_.email as email24_2_, user4_.first_name as first6_24_2_, user4_.gisgmp_department as gisgmp7_24_2_, user4_.inherit_adapters as inherit8_24_2_, user4_.last_name as last9_24_2_, user4_.last_updated as last10_24_2_, user4_.middle_name as middle11_24_2_, user4_.mnemonic as mnemonic24_2_, user4_.no_emails as no13_24_2_, user4_.owner as owner24_2_, user4_.passwd as passwd24_2_, user4_.phone as phone24_2_, user4_.position as position24_2_, user4_.region as region24_2_, user4_.passwd_salt as passwd18_24_2_, user4_.snils as snils24_2_, user4_.username as username24_2_, user5_.id as id24_3_, user5_.cert_fingerprint as cert2_24_3_, user5_.created_at as created3_24_3_, user5_.department as department24_3_, user5_.email as email24_3_, user5_.first_name as first6_24_3_, user5_.gisgmp_department as gisgmp7_24_3_, user5_.inherit_adapters as inherit8_24_3_, user5_.last_name as last9_24_3_, user5_.last_updated as last10_24_3_, user5_.middle_name as middle11_24_3_, user5_.mnemonic as mnemonic24_3_, user5_.no_emails as no13_24_3_, user5_.owner as owner24_3_, user5_.passwd as passwd24_3_, user5_.phone as phone24_3_, user5_.position as position24_3_, user5_.region as region24_3_, user5_.passwd_salt as passwd18_24_3_, user5_.snils as snils24_3_, user5_.username as username24_3_ from adp_charge this_ left outer join adp_conversation_in incomingco2_ on this_.pgu_conv_id=incomingco2_.id left outer join adp_user user3_ on incomingco2_.author=user3_.id left outer join adp_user user4_ on user3_.owner=user4_.id left outer join adp_user user5_ on this_.user_id=user5_.id where this_.created_at>=? order by this_.created_at desc, this_.uin asc limit ? | 0 | 1 | 8 | 8 | 0 | 0.00 |
delete from adp_user_adapters where user_id=? | 0 | 19 | 0 | 1 | 0 | 0.00 |
select count(*) as y0_ from adp_user this_ where this_.region=? | 0 | 15 | 0 | 1 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 2 | 3 | 4 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 1 | 7 | 7 | 0 | 0.00 |
select appointmen0_.service_code as col_0_0_ from adp_equeue_slot appointmen0_ where appointmen0_.start_at>=current_timestamp group by appointmen0_.service_code | 0 | 7 | 1 | 2 | 0 | 0.00 |
select count(*) as y0_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 12 | 0 | 0 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 4 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? )) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? offset ? | 0 | 1 | 6 | 6 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ asc limit ? | 0 | 3 | 2 | 2 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 11 | 0 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 2 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 2 | 3 | 3 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 6 | 6 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ desc limit ? | 0 | 1 | 6 | 6 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?, ?, ?, ?, ?)) )
| 0 | 2 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 2 | 3 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 3 | 1 | 2 | 1 | 0.00 |
select dynamicada0_.id as id7_0_, dynamicada0_.adapter_id as adapter2_7_0_, dynamicada0_.deprecated as deprecated7_0_, dynamicada0_.mnemonic as mnemonic7_0_, dynamicada0_.name as name7_0_, dynamicada0_.region as region7_0_, dynamicada0_.request_ui as request7_7_0_, dynamicada0_.resp_subj_sign as resp8_7_0_, dynamicada0_.response_ui as response9_7_0_, dynamicada0_.sc_query as sc10_7_0_, dynamicada0_.supp_subj_sign as supp11_7_0_ from adp_dynamic_adapter dynamicada0_ where dynamicada0_.id=? | 0 | 5 | 1 | 2 | 1 | 0.00 |
select sum(t.cnt), t.dt from ( select count(*) cnt, extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) dt from adp_conversation_out c where c.request_date >= ? group by extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date)
union all select count(*) cnt, extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) dt from adp_conversation_ext c where c.request_date >= ? and c.is_incoming = '0' group by extract(year from c.request_date) || '-' || case when extract(month from c.request_date) < 10 then '0' else '' end || extract(month from c.request_date) || '-' || case when extract(day from c.request_date) < 10 then '0' else '' end || extract(day from c.request_date) ) t group by t.dt order by t.dt desc
| 0 | 1 | 5 | 5 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?)
| 0 | 20 | 0 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 5 | 5 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) order by y4_ desc limit ? | 0 | 1 | 5 | 5 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y2_ desc limit ? | 0 | 2 | 2 | 3 | 0 | 0.00 |
select count(*) as col_0_0_, user0_.department as col_1_0_ from adp_user user0_ where user0_.department is not null group by user0_.department order by count(*) desc limit ? | 0 | 1 | 5 | 5 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 2 | 2 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) order by y4_ desc limit ? | 0 | 2 | 2 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 2 | 2 | 3 | 0 | 0.00 |
select this_.id as id24_1_, this_.cert_fingerprint as cert2_24_1_, this_.created_at as created3_24_1_, this_.department as department24_1_, this_.email as email24_1_, this_.first_name as first6_24_1_, this_.gisgmp_department as gisgmp7_24_1_, this_.inherit_adapters as inherit8_24_1_, this_.last_name as last9_24_1_, this_.last_updated as last10_24_1_, this_.middle_name as middle11_24_1_, this_.mnemonic as mnemonic24_1_, this_.no_emails as no13_24_1_, this_.owner as owner24_1_, this_.passwd as passwd24_1_, this_.phone as phone24_1_, this_.position as position24_1_, this_.region as region24_1_, this_.passwd_salt as passwd18_24_1_, this_.snils as snils24_1_, this_.username as username24_1_, user2_.id as id24_0_, user2_.cert_fingerprint as cert2_24_0_, user2_.created_at as created3_24_0_, user2_.department as department24_0_, user2_.email as email24_0_, user2_.first_name as first6_24_0_, user2_.gisgmp_department as gisgmp7_24_0_, user2_.inherit_adapters as inherit8_24_0_, user2_.last_name as last9_24_0_, user2_.last_updated as last10_24_0_, user2_.middle_name as middle11_24_0_, user2_.mnemonic as mnemonic24_0_, user2_.no_emails as no13_24_0_, user2_.owner as owner24_0_, user2_.passwd as passwd24_0_, user2_.phone as phone24_0_, user2_.position as position24_0_, user2_.region as region24_0_, user2_.passwd_salt as passwd18_24_0_, user2_.snils as snils24_0_, user2_.username as username24_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where lower(this_.username)=? | 0 | 4 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y2_ desc limit ? | 0 | 2 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 2 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 1 | 4 | 4 | 0 | 0.00 |
select dynamicada0_.id as id29_0_, dynamicada0_.adapter_id as adapter2_29_0_, dynamicada0_.deprecated as deprecated29_0_, dynamicada0_.mnemonic as mnemonic29_0_, dynamicada0_.name as name29_0_, dynamicada0_.region as region29_0_, dynamicada0_.request_ui as request7_29_0_, dynamicada0_.resp_subj_sign as resp8_29_0_, dynamicada0_.response_ui as response9_29_0_, dynamicada0_.sc_query as sc10_29_0_, dynamicada0_.supp_subj_sign as supp11_29_0_ from adp_dynamic_adapter dynamicada0_ where dynamicada0_.id=? | 0 | 2 | 2 | 3 | 1 | 0.00 |
select count(*) as col_0_0_, user0_.department as col_1_0_ from adp_user user0_ where (user0_.department is not null) and user0_.region=? group by user0_.department order by count(*) desc limit ? | 0 | 3 | 1 | 2 | 0 | 0.00 |
select t.recipient_name from ( select c.recipient_name recipient_name from adp_conversation_out c inner join adp_user u on u.id = c.author and u.region = ? where c.request_date >= ? and c.recipient_name is not null union all select ext.recipient_name recipient_name from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.recipient_name is not null ) t group by t.recipient_name order by count(*) desc limit ? | 0 | 3 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 12 | 0 | 1 | 0 | 0.00 |
select sum(t.cnt), t.recipient_name from ( select count(*) cnt, c.recipient_name recipient_name from adp_conversation_out c inner join adp_user u on u.id = c.author where c.request_date >= ? and c.recipient_name is not null and u.region = ? group by c.recipient_name union all select count(*) cnt, ext.recipient_name recipient_name from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.recipient_name is not null group by ext.recipient_name ) t group by t.recipient_name order by sum(t.cnt) desc
| 0 | 3 | 1 | 2 | 0 | 0.00 |
select count(*) as col_0_0_, user1_.id as col_1_0_ from adp_conversation_out outgoingco0_ inner join adp_user user1_ on outgoingco0_.author=user1_.id cross join adp_user user2_ where outgoingco0_.author=user2_.id and outgoingco0_.request_date>=? and user2_.region=? group by user1_.id order by count(*) desc limit ? | 0 | 3 | 1 | 1 | 0 | 0.00 |
select this_.uin as uin35_4_, this_.amount as amount35_4_, this_.bill_date as bill3_35_4_, this_.created_at as created4_35_4_, this_.department as department35_4_, this_.last_updated as last6_35_4_, this_.package_id as package7_35_4_, this_.payer as payer35_4_, this_.pgu_conv_id as pgu18_35_4_, this_.prev_status as prev9_35_4_, this_.purpose as purpose35_4_, this_.region as region35_4_, this_.remainder as remainder35_4_, this_.smev_version as smev13_35_4_, this_.status as status35_4_, this_.user_id as user19_35_4_, this_.validation_error as validation15_35_4_, this_.vars as vars35_4_, this_.xml as xml35_4_, incomingco2_.id as id2_0_, incomingco2_.author as author2_0_, incomingco2_.created_at as created2_2_0_, incomingco2_.description as descript3_2_0_, incomingco2_.labels as labels2_0_, incomingco2_.last_updated as last5_2_0_, incomingco2_.recipient_code as recipient6_2_0_, incomingco2_.recipient_name as recipient7_2_0_, incomingco2_.request_content as request8_2_0_, incomingco2_.request_date as request9_2_0_, incomingco2_.response_content as response10_2_0_, incomingco2_.response_timestamp as response11_2_0_, incomingco2_.sender_code as sender12_2_0_, incomingco2_.sender_name as sender13_2_0_, incomingco2_.service as service2_0_, incomingco2_.sign_org as sign15_2_0_, incomingco2_.sign_subj as sign16_2_0_, incomingco2_.status as status2_0_, incomingco2_.tp_number as tp18_2_0_, incomingco2_.trans_code as trans19_2_0_, incomingco2_.department as department2_0_, incomingco2_.done_by as done21_2_0_, incomingco2_.last_assigned as last22_2_0_, incomingco2_.oktmo as oktmo2_0_, incomingco2_.reg_date as reg24_2_0_, incomingco2_.reg_number as reg25_2_0_, incomingco2_.rpgu_created_at as rpgu26_2_0_, incomingco2_.service_code as service27_2_0_, user3_.id as id0_1_, user3_.cert_fingerprint as cert2_0_1_, user3_.created_at as created3_0_1_, user3_.department as department0_1_, user3_.email as email0_1_, user3_.first_name as first6_0_1_, user3_.gisgmp_department as gisgmp7_0_1_, user3_.inherit_adapters as inherit8_0_1_, user3_.last_name as last9_0_1_, user3_.last_updated as last10_0_1_, user3_.middle_name as middle11_0_1_, user3_.mnemonic as mnemonic0_1_, user3_.no_emails as no13_0_1_, user3_.owner as owner0_1_, user3_.passwd as passwd0_1_, user3_.phone as phone0_1_, user3_.position as position0_1_, user3_.region as region0_1_, user3_.passwd_salt as passwd18_0_1_, user3_.snils as snils0_1_, user3_.username as username0_1_, user4_.id as id0_2_, user4_.cert_fingerprint as cert2_0_2_, user4_.created_at as created3_0_2_, user4_.department as department0_2_, user4_.email as email0_2_, user4_.first_name as first6_0_2_, user4_.gisgmp_department as gisgmp7_0_2_, user4_.inherit_adapters as inherit8_0_2_, user4_.last_name as last9_0_2_, user4_.last_updated as last10_0_2_, user4_.middle_name as middle11_0_2_, user4_.mnemonic as mnemonic0_2_, user4_.no_emails as no13_0_2_, user4_.owner as owner0_2_, user4_.passwd as passwd0_2_, user4_.phone as phone0_2_, user4_.position as position0_2_, user4_.region as region0_2_, user4_.passwd_salt as passwd18_0_2_, user4_.snils as snils0_2_, user4_.username as username0_2_, user5_.id as id0_3_, user5_.cert_fingerprint as cert2_0_3_, user5_.created_at as created3_0_3_, user5_.department as department0_3_, user5_.email as email0_3_, user5_.first_name as first6_0_3_, user5_.gisgmp_department as gisgmp7_0_3_, user5_.inherit_adapters as inherit8_0_3_, user5_.last_name as last9_0_3_, user5_.last_updated as last10_0_3_, user5_.middle_name as middle11_0_3_, user5_.mnemonic as mnemonic0_3_, user5_.no_emails as no13_0_3_, user5_.owner as owner0_3_, user5_.passwd as passwd0_3_, user5_.phone as phone0_3_, user5_.position as position0_3_, user5_.region as region0_3_, user5_.passwd_salt as passwd18_0_3_, user5_.snils as snils0_3_, user5_.username as username0_3_ from adp_charge this_ left outer join adp_conversation_in incomingco2_ on this_.pgu_conv_id=incomingco2_.id left outer join adp_user user3_ on incomingco2_.author=user3_.id left outer join adp_user user4_ on user3_.owner=user4_.id left outer join adp_user user5_ on this_.user_id=user5_.id where this_.created_at>=? order by this_.created_at desc, this_.uin asc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?)) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select count(*) as col_0_0_ from adp_user user0_ where user0_.region=? | 0 | 3 | 1 | 2 | 1 | 0.00 |
select u.id "id", u.username "username", owner.username "ownerUsername", u.first_name "firstName", u.last_name "lastName", u.middle_name "middleName", u.phone "phone", u.department "department", u.mnemonic "mnemonic", u.snils "snils", u.position "position", u.email "email" from adp_user u left join adp_user owner on owner.id = u.owner where u.region = ?
| 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as id2_1_, this_.cert_fingerprint as cert2_2_1_, this_.created_at as created3_2_1_, this_.department as department2_1_, this_.email as email2_1_, this_.first_name as first6_2_1_, this_.gisgmp_department as gisgmp7_2_1_, this_.inherit_adapters as inherit8_2_1_, this_.last_name as last9_2_1_, this_.last_updated as last10_2_1_, this_.middle_name as middle11_2_1_, this_.mnemonic as mnemonic2_1_, this_.no_emails as no13_2_1_, this_.owner as owner2_1_, this_.passwd as passwd2_1_, this_.phone as phone2_1_, this_.position as position2_1_, this_.region as region2_1_, this_.passwd_salt as passwd18_2_1_, this_.snils as snils2_1_, this_.username as username2_1_, user2_.id as id2_0_, user2_.cert_fingerprint as cert2_2_0_, user2_.created_at as created3_2_0_, user2_.department as department2_0_, user2_.email as email2_0_, user2_.first_name as first6_2_0_, user2_.gisgmp_department as gisgmp7_2_0_, user2_.inherit_adapters as inherit8_2_0_, user2_.last_name as last9_2_0_, user2_.last_updated as last10_2_0_, user2_.middle_name as middle11_2_0_, user2_.mnemonic as mnemonic2_0_, user2_.no_emails as no13_2_0_, user2_.owner as owner2_0_, user2_.passwd as passwd2_0_, user2_.phone as phone2_0_, user2_.position as position2_0_, user2_.region as region2_0_, user2_.passwd_salt as passwd18_2_0_, user2_.snils as snils2_0_, user2_.username as username2_0_ from adp_user this_ left outer join adp_user user2_ on this_.owner=user2_.id where lower(this_.username)=? | 0 | 3 | 1 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) or exists (select 1 from adp_user_roles ur where ur.user_id = u.id AND ur.role_name in (?, ?)) )
| 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status=? order by y4_ asc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y2_ asc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ?) and this_.service in (?, ?) and this_.service_code is null group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 2 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ asc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or authoruser1_.department in (?)) and ((this_.department is null and (this_.oktmo is null or this_.oktmo like ?)) or (not this_.department is null and this_.department=?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?))))) order by y4_ asc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? offset ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and this_.created_at <= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 2 | 1 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) order by y4_ desc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y4_ desc limit ? | 0 | 1 | 3 | 3 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and (this_.external_id ilike ? or (this_.id ilike ? or (this_.labels ilike ? or (authoruser1_.first_name ilike ? or (authoruser1_.last_name ilike ? or (authoruser1_.middle_name ilike ? or this_.tp_number ilike ?)))))) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 1 | 3 | 3 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 1 | 3 | 3 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
update adp_department set adconstruct_enabled=?, address=?, aggregator_disabled=?, bank_acc=?, bic=?, business_hours=?, coordinates=?, do_dep=?, is_ebf=?, equeue_enabled=?, ext_spu_id=?, frgu_code=?, gisgmp_code=?, gisgmp_main_dep_id=?, gisgmp_role=?, inn=?, kpp=?, name=?, ogrn=?, oktmo=?, parent_dep_id=?, phone=?, share_conv=? where id=? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?) )
| 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ asc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? order by y2_ desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y6_ asc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select count(*) as y0_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 2 | 2 | 0 | 0.00 |
select user0_.id as id22_, user0_.cert_fingerprint as cert2_22_, user0_.created_at as created3_22_, user0_.department as department22_, user0_.email as email22_, user0_.first_name as first6_22_, user0_.gisgmp_department as gisgmp7_22_, user0_.inherit_adapters as inherit8_22_, user0_.last_name as last9_22_, user0_.last_updated as last10_22_, user0_.middle_name as middle11_22_, user0_.mnemonic as mnemonic22_, user0_.no_emails as no13_22_, user0_.owner as owner22_, user0_.passwd as passwd22_, user0_.phone as phone22_, user0_.position as position22_, user0_.region as region22_, user0_.passwd_salt as passwd18_22_, user0_.snils as snils22_, user0_.username as username22_ from adp_user user0_ where (user0_.created_at is not null) and user0_.created_at>=? and user0_.region=? order by user0_.created_at desc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?)
| 0 | 7 | 0 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y2_ desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.uin as uin35_4_, this_.amount as amount35_4_, this_.bill_date as bill3_35_4_, this_.created_at as created4_35_4_, this_.department as department35_4_, this_.last_updated as last6_35_4_, this_.package_id as package7_35_4_, this_.payer as payer35_4_, this_.pgu_conv_id as pgu18_35_4_, this_.prev_status as prev9_35_4_, this_.purpose as purpose35_4_, this_.region as region35_4_, this_.remainder as remainder35_4_, this_.smev_version as smev13_35_4_, this_.status as status35_4_, this_.user_id as user19_35_4_, this_.validation_error as validation15_35_4_, this_.vars as vars35_4_, this_.xml as xml35_4_, incomingco2_.id as id2_0_, incomingco2_.author as author2_0_, incomingco2_.created_at as created2_2_0_, incomingco2_.description as descript3_2_0_, incomingco2_.labels as labels2_0_, incomingco2_.last_updated as last5_2_0_, incomingco2_.recipient_code as recipient6_2_0_, incomingco2_.recipient_name as recipient7_2_0_, incomingco2_.request_content as request8_2_0_, incomingco2_.request_date as request9_2_0_, incomingco2_.response_content as response10_2_0_, incomingco2_.response_timestamp as response11_2_0_, incomingco2_.sender_code as sender12_2_0_, incomingco2_.sender_name as sender13_2_0_, incomingco2_.service as service2_0_, incomingco2_.sign_org as sign15_2_0_, incomingco2_.sign_subj as sign16_2_0_, incomingco2_.status as status2_0_, incomingco2_.tp_number as tp18_2_0_, incomingco2_.trans_code as trans19_2_0_, incomingco2_.department as department2_0_, incomingco2_.done_by as done21_2_0_, incomingco2_.last_assigned as last22_2_0_, incomingco2_.oktmo as oktmo2_0_, incomingco2_.reg_date as reg24_2_0_, incomingco2_.reg_number as reg25_2_0_, incomingco2_.rpgu_created_at as rpgu26_2_0_, incomingco2_.service_code as service27_2_0_, user3_.id as id0_1_, user3_.cert_fingerprint as cert2_0_1_, user3_.created_at as created3_0_1_, user3_.department as department0_1_, user3_.email as email0_1_, user3_.first_name as first6_0_1_, user3_.gisgmp_department as gisgmp7_0_1_, user3_.inherit_adapters as inherit8_0_1_, user3_.last_name as last9_0_1_, user3_.last_updated as last10_0_1_, user3_.middle_name as middle11_0_1_, user3_.mnemonic as mnemonic0_1_, user3_.no_emails as no13_0_1_, user3_.owner as owner0_1_, user3_.passwd as passwd0_1_, user3_.phone as phone0_1_, user3_.position as position0_1_, user3_.region as region0_1_, user3_.passwd_salt as passwd18_0_1_, user3_.snils as snils0_1_, user3_.username as username0_1_, user4_.id as id0_2_, user4_.cert_fingerprint as cert2_0_2_, user4_.created_at as created3_0_2_, user4_.department as department0_2_, user4_.email as email0_2_, user4_.first_name as first6_0_2_, user4_.gisgmp_department as gisgmp7_0_2_, user4_.inherit_adapters as inherit8_0_2_, user4_.last_name as last9_0_2_, user4_.last_updated as last10_0_2_, user4_.middle_name as middle11_0_2_, user4_.mnemonic as mnemonic0_2_, user4_.no_emails as no13_0_2_, user4_.owner as owner0_2_, user4_.passwd as passwd0_2_, user4_.phone as phone0_2_, user4_.position as position0_2_, user4_.region as region0_2_, user4_.passwd_salt as passwd18_0_2_, user4_.snils as snils0_2_, user4_.username as username0_2_, user5_.id as id0_3_, user5_.cert_fingerprint as cert2_0_3_, user5_.created_at as created3_0_3_, user5_.department as department0_3_, user5_.email as email0_3_, user5_.first_name as first6_0_3_, user5_.gisgmp_department as gisgmp7_0_3_, user5_.inherit_adapters as inherit8_0_3_, user5_.last_name as last9_0_3_, user5_.last_updated as last10_0_3_, user5_.middle_name as middle11_0_3_, user5_.mnemonic as mnemonic0_3_, user5_.no_emails as no13_0_3_, user5_.owner as owner0_3_, user5_.passwd as passwd0_3_, user5_.phone as phone0_3_, user5_.position as position0_3_, user5_.region as region0_3_, user5_.passwd_salt as passwd18_0_3_, user5_.snils as snils0_3_, user5_.username as username0_3_ from adp_charge this_ left outer join adp_conversation_in incomingco2_ on this_.pgu_conv_id=incomingco2_.id left outer join adp_user user3_ on incomingco2_.author=user3_.id left outer join adp_user user4_ on user3_.owner=user4_.id left outer join adp_user user5_ on this_.user_id=user5_.id order by this_.created_at desc, this_.uin asc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y2_ desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where this_.service=? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ asc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? and this_.created_at <= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ asc limit ? offset ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and this_.created_at <= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 2 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y1_ asc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y4_ desc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
select count(*) as col_0_0_ from adp_user user0_ where (user0_.created_at is not null) and user0_.created_at>=? and user0_.region=? | 0 | 3 | 0 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?) )
| 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 3 | 0 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 2 | 2 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
delete from adp_user_roles where user_id=? and role_name=? | 0 | 3 | 0 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) order by y2_ asc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ? and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and not this_.service in (?, ?) order by y2_ desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ left outer join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') in ( ?, ? ) or coalesce(this_.author, '0') in (select u.id from adp_user u where u.region = ?)) and this_.oktmo like ?) and this_.service in (?, ?) and this_.service_code is null order by this_.created_at desc limit ? | 0 | 2 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by this_.created_at desc limit ? | 0 | 1 | 2 | 2 | 0 | 0.00 |
select user0_.id as id24_, user0_.cert_fingerprint as cert2_24_, user0_.created_at as created3_24_, user0_.department as department24_, user0_.email as email24_, user0_.first_name as first6_24_, user0_.gisgmp_department as gisgmp7_24_, user0_.inherit_adapters as inherit8_24_, user0_.last_name as last9_24_, user0_.last_updated as last10_24_, user0_.middle_name as middle11_24_, user0_.mnemonic as mnemonic24_, user0_.no_emails as no13_24_, user0_.owner as owner24_, user0_.passwd as passwd24_, user0_.phone as phone24_, user0_.position as position24_, user0_.region as region24_, user0_.passwd_salt as passwd18_24_, user0_.snils as snils24_, user0_.username as username24_ from adp_user user0_ where (user0_.created_at is not null) and user0_.created_at>=? order by user0_.created_at desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? order by y4_ desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where this_.service=? and coalesce(pgu_conv_id, '0') = '0' order by y4_ asc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ where this_.service=? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 2 | 0 | 1 | 0 | 0.00 |
select sum(t.cnt), t.recipient_name from ( select count(*) cnt, c.recipient_name recipient_name from adp_conversation_out c where c.request_date >= ? and c.recipient_name is not null group by c.recipient_name union all select count(*) cnt, ext.recipient_name recipient_name from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.recipient_name is not null group by ext.recipient_name ) t group by t.recipient_name order by sum(t.cnt) desc
| 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? offset ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?)
| 0 | 3 | 0 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y5_ asc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select user0_.id as id24_, user0_.cert_fingerprint as cert2_24_, user0_.created_at as created3_24_, user0_.department as department24_, user0_.email as email24_, user0_.first_name as first6_24_, user0_.gisgmp_department as gisgmp7_24_, user0_.inherit_adapters as inherit8_24_, user0_.last_name as last9_24_, user0_.last_updated as last10_24_, user0_.middle_name as middle11_24_, user0_.mnemonic as mnemonic24_, user0_.no_emails as no13_24_, user0_.owner as owner24_, user0_.passwd as passwd24_, user0_.phone as phone24_, user0_.position as position24_, user0_.region as region24_, user0_.passwd_salt as passwd18_24_, user0_.snils as snils24_, user0_.username as username24_ from adp_user user0_ where (user0_.created_at is not null) and user0_.created_at>=? and user0_.region=? order by user0_.created_at desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y1_ asc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1 | 1 | 1 | 0 | 0.00 |
select u.id, u.username, u.first_name, u.last_name, u.middle_name, u.department, u.region, o.id o_id, o.region o_region from adp_user u left join adp_user o on o.id = u.owner where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ) order by u.last_name, u.first_name, u.middle_name, u.id limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? order by this_.created_at desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.status as y0_, count(*) as y1_ from adp_charge this_ group by this_.status | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service=? and not this_.service in (?, ?) order by y4_ desc limit ? offset ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select count(*) as col_0_0_ from adp_user user0_ where (user0_.created_at is not null) and user0_.created_at>=? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 2 | 0 | 1 | 0 | 0.00 |
insert into adp_autofill_data (user_id, adapter_id, autofill_data) values (?, ?, ?) | 0 | 1 | 1 | 1 | 0 | 0.00 |
select count(*) from adp_user u where 1 = 1 and u.region = ? and ( lower(u.first_name) like '%' || lower(?) || '%' or lower(u.last_name) like '%' || lower(?) || '%' or lower(u.middle_name) like '%' || lower(?) || '%' or lower(u.username) like '%' || lower(?) || '%' or u.department in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) )
| 0 | 1 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 2 | 0 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.external_id as y10_ from adp_conversation_out this_ where this_.service=? and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' order by y4_ desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end status, count(*) as cnt from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? group by case when status in('ACCEPT', 'PROCESS') then case when response_timestamp - request_date > interval '5' second then 'SENT' else 'SAVED' end else status end order by status desc | 0 | 1 | 1 | 1 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where 1=1 and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.status in (?, ?) and response_timestamp - request_date <= interval '5' second order by y4_ desc limit ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select count(*) as col_0_0_ from adp_user user0_ | 0 | 1 | 1 | 1 | 0 | 0.00 |
select count(*) as y0_ from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ?) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and this_.id = ? | 0 | 1 | 1 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?)
| 0 | 3 | 0 | 1 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?)
| 0 | 2 | 0 | 0 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where not this_.service in (?, ?, ?, ?, ?, ?, ?, ?) and not this_.service in (?, ?) and this_.created_at >= ? and this_.status=? order by y4_ desc limit ? | 0 | 1 | 0 | 0 | 0 | 0.00 |
select count(*) as col_0_0_, user1_.id as col_1_0_ from adp_conversation_out outgoingco0_ inner join adp_user user1_ on outgoingco0_.author=user1_.id where outgoingco0_.request_date>=? group by user1_.id order by count(*) desc limit ? | 0 | 1 | 0 | 0 | 0 | 0.00 |
delete from adp_dictionary_documents where Dictionary_id=? | 0 | 1 | 0 | 0 | 0 | 0.00 |
select dictionary_.id, dictionary_.author as author8_, dictionary_.name_ as name2_8_ from ADP_DICTIONARY dictionary_ where dictionary_.id=? | 0 | 2 | 0 | 0 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 2 | 0 | 0 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ where this_.service=? and this_.created_at >= ? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 1 | 0 | 0 | 0 | 0.00 |
select status status, count(*) as cnt from adp_conversation_out this_ inner join adp_user authoruser1_ on this_.author=authoruser1_.id where ((authoruser1_.owner=? or coalesce(this_.author, '0') = ? or authoruser1_.department in (?)) and this_.service in (select ua.adapter_id from adp_user_adapters ua where ua.user_id = ? and ua.adapter_type in(?, 2))) and this_.service=? and coalesce(pgu_conv_id, '0') = '0' group by status order by status desc | 0 | 1 | 0 | 0 | 0 | 0.00 |
select t.recipient_name from ( select c.recipient_name recipient_name from adp_conversation_out c where c.request_date >= ? and c.recipient_name is not null union all select ext.recipient_name recipient_name from adp_conversation_ext ext where ext.is_incoming = '0' and ext.request_date >= ? and ext.recipient_name is not null ) t group by t.recipient_name order by count(*) desc limit ? | 0 | 1 | 0 | 0 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 2 | 0 | 0 | 0 | 0.00 |
select this_.id as y0_, this_.status as y1_, this_.service as y2_, this_.created_at createdAt, this_.request_date as y4_, this_.response_timestamp as y5_, this_.labels as y6_, this_.sign_subj as y7_, this_.sign_org as y8_, this_.author as y9_, this_.service_code as y10_, this_.done_by as y11_, this_.last_assigned as y12_ from adp_conversation_in this_ where this_.service in (?, ?) and this_.created_at >= ? order by this_.created_at desc limit ? | 0 | 1 | 0 | 0 | 0 | 0.00 |
select user_id, role_name from adp_user_roles where user_id in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
| 0 | 1 | 0 | 0 | 0 | 0.00 |