appeals.reasons_appeal
Y
Normal
N
1000
100
-
2025/01/28 11:14:23.116
-
2025/01/28 11:14:23.116
Execute SQL script
Table input (subpoena) РФ/осень
Y
Get variables 2 2
Select values 2 2
Y
Select values 2 2
Insert / update (appeals.reasons_appeal)
Y
Table input (subpoena) РФ/осень
Get variables 2 2
Y
Execute SQL script
ExecSql
N
1
none
ervu-dashboard
N
N
Y
N
N
DELETE FROM appeals.reasons_appeal
WHERE recording_date = current_date
AND schema = 'Ministry'
AND recruitment_id = '${REG_ID}'
336
448
Get variables 2 2
GetVariable
Y
1
none
-1
REG_ID
-1
none
String
-1
VK_ARRAY
-1
none
String
800
448
Insert / update (appeals.reasons_appeal)
InsertUpdate
Y
1
none
100
ervu-dashboard
=
schema
schema
=
recruitment_id
REG_ID
appeals
recruitment_id
recruitment_id
N
schema
schema
N
appeal
appeal
Y
incorrect_inf
incorrect_inf
Y
incorrect_inf_percent
incorrect_inf_percent
Y
sending_documents
sending_documents
Y
sending_documents_percent
sending_documents_percent
Y
decision_disagreement
decision_disagreement
Y
decision_disagreement_persent
decision_disagreement_persent
Y
complaint_withdrawal
complaint_withdrawal
Y
complaint_withdrawal_percent
complaint_withdrawal_percent
Y
N
1296
448
Select values 2 2
SelectValues
Y
1
none
N
REG_ID
REG_ID
String
-2
-2
false
false
VK_ARRAY
VK_ARRAY
String
-2
-2
false
false
1008
448
Table input (subpoena) РФ/осень
TableInput
Y
1
none
ervu-dashboard
N
0
SELECT
COALESCE(SUM(appeal), 0) appeal,
COALESCE(SUM(incorrect_inf), 0) incorrect_inf,
COALESCE(SUM(sending_documents), 0) sending_documents,
COALESCE(SUM(decision_disagreement), 0) decision_disagreement,
COALESCE(SUM(complaint_withdrawal), 0) complaint_withdrawal,
COALESCE(
CASE
WHEN SUM(appeal) > 0
THEN ROUND((SUM(incorrect_inf) / SUM(appeal) * 100), 2)
ELSE 0
END,
0
) incorrect_inf_percent,
COALESCE(
CASE
WHEN SUM(appeal) > 0
THEN ROUND((SUM(sending_documents) / SUM(appeal) * 100), 2)
ELSE 0
END,
0
) sending_documents_percent,
COALESCE(
CASE
WHEN SUM(appeal) > 0
THEN ROUND((SUM(decision_disagreement) / SUM(appeal) * 100), 2)
ELSE 0
END,
0
) decision_disagreement_persent,
COALESCE(
CASE
WHEN SUM(appeal) > 0
THEN ROUND((SUM(complaint_withdrawal) / SUM(appeal) * 100), 2)
ELSE 0
END,
0
) complaint_withdrawal_percent,
'${REG_ID}' AS recruitment_id,
'Ministry' AS schema
FROM appeals.reasons_appeal
WHERE recruitment_id = ANY ('${VK_ARRAY}')
AND schema = 'Region'
AND recording_date = CURRENT_DATE;
Y
576
448