графики
This commit is contained in:
parent
7331bd46c4
commit
389b226835
10 changed files with 2715 additions and 50 deletions
|
|
@ -19,12 +19,14 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.App
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.DataFromGirVu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.IncidentsInfo;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.RemovalRegistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.Solutions;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewApplicationsReceivedFromEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewApplicationsSentFromEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewDataFromGirVu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewIncidentsInfo;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewInfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewRemovalRegistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewSolutions;
|
||||
|
||||
|
||||
|
|
@ -72,6 +74,11 @@ public class Deregistration extends SchemaImpl {
|
|||
*/
|
||||
public final InfoSentToLkEpgu INFO_SENT_TO_LK_EPGU = InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.removal_registration</code>.
|
||||
*/
|
||||
public final RemovalRegistration REMOVAL_REGISTRATION = RemovalRegistration.REMOVAL_REGISTRATION;
|
||||
|
||||
/**
|
||||
* Снятие с воинского учета. Решение о снятии с ВУ
|
||||
*/
|
||||
|
|
@ -103,6 +110,11 @@ public class Deregistration extends SchemaImpl {
|
|||
*/
|
||||
public final ViewInfoSentToLkEpgu VIEW_INFO_SENT_TO_LK_EPGU = ViewInfoSentToLkEpgu.VIEW_INFO_SENT_TO_LK_EPGU;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.view_removal_registration</code>.
|
||||
*/
|
||||
public final ViewRemovalRegistration VIEW_REMOVAL_REGISTRATION = ViewRemovalRegistration.VIEW_REMOVAL_REGISTRATION;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.view_solutions</code>.
|
||||
*/
|
||||
|
|
@ -137,12 +149,14 @@ public class Deregistration extends SchemaImpl {
|
|||
DataFromGirVu.DATA_FROM_GIR_VU,
|
||||
IncidentsInfo.INCIDENTS_INFO,
|
||||
InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU,
|
||||
RemovalRegistration.REMOVAL_REGISTRATION,
|
||||
Solutions.SOLUTIONS,
|
||||
ViewApplicationsReceivedFromEpgu.VIEW_APPLICATIONS_RECEIVED_FROM_EPGU,
|
||||
ViewApplicationsSentFromEpgu.VIEW_APPLICATIONS_SENT_FROM_EPGU,
|
||||
ViewDataFromGirVu.VIEW_DATA_FROM_GIR_VU,
|
||||
ViewIncidentsInfo.VIEW_INCIDENTS_INFO,
|
||||
ViewInfoSentToLkEpgu.VIEW_INFO_SENT_TO_LK_EPGU,
|
||||
ViewRemovalRegistration.VIEW_REMOVAL_REGISTRATION,
|
||||
ViewSolutions.VIEW_SOLUTIONS
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.App
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.DataFromGirVu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.IncidentsInfo;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.RemovalRegistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.Solutions;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.ActiveApplicationsRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.ApplicationsReceivedFromEpguRecord;
|
||||
|
|
@ -23,6 +24,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.rec
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.DataFromGirVuRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.IncidentsInfoRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.InfoSentToLkEpguRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.RemovalRegistrationRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.SolutionsRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Recruitment;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.RecruitmentRecord;
|
||||
|
|
@ -45,6 +47,7 @@ public class Keys {
|
|||
public static final UniqueKey<DataFromGirVuRecord> DATA_FROM_GIR_VU_PKEY = Internal.createUniqueKey(DataFromGirVu.DATA_FROM_GIR_VU, DSL.name("data_from_gir_vu_pkey"), new TableField[] { DataFromGirVu.DATA_FROM_GIR_VU.DATA_FROM_GIR_VU_ID }, true);
|
||||
public static final UniqueKey<IncidentsInfoRecord> INCIDENTS_INFO_PKEY = Internal.createUniqueKey(IncidentsInfo.INCIDENTS_INFO, DSL.name("incidents_info_pkey"), new TableField[] { IncidentsInfo.INCIDENTS_INFO.INCIDENTS_INFO_ID }, true);
|
||||
public static final UniqueKey<InfoSentToLkEpguRecord> INFO_SENT_TO_LK_EPGU_PKEY = Internal.createUniqueKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("info_sent_to_lk_epgu_pkey"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.INFO_SENT_TO_LK_EPGU_ID }, true);
|
||||
public static final UniqueKey<RemovalRegistrationRecord> REMOVAL_REGISTRATION_PKEY = Internal.createUniqueKey(RemovalRegistration.REMOVAL_REGISTRATION, DSL.name("removal_registration_pkey"), new TableField[] { RemovalRegistration.REMOVAL_REGISTRATION.REMOVAL_REGISTRATION_ID }, true);
|
||||
public static final UniqueKey<SolutionsRecord> SOLUTIONS_PKEY = Internal.createUniqueKey(Solutions.SOLUTIONS, DSL.name("solutions_pkey"), new TableField[] { Solutions.SOLUTIONS.SOLUTIONS_ID }, true);
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -57,5 +60,6 @@ public class Keys {
|
|||
public static final ForeignKey<DataFromGirVuRecord, RecruitmentRecord> DATA_FROM_GIR_VU__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(DataFromGirVu.DATA_FROM_GIR_VU, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { DataFromGirVu.DATA_FROM_GIR_VU.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
|
||||
public static final ForeignKey<IncidentsInfoRecord, RecruitmentRecord> INCIDENTS_INFO__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(IncidentsInfo.INCIDENTS_INFO, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { IncidentsInfo.INCIDENTS_INFO.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
|
||||
public static final ForeignKey<InfoSentToLkEpguRecord, RecruitmentRecord> INFO_SENT_TO_LK_EPGU__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
|
||||
public static final ForeignKey<RemovalRegistrationRecord, RecruitmentRecord> REMOVAL_REGISTRATION__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID = Internal.createForeignKey(RemovalRegistration.REMOVAL_REGISTRATION, DSL.name("fk_conv_info_records_from_easu_recruitment_id"), new TableField[] { RemovalRegistration.REMOVAL_REGISTRATION.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
|
||||
public static final ForeignKey<SolutionsRecord, RecruitmentRecord> SOLUTIONS__FK_CRIMINAL_ADMINISTRATIVE_LIABILITY_RECRUITMENT_ID = Internal.createForeignKey(Solutions.SOLUTIONS, DSL.name("fk_criminal_administrative_liability_recruitment_id"), new TableField[] { Solutions.SOLUTIONS.RECRUITMENT_ID }, ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Keys.RECRUITMENT_PKEY, new TableField[] { Recruitment.RECRUITMENT.ID }, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,12 +10,14 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.App
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.DataFromGirVu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.IncidentsInfo;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.RemovalRegistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.Solutions;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewApplicationsReceivedFromEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewApplicationsSentFromEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewDataFromGirVu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewIncidentsInfo;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewInfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewRemovalRegistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewSolutions;
|
||||
|
||||
|
||||
|
|
@ -56,6 +58,11 @@ public class Tables {
|
|||
*/
|
||||
public static final InfoSentToLkEpgu INFO_SENT_TO_LK_EPGU = InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.removal_registration</code>.
|
||||
*/
|
||||
public static final RemovalRegistration REMOVAL_REGISTRATION = RemovalRegistration.REMOVAL_REGISTRATION;
|
||||
|
||||
/**
|
||||
* Снятие с воинского учета. Решение о снятии с ВУ
|
||||
*/
|
||||
|
|
@ -87,6 +94,11 @@ public class Tables {
|
|||
*/
|
||||
public static final ViewInfoSentToLkEpgu VIEW_INFO_SENT_TO_LK_EPGU = ViewInfoSentToLkEpgu.VIEW_INFO_SENT_TO_LK_EPGU;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.view_removal_registration</code>.
|
||||
*/
|
||||
public static final ViewRemovalRegistration VIEW_REMOVAL_REGISTRATION = ViewRemovalRegistration.VIEW_REMOVAL_REGISTRATION;
|
||||
|
||||
/**
|
||||
* The table <code>deregistration.view_solutions</code>.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,325 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.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.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.Record;
|
||||
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.deregistration.Deregistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.Keys;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.RemovalRegistrationRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Recruitment.RecruitmentPath;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class RemovalRegistration extends TableImpl<RemovalRegistrationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of
|
||||
* <code>deregistration.removal_registration</code>
|
||||
*/
|
||||
public static final RemovalRegistration REMOVAL_REGISTRATION = new RemovalRegistration();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<RemovalRegistrationRecord> getRecordType() {
|
||||
return RemovalRegistrationRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Long> REMOVAL_REGISTRATION_ID = createField(DSL.name("removal_registration_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>deregistration.removal_registration.update_date</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Timestamp> UPDATE_DATE = createField(DSL.name("update_date"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>deregistration.removal_registration.info_date</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Date> INFO_DATE = createField(DSL.name("info_date"), SQLDataType.DATE.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.count_age_limit</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Long> COUNT_AGE_LIMIT = createField(DSL.name("count_age_limit"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.count_reason_death</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Long> COUNT_REASON_DEATH = createField(DSL.name("count_reason_death"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.count_loss_citizenship</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Long> COUNT_LOSS_CITIZENSHIP = createField(DSL.name("count_loss_citizenship"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.removal_registration.count_cancellation_record</code>.
|
||||
*/
|
||||
public final TableField<RemovalRegistrationRecord, Long> COUNT_CANCELLATION_RECORD = createField(DSL.name("count_cancellation_record"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");
|
||||
|
||||
private RemovalRegistration(Name alias, Table<RemovalRegistrationRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private RemovalRegistration(Name alias, Table<RemovalRegistrationRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>deregistration.removal_registration</code> table
|
||||
* reference
|
||||
*/
|
||||
public RemovalRegistration(String alias) {
|
||||
this(DSL.name(alias), REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>deregistration.removal_registration</code> table
|
||||
* reference
|
||||
*/
|
||||
public RemovalRegistration(Name alias) {
|
||||
this(alias, REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>deregistration.removal_registration</code> table reference
|
||||
*/
|
||||
public RemovalRegistration() {
|
||||
this(DSL.name("removal_registration"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> RemovalRegistration(Table<O> path, ForeignKey<O, RemovalRegistrationRecord> childPath, InverseForeignKey<O, RemovalRegistrationRecord> parentPath) {
|
||||
super(path, childPath, parentPath, REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||
*/
|
||||
public static class RemovalRegistrationPath extends RemovalRegistration implements Path<RemovalRegistrationRecord> {
|
||||
public <O extends Record> RemovalRegistrationPath(Table<O> path, ForeignKey<O, RemovalRegistrationRecord> childPath, InverseForeignKey<O, RemovalRegistrationRecord> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
private RemovalRegistrationPath(Name alias, Table<RemovalRegistrationRecord> aliased) {
|
||||
super(alias, aliased);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistrationPath as(String alias) {
|
||||
return new RemovalRegistrationPath(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistrationPath as(Name alias) {
|
||||
return new RemovalRegistrationPath(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistrationPath as(Table<?> alias) {
|
||||
return new RemovalRegistrationPath(alias.getQualifiedName(), this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Deregistration.DEREGISTRATION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<RemovalRegistrationRecord, Long> getIdentity() {
|
||||
return (Identity<RemovalRegistrationRecord, Long>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<RemovalRegistrationRecord> getPrimaryKey() {
|
||||
return Keys.REMOVAL_REGISTRATION_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ForeignKey<RemovalRegistrationRecord, ?>> getReferences() {
|
||||
return Arrays.asList(Keys.REMOVAL_REGISTRATION__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID);
|
||||
}
|
||||
|
||||
private transient RecruitmentPath _recruitment;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>metrics.recruitment</code> table.
|
||||
*/
|
||||
public RecruitmentPath recruitment() {
|
||||
if (_recruitment == null)
|
||||
_recruitment = new RecruitmentPath(this, Keys.REMOVAL_REGISTRATION__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID, null);
|
||||
|
||||
return _recruitment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistration as(String alias) {
|
||||
return new RemovalRegistration(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistration as(Name alias) {
|
||||
return new RemovalRegistration(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RemovalRegistration as(Table<?> alias) {
|
||||
return new RemovalRegistration(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration rename(String name) {
|
||||
return new RemovalRegistration(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration rename(Name name) {
|
||||
return new RemovalRegistration(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration rename(Table<?> name) {
|
||||
return new RemovalRegistration(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration where(Condition condition) {
|
||||
return new RemovalRegistration(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RemovalRegistration where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RemovalRegistration where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RemovalRegistration where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RemovalRegistration where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RemovalRegistration whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,255 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
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.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.Deregistration;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records.ViewRemovalRegistrationRecord;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ViewRemovalRegistration extends TableImpl<ViewRemovalRegistrationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of
|
||||
* <code>deregistration.view_removal_registration</code>
|
||||
*/
|
||||
public static final ViewRemovalRegistration VIEW_REMOVAL_REGISTRATION = new ViewRemovalRegistration();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<ViewRemovalRegistrationRecord> getRecordType() {
|
||||
return ViewRemovalRegistrationRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, Long> REMOVAL_REGISTRATION_ID = createField(DSL.name("removal_registration_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.count_all</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, Long> COUNT_ALL = createField(DSL.name("count_all"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.percent_age_limit</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, BigDecimal> PERCENT_AGE_LIMIT = createField(DSL.name("percent_age_limit"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.percent_reason_death</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, BigDecimal> PERCENT_REASON_DEATH = createField(DSL.name("percent_reason_death"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.percent_loss_citizenship</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, BigDecimal> PERCENT_LOSS_CITIZENSHIP = createField(DSL.name("percent_loss_citizenship"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>deregistration.view_removal_registration.percent_cancellation_record</code>.
|
||||
*/
|
||||
public final TableField<ViewRemovalRegistrationRecord, BigDecimal> PERCENT_CANCELLATION_RECORD = createField(DSL.name("percent_cancellation_record"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private ViewRemovalRegistration(Name alias, Table<ViewRemovalRegistrationRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private ViewRemovalRegistration(Name alias, Table<ViewRemovalRegistrationRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_removal_registration" as SELECT removal_registration.removal_registration_id,
|
||||
(((removal_registration.count_age_limit + removal_registration.count_reason_death) + removal_registration.count_loss_citizenship) + removal_registration.count_cancellation_record) AS count_all,
|
||||
round((((removal_registration.count_age_limit)::numeric * (100)::numeric) / ((((removal_registration.count_age_limit + removal_registration.count_reason_death) + removal_registration.count_loss_citizenship) + removal_registration.count_cancellation_record))::numeric)) AS percent_age_limit,
|
||||
round((((removal_registration.count_reason_death)::numeric * (100)::numeric) / ((((removal_registration.count_age_limit + removal_registration.count_reason_death) + removal_registration.count_loss_citizenship) + removal_registration.count_cancellation_record))::numeric)) AS percent_reason_death,
|
||||
round((((removal_registration.count_loss_citizenship)::numeric * (100)::numeric) / ((((removal_registration.count_age_limit + removal_registration.count_reason_death) + removal_registration.count_loss_citizenship) + removal_registration.count_cancellation_record))::numeric)) AS percent_loss_citizenship,
|
||||
round((((removal_registration.count_cancellation_record)::numeric * (100)::numeric) / ((((removal_registration.count_age_limit + removal_registration.count_reason_death) + removal_registration.count_loss_citizenship) + removal_registration.count_cancellation_record))::numeric)) AS percent_cancellation_record
|
||||
FROM deregistration.removal_registration;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>deregistration.view_removal_registration</code>
|
||||
* table reference
|
||||
*/
|
||||
public ViewRemovalRegistration(String alias) {
|
||||
this(DSL.name(alias), VIEW_REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>deregistration.view_removal_registration</code>
|
||||
* table reference
|
||||
*/
|
||||
public ViewRemovalRegistration(Name alias) {
|
||||
this(alias, VIEW_REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>deregistration.view_removal_registration</code> table
|
||||
* reference
|
||||
*/
|
||||
public ViewRemovalRegistration() {
|
||||
this(DSL.name("view_removal_registration"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Deregistration.DEREGISTRATION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRemovalRegistration as(String alias) {
|
||||
return new ViewRemovalRegistration(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRemovalRegistration as(Name alias) {
|
||||
return new ViewRemovalRegistration(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRemovalRegistration as(Table<?> alias) {
|
||||
return new ViewRemovalRegistration(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration rename(String name) {
|
||||
return new ViewRemovalRegistration(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration rename(Name name) {
|
||||
return new ViewRemovalRegistration(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration rename(Table<?> name) {
|
||||
return new ViewRemovalRegistration(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration where(Condition condition) {
|
||||
return new ViewRemovalRegistration(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRemovalRegistration where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRemovalRegistration where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRemovalRegistration where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRemovalRegistration where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRemovalRegistration whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,184 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.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.deregistration.tables.RemovalRegistration;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class RemovalRegistrationRecord extends UpdatableRecordImpl<RemovalRegistrationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public void setRemovalRegistrationId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public Long getRemovalRegistrationId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.recruitment_id</code>.
|
||||
*/
|
||||
public void setRecruitmentId(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.recruitment_id</code>.
|
||||
*/
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>deregistration.removal_registration.update_date</code>.
|
||||
*/
|
||||
public void setUpdateDate(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>deregistration.removal_registration.update_date</code>.
|
||||
*/
|
||||
public Timestamp getUpdateDate() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>deregistration.removal_registration.info_date</code>.
|
||||
*/
|
||||
public void setInfoDate(Date value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>deregistration.removal_registration.info_date</code>.
|
||||
*/
|
||||
public Date getInfoDate() {
|
||||
return (Date) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.count_age_limit</code>.
|
||||
*/
|
||||
public void setCountAgeLimit(Long value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.count_age_limit</code>.
|
||||
*/
|
||||
public Long getCountAgeLimit() {
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.count_reason_death</code>.
|
||||
*/
|
||||
public void setCountReasonDeath(Long value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.count_reason_death</code>.
|
||||
*/
|
||||
public Long getCountReasonDeath() {
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.count_loss_citizenship</code>.
|
||||
*/
|
||||
public void setCountLossCitizenship(Long value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.count_loss_citizenship</code>.
|
||||
*/
|
||||
public Long getCountLossCitizenship() {
|
||||
return (Long) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.removal_registration.count_cancellation_record</code>.
|
||||
*/
|
||||
public void setCountCancellationRecord(Long value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.removal_registration.count_cancellation_record</code>.
|
||||
*/
|
||||
public Long getCountCancellationRecord() {
|
||||
return (Long) get(7);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Long> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached RemovalRegistrationRecord
|
||||
*/
|
||||
public RemovalRegistrationRecord() {
|
||||
super(RemovalRegistration.REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised RemovalRegistrationRecord
|
||||
*/
|
||||
public RemovalRegistrationRecord(Long removalRegistrationId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countAgeLimit, Long countReasonDeath, Long countLossCitizenship, Long countCancellationRecord) {
|
||||
super(RemovalRegistration.REMOVAL_REGISTRATION);
|
||||
|
||||
setRemovalRegistrationId(removalRegistrationId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setUpdateDate(updateDate);
|
||||
setInfoDate(infoDate);
|
||||
setCountAgeLimit(countAgeLimit);
|
||||
setCountReasonDeath(countReasonDeath);
|
||||
setCountLossCitizenship(countLossCitizenship);
|
||||
setCountCancellationRecord(countCancellationRecord);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,143 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ViewRemovalRegistration;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ViewRemovalRegistrationRecord extends TableRecordImpl<ViewRemovalRegistrationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public void setRemovalRegistrationId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.removal_registration_id</code>.
|
||||
*/
|
||||
public Long getRemovalRegistrationId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.percent_age_limit</code>.
|
||||
*/
|
||||
public void setPercentAgeLimit(BigDecimal value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.percent_age_limit</code>.
|
||||
*/
|
||||
public BigDecimal getPercentAgeLimit() {
|
||||
return (BigDecimal) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.percent_reason_death</code>.
|
||||
*/
|
||||
public void setPercentReasonDeath(BigDecimal value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.percent_reason_death</code>.
|
||||
*/
|
||||
public BigDecimal getPercentReasonDeath() {
|
||||
return (BigDecimal) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.percent_loss_citizenship</code>.
|
||||
*/
|
||||
public void setPercentLossCitizenship(BigDecimal value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.percent_loss_citizenship</code>.
|
||||
*/
|
||||
public BigDecimal getPercentLossCitizenship() {
|
||||
return (BigDecimal) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>deregistration.view_removal_registration.percent_cancellation_record</code>.
|
||||
*/
|
||||
public void setPercentCancellationRecord(BigDecimal value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>deregistration.view_removal_registration.percent_cancellation_record</code>.
|
||||
*/
|
||||
public BigDecimal getPercentCancellationRecord() {
|
||||
return (BigDecimal) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ViewRemovalRegistrationRecord
|
||||
*/
|
||||
public ViewRemovalRegistrationRecord() {
|
||||
super(ViewRemovalRegistration.VIEW_REMOVAL_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ViewRemovalRegistrationRecord
|
||||
*/
|
||||
public ViewRemovalRegistrationRecord(Long removalRegistrationId, Long countAll, BigDecimal percentAgeLimit, BigDecimal percentReasonDeath, BigDecimal percentLossCitizenship, BigDecimal percentCancellationRecord) {
|
||||
super(ViewRemovalRegistration.VIEW_REMOVAL_REGISTRATION);
|
||||
|
||||
setRemovalRegistrationId(removalRegistrationId);
|
||||
setCountAll(countAll);
|
||||
setPercentAgeLimit(percentAgeLimit);
|
||||
setPercentReasonDeath(percentReasonDeath);
|
||||
setPercentLossCitizenship(percentLossCitizenship);
|
||||
setPercentCancellationRecord(percentCancellationRecord);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
@ -44,6 +44,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.admin_indicators.tables.U
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ActiveApplications.ActiveApplicationsPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.ApplicationsSentFromEpgu.ApplicationsSentFromEpguPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.DataFromGirVu.DataFromGirVuPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.RemovalRegistration.RemovalRegistrationPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.Solutions.SolutionsPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.init_registration_info.tables.CitizensNextYearAge.CitizensNextYearAgePath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.init_registration_info.tables.DecisionFormationStatus.DecisionFormationStatusPath;
|
||||
|
|
@ -582,6 +583,19 @@ public class Recruitment extends TableImpl<RecruitmentRecord> {
|
|||
return _dataFromGirVu;
|
||||
}
|
||||
|
||||
private transient RemovalRegistrationPath _removalRegistration;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the
|
||||
* <code>deregistration.removal_registration</code> table
|
||||
*/
|
||||
public RemovalRegistrationPath removalRegistration() {
|
||||
if (_removalRegistration == null)
|
||||
_removalRegistration = new RemovalRegistrationPath(this, null, ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.Keys.REMOVAL_REGISTRATION__FK_CONV_INFO_RECORDS_FROM_EASU_RECRUITMENT_ID.getInverseKey());
|
||||
|
||||
return _removalRegistration;
|
||||
}
|
||||
|
||||
private transient SolutionsPath _solutions;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -100,4 +100,37 @@
|
|||
FROM metrics.incidents_change_data_from_gir_vu;
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="0003" author="saliakhov">
|
||||
<comment>edit metrics.view_incidents_change_data_from_gir_vu</comment>
|
||||
<sql>
|
||||
CREATE TABLE deregistration.removal_registration (
|
||||
removal_registration_id bigserial NOT NULL,
|
||||
recruitment_id varchar(36) NOT NULL,
|
||||
update_date timestamp DEFAULT now() NOT NULL,
|
||||
info_date date NOT NULL,
|
||||
count_age_limit int8 DEFAULT 0 NOT NULL,
|
||||
count_reason_death int8 DEFAULT 0 NOT NULL,
|
||||
count_loss_citizenship int8 DEFAULT 0 NOT NULL,
|
||||
count_cancellation_record int8 DEFAULT 0 NOT NULL,
|
||||
CONSTRAINT removal_registration_pkey PRIMARY KEY (removal_registration_id),
|
||||
CONSTRAINT fk_conv_info_records_from_easu_recruitment_id FOREIGN KEY (recruitment_id) REFERENCES metrics.recruitment(id)
|
||||
);
|
||||
CREATE INDEX idx_applications_sent_from_epgu_date ON deregistration.applications_sent_from_epgu USING btree (info_date);
|
||||
CREATE INDEX idx_applications_sent_from_epgu_recr ON deregistration.applications_sent_from_epgu USING btree (recruitment_id);
|
||||
CREATE INDEX idx_applications_sent_from_epgu_recr_date ON deregistration.applications_sent_from_epgu USING btree (recruitment_id, info_date);
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW deregistration.view_removal_registration
|
||||
AS SELECT removal_registration.removal_registration_id,
|
||||
removal_registration.count_age_limit + removal_registration.count_reason_death + removal_registration.count_loss_citizenship + removal_registration.count_cancellation_record AS count_all,
|
||||
round(removal_registration.count_age_limit::numeric * 100::numeric / (removal_registration.count_age_limit + removal_registration.count_reason_death + removal_registration.count_loss_citizenship + removal_registration.count_cancellation_record)::numeric) AS percent_age_limit,
|
||||
round(removal_registration.count_reason_death::numeric * 100::numeric / (removal_registration.count_age_limit + removal_registration.count_reason_death + removal_registration.count_loss_citizenship + removal_registration.count_cancellation_record)::numeric) AS percent_reason_death,
|
||||
round(removal_registration.count_loss_citizenship::numeric * 100::numeric / (removal_registration.count_age_limit + removal_registration.count_reason_death + removal_registration.count_loss_citizenship + removal_registration.count_cancellation_record)::numeric) AS percent_loss_citizenship,
|
||||
round(removal_registration.count_cancellation_record::numeric * 100::numeric / (removal_registration.count_age_limit + removal_registration.count_reason_death + removal_registration.count_loss_citizenship + removal_registration.count_cancellation_record)::numeric) AS percent_cancellation_record
|
||||
FROM deregistration.removal_registration;
|
||||
</sql>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue