diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Actualization.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Actualization.java index 1ef25d3..f6b8b30 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Actualization.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Actualization.java @@ -17,6 +17,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.AppR import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ApplicationsReceivedFromEpgu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuCitizen; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuStorage; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataPersonalVisit; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsEpguInfo; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsInfo; @@ -64,6 +65,11 @@ public class Actualization extends SchemaImpl { */ public final ChangeDataFromGirVuCitizen CHANGE_DATA_FROM_GIR_VU_CITIZEN = ChangeDataFromGirVuCitizen.CHANGE_DATA_FROM_GIR_VU_CITIZEN; + /** + * The table actualization.change_data_from_gir_vu_storage. + */ + public final ChangeDataFromGirVuStorage CHANGE_DATA_FROM_GIR_VU_STORAGE = ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE; + /** * Актуализация. Изменение сведений при личной явке */ @@ -142,7 +148,8 @@ public class Actualization extends SchemaImpl { public final List> getSequences() { return Arrays.asList( Sequences.APPLICATIONS_RECEIVED_FROM_EP_APPLICATIONS_RECEIVED_FROM_EP_SEQ, - Sequences.CHANGE_DATA_FROM_GIR_VU_CITIZ_CHANGE_DATA_FROM_GIR_VU_CITIZ_SEQ + Sequences.CHANGE_DATA_FROM_GIR_VU_CITIZ_CHANGE_DATA_FROM_GIR_VU_CITIZ_SEQ, + Sequences.CHANGE_DATA_FROM_GIR_VU_STORA_CHANGE_DATA_FROM_GIR_VU_ID_ST_SEQ ); } @@ -153,6 +160,7 @@ public class Actualization extends SchemaImpl { ApplicationsReceivedFromEpgu.APPLICATIONS_RECEIVED_FROM_EPGU, ChangeDataFromGirVu.CHANGE_DATA_FROM_GIR_VU, ChangeDataFromGirVuCitizen.CHANGE_DATA_FROM_GIR_VU_CITIZEN, + ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE, ChangeDataPersonalVisit.CHANGE_DATA_PERSONAL_VISIT, IncidentsEpguInfo.INCIDENTS_EPGU_INFO, IncidentsInfo.INCIDENTS_INFO, diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Keys.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Keys.java index 7346ecf..23dd491 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Keys.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Keys.java @@ -13,6 +13,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.AppR import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ApplicationsReceivedFromEpgu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuCitizen; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuStorage; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataPersonalVisit; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsEpguInfo; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsInfo; @@ -22,6 +23,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.reco import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ApplicationsReceivedFromEpguRecord; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ChangeDataFromGirVuCitizenRecord; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ChangeDataFromGirVuRecord; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ChangeDataFromGirVuStorageRecord; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ChangeDataPersonalVisitRecord; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.IncidentsEpguInfoRecord; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.IncidentsInfoRecord; @@ -44,6 +46,8 @@ public class Keys { public static final UniqueKey APPLICATIONS_RECEIVED_FROM_EPGU_PKEY = Internal.createUniqueKey(ApplicationsReceivedFromEpgu.APPLICATIONS_RECEIVED_FROM_EPGU, DSL.name("applications_received_from_epgu_pkey"), new TableField[] { ApplicationsReceivedFromEpgu.APPLICATIONS_RECEIVED_FROM_EPGU.APPLICATIONS_RECEIVED_FROM_EPGU_ID }, true); public static final UniqueKey CHANGE_DATA_FROM_GIR_VU_PKEY = Internal.createUniqueKey(ChangeDataFromGirVu.CHANGE_DATA_FROM_GIR_VU, DSL.name("change_data_from_gir_vu_pkey"), new TableField[] { ChangeDataFromGirVu.CHANGE_DATA_FROM_GIR_VU.CHANGE_DATA_FROM_GIR_VU_ID }, true); public static final UniqueKey CHANGE_DATA_FROM_GIR_VU_CITIZEN_PKEY = Internal.createUniqueKey(ChangeDataFromGirVuCitizen.CHANGE_DATA_FROM_GIR_VU_CITIZEN, DSL.name("change_data_from_gir_vu_citizen_pkey"), new TableField[] { ChangeDataFromGirVuCitizen.CHANGE_DATA_FROM_GIR_VU_CITIZEN.CHANGE_DATA_FROM_GIR_VU_CITIZEN_ID }, true); + public static final UniqueKey CHANGE_DATA_FROM_GIR_VU_PKEY_STORAGE = Internal.createUniqueKey(ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE, DSL.name("change_data_from_gir_vu_pkey_storage"), new TableField[] { ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE.CHANGE_DATA_FROM_GIR_VU_ID_STORAGE }, true); + public static final UniqueKey UNIQUE_RECRUITMENT_INFO_DATE = Internal.createUniqueKey(ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE, DSL.name("unique_recruitment_info_date"), new TableField[] { ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE.RECRUITMENT_ID, ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE.INFO_DATE }, true); public static final UniqueKey CHANGE_DATA_PERSONAL_VISIT_PKEY = Internal.createUniqueKey(ChangeDataPersonalVisit.CHANGE_DATA_PERSONAL_VISIT, DSL.name("change_data_personal_visit_pkey"), new TableField[] { ChangeDataPersonalVisit.CHANGE_DATA_PERSONAL_VISIT.CHANGE_DATA_PERSONAL_VISIT_ID }, true); public static final UniqueKey INCIDENTS_EPGU_INFO_PKEY = Internal.createUniqueKey(IncidentsEpguInfo.INCIDENTS_EPGU_INFO, DSL.name("incidents_epgu_info_pkey"), new TableField[] { IncidentsEpguInfo.INCIDENTS_EPGU_INFO.INCIDENTS_EPGU_INFO_ID }, true); public static final UniqueKey INCIDENTS_INFO_PKEY = Internal.createUniqueKey(IncidentsInfo.INCIDENTS_INFO, DSL.name("incidents_info_pkey"), new TableField[] { IncidentsInfo.INCIDENTS_INFO.INCIDENTS_INFO_ID }, true); diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Sequences.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Sequences.java index a3bb8a0..a5a3908 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Sequences.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Sequences.java @@ -26,4 +26,10 @@ public class Sequences { * actualization.change_data_from_gir_vu_citiz_change_data_from_gir_vu_citiz_seq */ public static final Sequence CHANGE_DATA_FROM_GIR_VU_CITIZ_CHANGE_DATA_FROM_GIR_VU_CITIZ_SEQ = Internal.createSequence("change_data_from_gir_vu_citiz_change_data_from_gir_vu_citiz_seq", Actualization.ACTUALIZATION, SQLDataType.BIGINT.nullable(false), null, null, null, null, false, null); + + /** + * The sequence + * actualization.change_data_from_gir_vu_stora_change_data_from_gir_vu_id_st_seq + */ + public static final Sequence CHANGE_DATA_FROM_GIR_VU_STORA_CHANGE_DATA_FROM_GIR_VU_ID_ST_SEQ = Internal.createSequence("change_data_from_gir_vu_stora_change_data_from_gir_vu_id_st_seq", Actualization.ACTUALIZATION, SQLDataType.BIGINT.nullable(false), null, null, null, null, false, null); } diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Tables.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Tables.java index 76cc588..2cd1adf 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Tables.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/Tables.java @@ -8,6 +8,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.AppR import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ApplicationsReceivedFromEpgu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVu; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuCitizen; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuStorage; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataPersonalVisit; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsEpguInfo; import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.IncidentsInfo; @@ -48,6 +49,11 @@ public class Tables { */ public static final ChangeDataFromGirVuCitizen CHANGE_DATA_FROM_GIR_VU_CITIZEN = ChangeDataFromGirVuCitizen.CHANGE_DATA_FROM_GIR_VU_CITIZEN; + /** + * The table actualization.change_data_from_gir_vu_storage. + */ + public static final ChangeDataFromGirVuStorage CHANGE_DATA_FROM_GIR_VU_STORAGE = ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE; + /** * Актуализация. Изменение сведений при личной явке */ diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ChangeDataFromGirVuStorage.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ChangeDataFromGirVuStorage.java new file mode 100644 index 0000000..acfad16 --- /dev/null +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ChangeDataFromGirVuStorage.java @@ -0,0 +1,312 @@ +/* + * This file is generated by jOOQ. + */ +package ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables; + + +import java.sql.Date; +import java.sql.Timestamp; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.Identity; +import org.jooq.Name; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.Actualization; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.Keys; +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records.ChangeDataFromGirVuStorageRecord; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ChangeDataFromGirVuStorage extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of + * actualization.change_data_from_gir_vu_storage + */ + public static final ChangeDataFromGirVuStorage CHANGE_DATA_FROM_GIR_VU_STORAGE = new ChangeDataFromGirVuStorage(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return ChangeDataFromGirVuStorageRecord.class; + } + + /** + * The column + * actualization.change_data_from_gir_vu_storage.change_data_from_gir_vu_id_storage. + */ + public final TableField CHANGE_DATA_FROM_GIR_VU_ID_STORAGE = createField(DSL.name("change_data_from_gir_vu_id_storage"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.recruitment_id. + */ + public final TableField RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36).nullable(false), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.update_date. + */ + public final TableField UPDATE_DATE = createField(DSL.name("update_date"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.info_date. + */ + public final TableField INFO_DATE = createField(DSL.name("info_date"), SQLDataType.DATE.nullable(false), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_reg_address. + */ + public final TableField COUNT_REG_ADDRESS = createField(DSL.name("count_reg_address"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_place_of_stay. + */ + public final TableField COUNT_PLACE_OF_STAY = createField(DSL.name("count_place_of_stay"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_work. + */ + public final TableField COUNT_WORK = createField(DSL.name("count_work"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_place_of_study. + */ + public final TableField COUNT_PLACE_OF_STUDY = createField(DSL.name("count_place_of_study"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_family_status. + */ + public final TableField COUNT_FAMILY_STATUS = createField(DSL.name("count_family_status"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_education. + */ + public final TableField COUNT_EDUCATION = createField(DSL.name("count_education"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_renaming. + */ + public final TableField COUNT_RENAMING = createField(DSL.name("count_renaming"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_med_info. + */ + public final TableField COUNT_MED_INFO = createField(DSL.name("count_med_info"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column + * actualization.change_data_from_gir_vu_storage.count_other. + */ + public final TableField COUNT_OTHER = createField(DSL.name("count_other"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + private ChangeDataFromGirVuStorage(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private ChangeDataFromGirVuStorage(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased + * actualization.change_data_from_gir_vu_storage table + * reference + */ + public ChangeDataFromGirVuStorage(String alias) { + this(DSL.name(alias), CHANGE_DATA_FROM_GIR_VU_STORAGE); + } + + /** + * Create an aliased + * actualization.change_data_from_gir_vu_storage table + * reference + */ + public ChangeDataFromGirVuStorage(Name alias) { + this(alias, CHANGE_DATA_FROM_GIR_VU_STORAGE); + } + + /** + * Create a actualization.change_data_from_gir_vu_storage table + * reference + */ + public ChangeDataFromGirVuStorage() { + this(DSL.name("change_data_from_gir_vu_storage"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Actualization.ACTUALIZATION; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.CHANGE_DATA_FROM_GIR_VU_PKEY_STORAGE; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.UNIQUE_RECRUITMENT_INFO_DATE); + } + + @Override + public ChangeDataFromGirVuStorage as(String alias) { + return new ChangeDataFromGirVuStorage(DSL.name(alias), this); + } + + @Override + public ChangeDataFromGirVuStorage as(Name alias) { + return new ChangeDataFromGirVuStorage(alias, this); + } + + @Override + public ChangeDataFromGirVuStorage as(Table alias) { + return new ChangeDataFromGirVuStorage(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public ChangeDataFromGirVuStorage rename(String name) { + return new ChangeDataFromGirVuStorage(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public ChangeDataFromGirVuStorage rename(Name name) { + return new ChangeDataFromGirVuStorage(name, null); + } + + /** + * Rename this table + */ + @Override + public ChangeDataFromGirVuStorage rename(Table name) { + return new ChangeDataFromGirVuStorage(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage where(Condition condition) { + return new ChangeDataFromGirVuStorage(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ChangeDataFromGirVuStorage where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ChangeDataFromGirVuStorage where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ChangeDataFromGirVuStorage where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ChangeDataFromGirVuStorage where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ChangeDataFromGirVuStorage whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ViewChangeDataFromGirVu.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ViewChangeDataFromGirVu.java index 0985422..9dbf22d 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ViewChangeDataFromGirVu.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/ViewChangeDataFromGirVu.java @@ -51,9 +51,63 @@ public class ViewChangeDataFromGirVu extends TableImplactualization.view_change_data_from_gir_vu.change_data_from_gir_vu_id. + * actualization.view_change_data_from_gir_vu.recruitment_id. */ - public final TableField CHANGE_DATA_FROM_GIR_VU_ID = createField(DSL.name("change_data_from_gir_vu_id"), SQLDataType.BIGINT, this, ""); + public final TableField RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36), this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_reg_address. + */ + public final TableField COUNT_REG_ADDRESS = createField(DSL.name("count_reg_address"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_place_of_stay. + */ + public final TableField COUNT_PLACE_OF_STAY = createField(DSL.name("count_place_of_stay"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_work. + */ + public final TableField COUNT_WORK = createField(DSL.name("count_work"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_place_of_study. + */ + public final TableField COUNT_PLACE_OF_STUDY = createField(DSL.name("count_place_of_study"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_family_status. + */ + public final TableField COUNT_FAMILY_STATUS = createField(DSL.name("count_family_status"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_education. + */ + public final TableField COUNT_EDUCATION = createField(DSL.name("count_education"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_renaming. + */ + public final TableField COUNT_RENAMING = createField(DSL.name("count_renaming"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_med_info. + */ + public final TableField COUNT_MED_INFO = createField(DSL.name("count_med_info"), SQLDataType.BIGINT, this, ""); + + /** + * The column + * actualization.view_change_data_from_gir_vu.count_other. + */ + public final TableField COUNT_OTHER = createField(DSL.name("count_other"), SQLDataType.BIGINT, this, ""); /** * The column @@ -121,18 +175,40 @@ public class ViewChangeDataFromGirVu extends TableImpl aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "view_change_data_from_gir_vu" as SELECT change_data_from_gir_vu.change_data_from_gir_vu_id, - ((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other) AS count_all, - COALESCE(round((((change_data_from_gir_vu.count_reg_address)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_reg_address, - COALESCE(round((((change_data_from_gir_vu.count_place_of_stay)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_place_of_stay, - COALESCE(round((((change_data_from_gir_vu.count_work)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_work, - COALESCE(round((((change_data_from_gir_vu.count_place_of_study)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_place_of_study, - COALESCE(round((((change_data_from_gir_vu.count_family_status)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_family_status, - COALESCE(round((((change_data_from_gir_vu.count_education)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_education, - COALESCE(round((((change_data_from_gir_vu.count_renaming)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_renaming, - COALESCE(round((((change_data_from_gir_vu.count_med_info)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_med_info, - COALESCE(round((((change_data_from_gir_vu.count_other)::numeric * (100)::numeric) / NULLIF((((((((((change_data_from_gir_vu.count_reg_address + change_data_from_gir_vu.count_place_of_stay) + change_data_from_gir_vu.count_work) + change_data_from_gir_vu.count_place_of_study) + change_data_from_gir_vu.count_family_status) + change_data_from_gir_vu.count_education) + change_data_from_gir_vu.count_renaming) + change_data_from_gir_vu.count_med_info) + change_data_from_gir_vu.count_other))::numeric, (0)::numeric))), (0)::numeric) AS percent_other - FROM actualization.change_data_from_gir_vu; + create view "view_change_data_from_gir_vu" as SELECT COALESCE(s.recruitment_id, m.recruitment_id) AS recruitment_id, + (COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) AS count_reg_address, + (COALESCE(m.count_place_of_stay, (0)::bigint) + COALESCE(s.count_place_of_stay, (0)::bigint)) AS count_place_of_stay, + (COALESCE(m.count_work, (0)::bigint) + COALESCE(s.count_work, (0)::bigint)) AS count_work, + (COALESCE(m.count_place_of_study, (0)::bigint) + COALESCE(s.count_place_of_study, (0)::bigint)) AS count_place_of_study, + (COALESCE(m.count_family_status, (0)::bigint) + COALESCE(s.count_family_status, (0)::bigint)) AS count_family_status, + (COALESCE(m.count_education, (0)::bigint) + COALESCE(s.count_education, (0)::bigint)) AS count_education, + (COALESCE(m.count_renaming, (0)::bigint) + COALESCE(s.count_renaming, (0)::bigint)) AS count_renaming, + (COALESCE(m.count_med_info, (0)::bigint) + COALESCE(s.count_med_info, (0)::bigint)) AS count_med_info, + (COALESCE(m.count_other, (0)::bigint) + COALESCE(s.count_other, (0)::bigint)) AS count_other, + (((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)) AS count_all, + COALESCE(round(((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_reg_address, + COALESCE(round(((((COALESCE(m.count_place_of_stay, (0)::bigint) + COALESCE(s.count_place_of_stay, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_place_of_stay, + COALESCE(round(((((COALESCE(m.count_work, (0)::bigint) + COALESCE(s.count_work, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_work, + COALESCE(round(((((COALESCE(m.count_place_of_study, (0)::bigint) + COALESCE(s.count_place_of_study, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_place_of_study, + COALESCE(round(((((COALESCE(m.count_family_status, (0)::bigint) + COALESCE(s.count_family_status, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_family_status, + COALESCE(round(((((COALESCE(m.count_education, (0)::bigint) + COALESCE(s.count_education, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_education, + COALESCE(round(((((COALESCE(m.count_renaming, (0)::bigint) + COALESCE(s.count_renaming, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_renaming, + COALESCE(round(((((COALESCE(m.count_med_info, (0)::bigint) + COALESCE(s.count_med_info, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_med_info, + COALESCE(round(((((COALESCE(m.count_other, (0)::bigint) + COALESCE(s.count_other, (0)::bigint)))::numeric * (100)::numeric) / NULLIF(((((((((((((((((((COALESCE(m.count_reg_address, (0)::bigint) + COALESCE(s.count_reg_address, (0)::bigint)) + COALESCE(m.count_place_of_stay, (0)::bigint)) + COALESCE(s.count_place_of_stay, (0)::bigint)) + COALESCE(m.count_work, (0)::bigint)) + COALESCE(s.count_work, (0)::bigint)) + COALESCE(m.count_place_of_study, (0)::bigint)) + COALESCE(s.count_place_of_study, (0)::bigint)) + COALESCE(m.count_family_status, (0)::bigint)) + COALESCE(s.count_family_status, (0)::bigint)) + COALESCE(m.count_education, (0)::bigint)) + COALESCE(s.count_education, (0)::bigint)) + COALESCE(m.count_renaming, (0)::bigint)) + COALESCE(s.count_renaming, (0)::bigint)) + COALESCE(m.count_med_info, (0)::bigint)) + COALESCE(s.count_med_info, (0)::bigint)) + COALESCE(m.count_other, (0)::bigint)) + COALESCE(s.count_other, (0)::bigint)))::numeric, (0)::numeric))), (0)::numeric) AS percent_other + FROM (actualization.change_data_from_gir_vu m + FULL JOIN ( SELECT DISTINCT ON (change_data_from_gir_vu_storage.recruitment_id, change_data_from_gir_vu_storage.info_date) change_data_from_gir_vu_storage.recruitment_id, + change_data_from_gir_vu_storage.info_date, + change_data_from_gir_vu_storage.count_reg_address, + change_data_from_gir_vu_storage.count_place_of_stay, + change_data_from_gir_vu_storage.count_work, + change_data_from_gir_vu_storage.count_place_of_study, + change_data_from_gir_vu_storage.count_family_status, + change_data_from_gir_vu_storage.count_education, + change_data_from_gir_vu_storage.count_renaming, + change_data_from_gir_vu_storage.count_med_info, + change_data_from_gir_vu_storage.count_other + FROM actualization.change_data_from_gir_vu_storage + ORDER BY change_data_from_gir_vu_storage.recruitment_id, change_data_from_gir_vu_storage.info_date, change_data_from_gir_vu_storage.update_date DESC) s ON (((m.recruitment_id)::text = (s.recruitment_id)::text))); """), where); } diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ChangeDataFromGirVuStorageRecord.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ChangeDataFromGirVuStorageRecord.java new file mode 100644 index 0000000..702f402 --- /dev/null +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ChangeDataFromGirVuStorageRecord.java @@ -0,0 +1,273 @@ +/* + * This file is generated by jOOQ. + */ +package ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.records; + + +import java.sql.Date; +import java.sql.Timestamp; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + +import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ChangeDataFromGirVuStorage; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ChangeDataFromGirVuStorageRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.change_data_from_gir_vu_id_storage. + */ + public void setChangeDataFromGirVuIdStorage(Long value) { + set(0, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.change_data_from_gir_vu_id_storage. + */ + public Long getChangeDataFromGirVuIdStorage() { + return (Long) get(0); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.recruitment_id. + */ + public void setRecruitmentId(String value) { + set(1, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.recruitment_id. + */ + public String getRecruitmentId() { + return (String) get(1); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.update_date. + */ + public void setUpdateDate(Timestamp value) { + set(2, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.update_date. + */ + public Timestamp getUpdateDate() { + return (Timestamp) get(2); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.info_date. + */ + public void setInfoDate(Date value) { + set(3, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.info_date. + */ + public Date getInfoDate() { + return (Date) get(3); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_reg_address. + */ + public void setCountRegAddress(Long value) { + set(4, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_reg_address. + */ + public Long getCountRegAddress() { + return (Long) get(4); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_place_of_stay. + */ + public void setCountPlaceOfStay(Long value) { + set(5, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_place_of_stay. + */ + public Long getCountPlaceOfStay() { + return (Long) get(5); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_work. + */ + public void setCountWork(Long value) { + set(6, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_work. + */ + public Long getCountWork() { + return (Long) get(6); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_place_of_study. + */ + public void setCountPlaceOfStudy(Long value) { + set(7, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_place_of_study. + */ + public Long getCountPlaceOfStudy() { + return (Long) get(7); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_family_status. + */ + public void setCountFamilyStatus(Long value) { + set(8, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_family_status. + */ + public Long getCountFamilyStatus() { + return (Long) get(8); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_education. + */ + public void setCountEducation(Long value) { + set(9, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_education. + */ + public Long getCountEducation() { + return (Long) get(9); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_renaming. + */ + public void setCountRenaming(Long value) { + set(10, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_renaming. + */ + public Long getCountRenaming() { + return (Long) get(10); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_med_info. + */ + public void setCountMedInfo(Long value) { + set(11, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_med_info. + */ + public Long getCountMedInfo() { + return (Long) get(11); + } + + /** + * Setter for + * actualization.change_data_from_gir_vu_storage.count_other. + */ + public void setCountOther(Long value) { + set(12, value); + } + + /** + * Getter for + * actualization.change_data_from_gir_vu_storage.count_other. + */ + public Long getCountOther() { + return (Long) get(12); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached ChangeDataFromGirVuStorageRecord + */ + public ChangeDataFromGirVuStorageRecord() { + super(ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE); + } + + /** + * Create a detached, initialised ChangeDataFromGirVuStorageRecord + */ + public ChangeDataFromGirVuStorageRecord(Long changeDataFromGirVuIdStorage, String recruitmentId, Timestamp updateDate, Date infoDate, Long countRegAddress, Long countPlaceOfStay, Long countWork, Long countPlaceOfStudy, Long countFamilyStatus, Long countEducation, Long countRenaming, Long countMedInfo, Long countOther) { + super(ChangeDataFromGirVuStorage.CHANGE_DATA_FROM_GIR_VU_STORAGE); + + setChangeDataFromGirVuIdStorage(changeDataFromGirVuIdStorage); + setRecruitmentId(recruitmentId); + setUpdateDate(updateDate); + setInfoDate(infoDate); + setCountRegAddress(countRegAddress); + setCountPlaceOfStay(countPlaceOfStay); + setCountWork(countWork); + setCountPlaceOfStudy(countPlaceOfStudy); + setCountFamilyStatus(countFamilyStatus); + setCountEducation(countEducation); + setCountRenaming(countRenaming); + setCountMedInfo(countMedInfo); + setCountOther(countOther); + resetChangedOnNotNull(); + } +} diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ViewChangeDataFromGirVuRecord.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ViewChangeDataFromGirVuRecord.java index 5d19be1..54e3f0d 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ViewChangeDataFromGirVuRecord.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/actualization/tables/records/ViewChangeDataFromGirVuRecord.java @@ -21,18 +21,162 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.change_data_from_gir_vu_id. + * actualization.view_change_data_from_gir_vu.recruitment_id. */ - public void setChangeDataFromGirVuId(Long value) { + public void setRecruitmentId(String value) { set(0, value); } /** * Getter for - * actualization.view_change_data_from_gir_vu.change_data_from_gir_vu_id. + * actualization.view_change_data_from_gir_vu.recruitment_id. */ - public Long getChangeDataFromGirVuId() { - return (Long) get(0); + public String getRecruitmentId() { + return (String) get(0); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_reg_address. + */ + public void setCountRegAddress(Long value) { + set(1, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_reg_address. + */ + public Long getCountRegAddress() { + return (Long) get(1); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_place_of_stay. + */ + public void setCountPlaceOfStay(Long value) { + set(2, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_place_of_stay. + */ + public Long getCountPlaceOfStay() { + return (Long) get(2); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_work. + */ + public void setCountWork(Long value) { + set(3, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_work. + */ + public Long getCountWork() { + return (Long) get(3); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_place_of_study. + */ + public void setCountPlaceOfStudy(Long value) { + set(4, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_place_of_study. + */ + public Long getCountPlaceOfStudy() { + return (Long) get(4); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_family_status. + */ + public void setCountFamilyStatus(Long value) { + set(5, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_family_status. + */ + public Long getCountFamilyStatus() { + return (Long) get(5); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_education. + */ + public void setCountEducation(Long value) { + set(6, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_education. + */ + public Long getCountEducation() { + return (Long) get(6); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_renaming. + */ + public void setCountRenaming(Long value) { + set(7, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_renaming. + */ + public Long getCountRenaming() { + return (Long) get(7); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_med_info. + */ + public void setCountMedInfo(Long value) { + set(8, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_med_info. + */ + public Long getCountMedInfo() { + return (Long) get(8); + } + + /** + * Setter for + * actualization.view_change_data_from_gir_vu.count_other. + */ + public void setCountOther(Long value) { + set(9, value); + } + + /** + * Getter for + * actualization.view_change_data_from_gir_vu.count_other. + */ + public Long getCountOther() { + return (Long) get(9); } /** @@ -40,7 +184,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.count_all. */ public void setCountAll(Long value) { - set(1, value); + set(10, value); } /** @@ -48,7 +192,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.count_all. */ public Long getCountAll() { - return (Long) get(1); + return (Long) get(10); } /** @@ -56,7 +200,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_reg_address. */ public void setPercentRegAddress(BigDecimal value) { - set(2, value); + set(11, value); } /** @@ -64,7 +208,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_reg_address. */ public BigDecimal getPercentRegAddress() { - return (BigDecimal) get(2); + return (BigDecimal) get(11); } /** @@ -72,7 +216,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_place_of_stay. */ public void setPercentPlaceOfStay(BigDecimal value) { - set(3, value); + set(12, value); } /** @@ -80,7 +224,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_place_of_stay. */ public BigDecimal getPercentPlaceOfStay() { - return (BigDecimal) get(3); + return (BigDecimal) get(12); } /** @@ -88,7 +232,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_work. */ public void setPercentWork(BigDecimal value) { - set(4, value); + set(13, value); } /** @@ -96,7 +240,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_work. */ public BigDecimal getPercentWork() { - return (BigDecimal) get(4); + return (BigDecimal) get(13); } /** @@ -104,7 +248,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_place_of_study. */ public void setPercentPlaceOfStudy(BigDecimal value) { - set(5, value); + set(14, value); } /** @@ -112,7 +256,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_place_of_study. */ public BigDecimal getPercentPlaceOfStudy() { - return (BigDecimal) get(5); + return (BigDecimal) get(14); } /** @@ -120,7 +264,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_family_status. */ public void setPercentFamilyStatus(BigDecimal value) { - set(6, value); + set(15, value); } /** @@ -128,7 +272,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_family_status. */ public BigDecimal getPercentFamilyStatus() { - return (BigDecimal) get(6); + return (BigDecimal) get(15); } /** @@ -136,7 +280,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_education. */ public void setPercentEducation(BigDecimal value) { - set(7, value); + set(16, value); } /** @@ -144,7 +288,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_education. */ public BigDecimal getPercentEducation() { - return (BigDecimal) get(7); + return (BigDecimal) get(16); } /** @@ -152,7 +296,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_renaming. */ public void setPercentRenaming(BigDecimal value) { - set(8, value); + set(17, value); } /** @@ -160,7 +304,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_renaming. */ public BigDecimal getPercentRenaming() { - return (BigDecimal) get(8); + return (BigDecimal) get(17); } /** @@ -168,7 +312,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_med_info. */ public void setPercentMedInfo(BigDecimal value) { - set(9, value); + set(18, value); } /** @@ -176,7 +320,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_med_info. */ public BigDecimal getPercentMedInfo() { - return (BigDecimal) get(9); + return (BigDecimal) get(18); } /** @@ -184,7 +328,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_other. */ public void setPercentOther(BigDecimal value) { - set(10, value); + set(19, value); } /** @@ -192,7 +336,7 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImplactualization.view_change_data_from_gir_vu.percent_other. */ public BigDecimal getPercentOther() { - return (BigDecimal) get(10); + return (BigDecimal) get(19); } // ------------------------------------------------------------------------- @@ -209,10 +353,19 @@ public class ViewChangeDataFromGirVuRecord extends TableRecordImpl /** * The column * init_registration_info.records_info_id_uk_id_ern.records_load. - * Количество выгуженных записей присвоения ИДУК + * Количество выгруженных записей присвоения ИД УК */ - public final TableField RECORDS_LOAD = createField(DSL.name("records_load"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "Количество выгуженных записей присвоения ИДУК"); + public final TableField RECORDS_LOAD = createField(DSL.name("records_load"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "Количество выгруженных записей присвоения ИД УК"); private RecordsInfoIdUkIdErn(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); diff --git a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/init_registration_info/tables/records/RecordsInfoIdUkIdErnRecord.java b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/init_registration_info/tables/records/RecordsInfoIdUkIdErnRecord.java index b66caa1..0945c77 100644 --- a/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/init_registration_info/tables/records/RecordsInfoIdUkIdErnRecord.java +++ b/backend/src/main/java/ru/micord/webbpm/ervu/business_metrics/db_beans/init_registration_info/tables/records/RecordsInfoIdUkIdErnRecord.java @@ -156,7 +156,7 @@ public class RecordsInfoIdUkIdErnRecord extends UpdatableRecordImplinit_registration_info.records_info_id_uk_id_ern.records_load. - * Количество выгуженных записей присвоения ИДУК + * Количество выгруженных записей присвоения ИД УК */ public void setRecordsLoad(Integer value) { set(8, value); @@ -165,7 +165,7 @@ public class RecordsInfoIdUkIdErnRecord extends UpdatableRecordImplinit_registration_info.records_info_id_uk_id_ern.records_load. - * Количество выгуженных записей присвоения ИДУК + * Количество выгруженных записей присвоения ИД УК */ public Integer getRecordsLoad() { return (Integer) get(8); diff --git a/backend/src/main/resources/config/v_1.0/20251126-db_changes.xml b/backend/src/main/resources/config/v_1.0/20251126-db_changes.xml new file mode 100644 index 0000000..de230ad --- /dev/null +++ b/backend/src/main/resources/config/v_1.0/20251126-db_changes.xml @@ -0,0 +1,214 @@ + + + + + + + CREATE TABLE + + CREATE TABLE IF NOT EXISTS actualization.change_data_from_gir_vu_storage ( + -- Первичный ключ (автоинкремент) + change_data_from_gir_vu_id_storage bigserial NOT NULL, + + -- Идентификатор ВК (до 36 символов для UUID в формате строки) + recruitment_id varchar(36) NOT NULL, + + -- Дата и время последнего обновления записи + update_date timestamp DEFAULT now() NOT NULL, + + -- Дата, на которую собрана информация + info_date date NOT NULL, + + -- Счётчики изменений по категориям (bigint для больших объёмов данных) + count_reg_address int8 DEFAULT 0 NOT NULL, -- Количество изменений адреса регистрации + count_place_of_stay int8 DEFAULT 0 NOT NULL, -- Количество изменений места пребывания + count_work int8 DEFAULT 0 NOT NULL, -- Количество изменений данных о работе + count_place_of_study int8 DEFAULT 0 NOT NULL, -- Количество изменений данных об учёбе + count_family_status int8 DEFAULT 0 NOT NULL, -- Количество изменений семейного положения + count_education int8 DEFAULT 0 NOT NULL, -- Количество изменений данных об образовании + count_renaming int8 DEFAULT 0 NOT NULL, -- Количество изменений ФИО + count_med_info int8 DEFAULT 0 NOT NULL, -- Количество изменений медицинской информации + count_other int8 DEFAULT 0 NOT NULL, -- Количество прочих изменений + + -- Первичный ключ + CONSTRAINT change_data_from_gir_vu_pkey_storage PRIMARY KEY (change_data_from_gir_vu_id_storage), + + -- Уникальный составной индекс для предотвращения дублирования + CONSTRAINT unique_recruitment_info_date UNIQUE (recruitment_id, info_date) + ); + + -- Создаём индексы для оптимизации запросов + -- Индекс 1: По дате информации (для выборки данных за период) + CREATE INDEX IF NOT EXISTS idx_change_data_from_gir_vu_date_storage + ON actualization.change_data_from_gir_vu_storage USING btree (info_date); + + -- Индекс 2: По идентификатору ВК (для поиска по конкретному ВК + CREATE INDEX IF NOT EXISTS idx_change_data_from_gir_vu_recr_storage + ON actualization.change_data_from_gir_vu_storage USING btree (recruitment_id); + + -- Индекс 3: Составной индекс по ВК и дате (для детальных запросов) + CREATE INDEX IF NOT EXISTS idx_change_data_from_gir_vu_recr_date_storage + ON actualization.change_data_from_gir_vu_storage USING btree (recruitment_id, info_date); + + + + + CREATE VIEW + + DROP VIEW actualization.view_change_data_from_gir_vu; + + CREATE OR REPLACE VIEW actualization.view_change_data_from_gir_vu AS + SELECT + COALESCE(s.recruitment_id, m.recruitment_id) as recruitment_id, + + -- Суммарные значения счетчиков + COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) as count_reg_address, + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) as count_place_of_stay, + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) as count_work, + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) as count_place_of_study, + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) as count_family_status, + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) as count_education, + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) as count_renaming, + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) as count_med_info, + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0) as count_other, + + -- Общее количество (основа для расчета процентов) + (COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0)) AS count_all, + + -- Расчет процентов + COALESCE(round((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_reg_address, + + COALESCE(round((COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_place_of_stay, + + COALESCE(round((COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_work, + + COALESCE(round((COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_place_of_study, + + COALESCE(round((COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_family_status, + + COALESCE(round((COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_education, + + COALESCE(round((COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_renaming, + + COALESCE(round((COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_med_info, + + COALESCE(round((COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric * 100::numeric / + NULLIF((COALESCE(m.count_reg_address, 0) + COALESCE(s.count_reg_address, 0) + + COALESCE(m.count_place_of_stay, 0) + COALESCE(s.count_place_of_stay, 0) + + COALESCE(m.count_work, 0) + COALESCE(s.count_work, 0) + + COALESCE(m.count_place_of_study, 0) + COALESCE(s.count_place_of_study, 0) + + COALESCE(m.count_family_status, 0) + COALESCE(s.count_family_status, 0) + + COALESCE(m.count_education, 0) + COALESCE(s.count_education, 0) + + COALESCE(m.count_renaming, 0) + COALESCE(s.count_renaming, 0) + + COALESCE(m.count_med_info, 0) + COALESCE(s.count_med_info, 0) + + COALESCE(m.count_other, 0) + COALESCE(s.count_other, 0))::numeric, 0::numeric)), 0::numeric) AS percent_other + + FROM actualization.change_data_from_gir_vu m + FULL OUTER JOIN ( + SELECT DISTINCT ON (recruitment_id, info_date) + recruitment_id, info_date, + count_reg_address, count_place_of_stay, count_work, count_place_of_study, + count_family_status, count_education, count_renaming, count_med_info, count_other + FROM actualization.change_data_from_gir_vu_storage + ORDER BY recruitment_id, info_date, update_date DESC + ) s ON m.recruitment_id = s.recruitment_id + + + + + CREATE TABLE + + CREATE TABLE IF NOT EXISTS actualization.temp_recruitment_updates ( + id BIGSERIAL PRIMARY KEY, + recruitment_id BIGINT NOT NULL, + time_created TIMESTAMP NOT NULL, + diff_text TEXT, + CONSTRAINT uq_recruitment_time UNIQUE (recruitment_id, time_created) + ); + + + \ No newline at end of file diff --git a/backend/src/main/resources/config/v_1.0/changelog-1.0.xml b/backend/src/main/resources/config/v_1.0/changelog-1.0.xml index ae791f7..9274909 100644 --- a/backend/src/main/resources/config/v_1.0/changelog-1.0.xml +++ b/backend/src/main/resources/config/v_1.0/changelog-1.0.xml @@ -41,5 +41,6 @@ - + + \ No newline at end of file diff --git a/resources/src/main/resources/business-model/ervu-business-metrics/updating.page b/resources/src/main/resources/business-model/ervu-business-metrics/updating.page index 0b5a64b..a30e597 100644 --- a/resources/src/main/resources/business-model/ervu-business-metrics/updating.page +++ b/resources/src/main/resources/business-model/ervu-business-metrics/updating.page @@ -350,13 +350,6 @@ - - b310f98a-69c6-4e7b-8cdb-f1ab9f9c0d94 - ae63ba9d-f6eb-46f5-a0c5-c12c03a22e49 - Дата - false - true - be0e38c3-01c2-4122-85dd-1b6e176f543d b20c696a-cf6b-4a1b-a05b-abdfdb4e5524 @@ -2399,6 +2392,7 @@ 73edb92d-c817-499a-b50e-e04d4bde5f7b ВК ГИР ВУ true + false false @@ -2410,6 +2404,7 @@ 9bc6be2e-cff9-48ca-8aab-280a3f290a23 ГК Первый ряд true + false false @@ -2476,7 +2471,7 @@ graph -{"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":365.0,"y":202.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":595.0,"y":233.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"2":{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":365.0,"y":202.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":595.0,"y":233.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":595.0,"y":233.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"change_data_from_gir_vu":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":365.0,"y":202.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null,{"refOnEntityName":"change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}}],[{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"change_data_from_gir_vu","refToColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null,null],[null,null,null]],"mainNodeIndex":0} +{"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":520.0,"y":228.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":520.0,"y":228.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":141.0,"y":258.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[{"column":{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"schema"},"operation":"EQUAL","typeCode":"CONST","values":["\"Ministry\""]}],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":520.0,"y":228.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null],[{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null]],"mainNodeIndex":1} @@ -2594,7 +2589,7 @@ graph -{"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":323.0,"y":127.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"2":{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":323.0,"y":127.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"change_data_from_gir_vu":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":323.0,"y":127.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null,{"refOnEntityName":"change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}}],[{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"change_data_from_gir_vu","refToColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null,null],[null,null,null]],"mainNodeIndex":0} +{"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":104.0,"y":202.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":545.0,"y":211.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}}],[null,null]],"mainNodeIndex":0} @@ -2766,7 +2761,7 @@ graph - {"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":358.0,"y":164.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"2":{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":358.0,"y":164.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"change_data_from_gir_vu":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":358.0,"y":164.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null,{"refOnEntityName":"change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}}],[{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"change_data_from_gir_vu","refToColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"change_data_from_gir_vu_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null,null],[null,null,null]],"mainNodeIndex":0} + {"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":127.0,"y":228.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":579.0,"y":238.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}}],[null,null]],"mainNodeIndex":0} @@ -2813,7 +2808,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_reg_address"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_reg_address"} @@ -2835,6 +2830,7 @@ + false @@ -2843,7 +2839,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_stay"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_stay"} @@ -2865,6 +2861,7 @@ + false @@ -2873,7 +2870,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_work"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_work"} @@ -2895,6 +2892,7 @@ + false @@ -2903,7 +2901,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_study"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_study"} @@ -2925,6 +2923,7 @@ + false @@ -2933,7 +2932,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_family_status"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_family_status"} @@ -2955,6 +2954,7 @@ + false @@ -2963,7 +2963,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_education"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_education"} @@ -2985,6 +2985,7 @@ + false @@ -2993,7 +2994,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_renaming"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_renaming"} @@ -3015,6 +3016,7 @@ + false @@ -3023,7 +3025,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_med_info"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_med_info"} @@ -3045,6 +3047,7 @@ + false @@ -3053,7 +3056,7 @@ aggregationColumn -{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_other"} +{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_other"} @@ -3075,6 +3078,7 @@ + false @@ -3111,7 +3115,7 @@ graph - {"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":453.0,"y":162.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":453.0,"y":162.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"change_data_from_gir_vu":{"tableName":"change_data_from_gir_vu","schemaName":"actualization","x":453.0,"y":162.0,"alias":"change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null],[{"refOnEntityName":"change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null]],"mainNodeIndex":1} + {"conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"nodeByIndex":{"0":{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"1":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":486.0,"y":207.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"nodes":[{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":486.0,"y":207.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}],"nodeByEntityName":{"recruitment":{"tableName":"recruitment","schemaName":"metrics","x":181.0,"y":198.0,"alias":"recruitment","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"},"view_change_data_from_gir_vu":{"tableName":"view_change_data_from_gir_vu","schemaName":"actualization","x":486.0,"y":207.0,"alias":"view_change_data_from_gir_vu","conditionGroup":{"operator":"AND","conditions":[],"groups":[]},"emptyEntityAction":"IGNORE_OR_DELETE"}},"matrix":[[null,null],[{"refOnEntityName":"view_change_data_from_gir_vu","refToEntityName":"recruitment","refToColumns":[{"schema":"metrics","table":"recruitment","entity":"recruitment","name":"idm_id"}],"refOnColumns":[{"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"recruitment_id"}],"required":false,"cyclic":false,"conditionGroup":{"operator":"AND","conditions":[],"groups":[]}},null]],"mainNodeIndex":1} @@ -4373,7 +4377,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_reg_address"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_reg_address"} @@ -4395,7 +4399,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_reg_address"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_reg_address"} @@ -4445,7 +4449,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_stay"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_stay"} @@ -4467,7 +4471,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_stay"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_stay"} @@ -4517,7 +4521,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_work"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_work"} @@ -4539,7 +4543,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_work"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_work"} @@ -4589,7 +4593,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_study"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_study"} @@ -4611,7 +4615,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_place_of_study"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_place_of_study"} @@ -4661,7 +4665,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_family_status"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_family_status"} @@ -4683,7 +4687,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_family_status"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_family_status"} @@ -4733,7 +4737,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_education"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_education"} @@ -4755,7 +4759,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_education"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_education"} @@ -4805,7 +4809,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_renaming"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_renaming"} @@ -4827,7 +4831,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_renaming"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_renaming"} @@ -4877,7 +4881,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_med_info"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_med_info"} @@ -4899,7 +4903,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_med_info"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_med_info"} @@ -4949,7 +4953,7 @@ defaultValueColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_other"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_other"} @@ -4971,7 +4975,7 @@ valueByEventColumn - {"schema":"actualization","table":"change_data_from_gir_vu","entity":"change_data_from_gir_vu","name":"count_other"} + {"schema":"actualization","table":"view_change_data_from_gir_vu","entity":"view_change_data_from_gir_vu","name":"count_other"} @@ -5400,6 +5404,7 @@ ef3f9692-ae92-4772-91d3-7f177f5e691a ВК уникальных записей граждан true + false false @@ -5781,6 +5786,7 @@ a256c8f1-1935-4a49-8058-5513e08191c0 ГК Второй ряд true + false false @@ -5805,6 +5811,7 @@ 8683ae87-160d-4004-8fa9-b8af17e17062 ВК Отправка уведомлений в ЛК гражданина на ЕПГУ true + false false @@ -9386,6 +9393,7 @@ 43f837aa-1141-4bd6-b4d4-ef62295bd2ba ВК ЕПГУ true + false false @@ -9397,6 +9405,7 @@ d17e6df1-babb-4dbb-9b29-0400277e0776 ГК Первый ряд true + false false @@ -14876,6 +14885,7 @@ cf105548-2385-49cb-8951-faab404492d7 ГК Второй ряд true + false false @@ -19690,7 +19700,6 @@ 683da71b-655f-45c5-b5fe-da914b814cc2 ВК Личное посещение ВК true - false false @@ -19726,6 +19735,7 @@ 08c9fc47-4f2e-428e-adf8-eb30f0d8b91d ВК записей граждан отредактировано true + false false @@ -20483,7 +20493,7 @@ initialValue - "сведений ЕРВУ и ручному вводу" + "Инцидентов по несоответствию сведений ЕРВУ и ручному вводу" @@ -20573,6 +20583,7 @@ 954e28b2-f85c-4d45-ad64-60dfbd78d6cf ВК Отправка уведомлений в ЛК гражданина на ЕПГУ true + false false