Прогнозны графики и добавление таблиц в бд

This commit is contained in:
Foat Saliakhov 2025-02-12 17:59:28 +03:00
parent 2b52f0ce5d
commit 7bc12956a2
19 changed files with 7522 additions and 1405 deletions

View file

@ -241,6 +241,11 @@ public class Subpoena extends TableImpl<SubpoenaRecord> {
*/
public final TableField<SubpoenaRecord, String> SUBPOENA_DIRECTED_FACT = createField(DSL.name("subpoena_directed_fact"), SQLDataType.CLOB, this, "Факт направления повестки");
/**
* The column <code>ervu_dashboard.subpoena.status_change_date</code>.
*/
public final TableField<SubpoenaRecord, Timestamp> STATUS_CHANGE_DATE = createField(DSL.name("status_change_date"), SQLDataType.TIMESTAMP(0), this, "");
private Subpoena(Name alias, Table<SubpoenaRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}

View file

@ -526,6 +526,20 @@ public class SubpoenaRecord extends UpdatableRecordImpl<SubpoenaRecord> {
return (String) get(31);
}
/**
* Setter for <code>ervu_dashboard.subpoena.status_change_date</code>.
*/
public void setStatusChangeDate(Timestamp value) {
set(32, value);
}
/**
* Getter for <code>ervu_dashboard.subpoena.status_change_date</code>.
*/
public Timestamp getStatusChangeDate() {
return (Timestamp) get(32);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@ -549,7 +563,7 @@ public class SubpoenaRecord extends UpdatableRecordImpl<SubpoenaRecord> {
/**
* Create a detached, initialised SubpoenaRecord
*/
public SubpoenaRecord(Long subId, String series, String number, Timestamp createDate, Timestamp visitDate, Timestamp sendDate, String reasonCancelled, UUID recruitId, UUID departmentId, String subpoenaStatus, String subpoenaReason, String fioCommiss, String trackNumber, String recruitmentName, String address, String methodSending, UUID subpoenaId, String sigInfo, String deliveryFio, String actNumber, String methodDelivery, Timestamp deliveryDate, String deliveryStatus, String appearance, String appearanceStatus, Time datePublicRegister, Time visitDateTrue, Time dateRecognitionReason, Boolean signSendingInfoGoodReason, Time dateSendingGoodReason, String infoNotVisitRecognitionGoodReason, String subpoenaDirectedFact) {
public SubpoenaRecord(Long subId, String series, String number, Timestamp createDate, Timestamp visitDate, Timestamp sendDate, String reasonCancelled, UUID recruitId, UUID departmentId, String subpoenaStatus, String subpoenaReason, String fioCommiss, String trackNumber, String recruitmentName, String address, String methodSending, UUID subpoenaId, String sigInfo, String deliveryFio, String actNumber, String methodDelivery, Timestamp deliveryDate, String deliveryStatus, String appearance, String appearanceStatus, Time datePublicRegister, Time visitDateTrue, Time dateRecognitionReason, Boolean signSendingInfoGoodReason, Time dateSendingGoodReason, String infoNotVisitRecognitionGoodReason, String subpoenaDirectedFact, Timestamp statusChangeDate) {
super(Subpoena.SUBPOENA);
setSubId(subId);
@ -584,6 +598,7 @@ public class SubpoenaRecord extends UpdatableRecordImpl<SubpoenaRecord> {
setDateSendingGoodReason(dateSendingGoodReason);
setInfoNotVisitRecognitionGoodReason(infoNotVisitRecognitionGoodReason);
setSubpoenaDirectedFact(subpoenaDirectedFact);
setStatusChangeDate(statusChangeDate);
resetChangedOnNotNull();
}
}

View file

@ -8,11 +8,17 @@ import java.util.Arrays;
import java.util.List;
import org.jooq.Catalog;
import org.jooq.Sequence;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
import ru.micord.ervu_dashboard.db_beans.DefaultCatalog;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Appeals;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.DefermentConscription;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Enroll;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.RegisteredCitizens;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.ReportingMilitaryCommissariat;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.TemporaryMeasures;
/**
@ -28,11 +34,36 @@ public class Forecast extends SchemaImpl {
*/
public static final Forecast FORECAST = new Forecast();
/**
* Обжалования
*/
public final Appeals APPEALS = Appeals.APPEALS;
/**
* Отсрочка от призыва
*/
public final DefermentConscription DEFERMENT_CONSCRIPTION = DefermentConscription.DEFERMENT_CONSCRIPTION;
/**
* Подлежат постановке на учет
*/
public final Enroll ENROLL = Enroll.ENROLL;
/**
* Динамика количества граждан на учете
*/
public final RegisteredCitizens REGISTERED_CITIZENS = RegisteredCitizens.REGISTERED_CITIZENS;
/**
* Явка в Военный комиссариат
*/
public final ReportingMilitaryCommissariat REPORTING_MILITARY_COMMISSARIAT = ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT;
/**
* Решения о принятии и снятии временных мер
*/
public final TemporaryMeasures TEMPORARY_MEASURES = TemporaryMeasures.TEMPORARY_MEASURES;
/**
* No further instances allowed
*/
@ -46,10 +77,22 @@ public class Forecast extends SchemaImpl {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Sequence<?>> getSequences() {
return Arrays.asList(
Sequences.REPORTING_MILITARY_COMMISSARI_REPORTING_MILITARY_COMMISSARI_SEQ
);
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
RegisteredCitizens.REGISTERED_CITIZENS
Appeals.APPEALS,
DefermentConscription.DEFERMENT_CONSCRIPTION,
Enroll.ENROLL,
RegisteredCitizens.REGISTERED_CITIZENS,
ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT,
TemporaryMeasures.TEMPORARY_MEASURES
);
}
}

View file

@ -9,8 +9,18 @@ import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Appeals;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.DefermentConscription;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Enroll;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.RegisteredCitizens;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.ReportingMilitaryCommissariat;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.TemporaryMeasures;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.AppealsRecord;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.DefermentConscriptionRecord;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.EnrollRecord;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.RegisteredCitizensRecord;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.ReportingMilitaryCommissariatRecord;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.TemporaryMeasuresRecord;
/**
@ -24,5 +34,10 @@ public class Keys {
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<AppealsRecord> PK_APPEALS = Internal.createUniqueKey(Appeals.APPEALS, DSL.name("pk_appeals"), new TableField[] { Appeals.APPEALS.APPEALS_ID }, true);
public static final UniqueKey<DefermentConscriptionRecord> PK_DEFERMENT_CONSCRIPTION = Internal.createUniqueKey(DefermentConscription.DEFERMENT_CONSCRIPTION, DSL.name("pk_deferment_conscription"), new TableField[] { DefermentConscription.DEFERMENT_CONSCRIPTION.DEFERMENT_CONSCRIPTION_ID }, true);
public static final UniqueKey<EnrollRecord> PK_ENROLL = Internal.createUniqueKey(Enroll.ENROLL, DSL.name("pk_enroll"), new TableField[] { Enroll.ENROLL.ENROLL_ID }, true);
public static final UniqueKey<RegisteredCitizensRecord> PK_REGISTERED_CITIZENS = Internal.createUniqueKey(RegisteredCitizens.REGISTERED_CITIZENS, DSL.name("pk_registered_citizens"), new TableField[] { RegisteredCitizens.REGISTERED_CITIZENS.REGISTERED_CITIZENS_ID }, true);
public static final UniqueKey<ReportingMilitaryCommissariatRecord> PK_REPORTING_MILITARY_COMMISSARIAT = Internal.createUniqueKey(ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT, DSL.name("pk_reporting_military_commissariat"), new TableField[] { ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT.REPORTING_MILITARY_COMMISSARIAT_ID }, true);
public static final UniqueKey<TemporaryMeasuresRecord> PK_TEMPORARY_MEASURES = Internal.createUniqueKey(TemporaryMeasures.TEMPORARY_MEASURES, DSL.name("pk_temporary_measures"), new TableField[] { TemporaryMeasures.TEMPORARY_MEASURES.TEMPORARY_MEASURES_ID }, true);
}

View file

@ -0,0 +1,23 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast;
import org.jooq.Sequence;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* Convenience access to all sequences in forecast.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Sequences {
/**
* The sequence
* <code>forecast.reporting_military_commissari_reporting_military_commissari_seq</code>
*/
public static final Sequence<Long> REPORTING_MILITARY_COMMISSARI_REPORTING_MILITARY_COMMISSARI_SEQ = Internal.createSequence("reporting_military_commissari_reporting_military_commissari_seq", Forecast.FORECAST, SQLDataType.BIGINT.nullable(false), null, null, null, null, false, null);
}

View file

@ -4,7 +4,12 @@
package ru.micord.ervu_dashboard.db_beans.forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Appeals;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.DefermentConscription;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Enroll;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.RegisteredCitizens;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.ReportingMilitaryCommissariat;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.TemporaryMeasures;
/**
@ -13,8 +18,33 @@ import ru.micord.ervu_dashboard.db_beans.forecast.tables.RegisteredCitizens;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {
/**
* Обжалования
*/
public static final Appeals APPEALS = Appeals.APPEALS;
/**
* Отсрочка от призыва
*/
public static final DefermentConscription DEFERMENT_CONSCRIPTION = DefermentConscription.DEFERMENT_CONSCRIPTION;
/**
* Подлежат постановке на учет
*/
public static final Enroll ENROLL = Enroll.ENROLL;
/**
* Динамика количества граждан на учете
*/
public static final RegisteredCitizens REGISTERED_CITIZENS = RegisteredCitizens.REGISTERED_CITIZENS;
/**
* Явка в Военный комиссариат
*/
public static final ReportingMilitaryCommissariat REPORTING_MILITARY_COMMISSARIAT = ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT;
/**
* Решения о принятии и снятии временных мер
*/
public static final TemporaryMeasures TEMPORARY_MEASURES = TemporaryMeasures.TEMPORARY_MEASURES;
}

View file

@ -0,0 +1,289 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Collection;
import java.util.UUID;
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.ervu_dashboard.db_beans.forecast.Forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.Keys;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.AppealsRecord;
/**
* Обжалования
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Appeals extends TableImpl<AppealsRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>forecast.appeals</code>
*/
public static final Appeals APPEALS = new Appeals();
/**
* The class holding records for this type
*/
@Override
public Class<AppealsRecord> getRecordType() {
return AppealsRecord.class;
}
/**
* The column <code>forecast.appeals.appeals_id</code>.
*/
public final TableField<AppealsRecord, Long> APPEALS_ID = createField(DSL.name("appeals_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>forecast.appeals.recruitment_id</code>.
*/
public final TableField<AppealsRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column <code>forecast.appeals.recording_date</code>.
*/
public final TableField<AppealsRecord, Date> RECORDING_DATE = createField(DSL.name("recording_date"), SQLDataType.DATE.nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.DATE)), this, "");
/**
* The column <code>forecast.appeals.schema</code>.
*/
public final TableField<AppealsRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false).defaultValue(DSL.field(DSL.raw("'empty'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column <code>forecast.appeals.resolved_appeals</code>. Решенные
* обжалования
*/
public final TableField<AppealsRecord, BigDecimal> RESOLVED_APPEALS = createField(DSL.name("resolved_appeals"), SQLDataType.NUMERIC, this, "Решенные обжалования");
/**
* The column <code>forecast.appeals.document_retrieval</code>. Досыл
* документов
*/
public final TableField<AppealsRecord, BigDecimal> DOCUMENT_RETRIEVAL = createField(DSL.name("document_retrieval"), SQLDataType.NUMERIC, this, "Досыл документов");
/**
* The column <code>forecast.appeals.retraction_complaint</code>. Отзыв
* жалобы
*/
public final TableField<AppealsRecord, BigDecimal> RETRACTION_COMPLAINT = createField(DSL.name("retraction_complaint"), SQLDataType.NUMERIC, this, "Отзыв жалобы");
/**
* The column <code>forecast.appeals.disagreement_decision</code>.
* Несогласие с решением
*/
public final TableField<AppealsRecord, BigDecimal> DISAGREEMENT_DECISION = createField(DSL.name("disagreement_decision"), SQLDataType.NUMERIC, this, "Несогласие с решением");
/**
* The column <code>forecast.appeals.incorrect_information</code>.
* Некорректные данные
*/
public final TableField<AppealsRecord, BigDecimal> INCORRECT_INFORMATION = createField(DSL.name("incorrect_information"), SQLDataType.NUMERIC, this, "Некорректные данные");
/**
* The column <code>forecast.appeals.maintaining_military_records</code>.
* Ведение воинского учета
*/
public final TableField<AppealsRecord, BigDecimal> MAINTAINING_MILITARY_RECORDS = createField(DSL.name("maintaining_military_records"), SQLDataType.NUMERIC, this, "Ведение воинского учета");
/**
* The column <code>forecast.appeals.conscription</code>. Призыв на службу
*/
public final TableField<AppealsRecord, BigDecimal> CONSCRIPTION = createField(DSL.name("conscription"), SQLDataType.NUMERIC, this, "Призыв на службу");
/**
* The column <code>forecast.appeals.temporary_measures</code>. Временные
* меры
*/
public final TableField<AppealsRecord, BigDecimal> TEMPORARY_MEASURES = createField(DSL.name("temporary_measures"), SQLDataType.NUMERIC, this, "Временные меры");
private Appeals(Name alias, Table<AppealsRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Appeals(Name alias, Table<AppealsRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Обжалования"), TableOptions.table(), where);
}
/**
* Create an aliased <code>forecast.appeals</code> table reference
*/
public Appeals(String alias) {
this(DSL.name(alias), APPEALS);
}
/**
* Create an aliased <code>forecast.appeals</code> table reference
*/
public Appeals(Name alias) {
this(alias, APPEALS);
}
/**
* Create a <code>forecast.appeals</code> table reference
*/
public Appeals() {
this(DSL.name("appeals"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Forecast.FORECAST;
}
@Override
public Identity<AppealsRecord, Long> getIdentity() {
return (Identity<AppealsRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<AppealsRecord> getPrimaryKey() {
return Keys.PK_APPEALS;
}
@Override
public Appeals as(String alias) {
return new Appeals(DSL.name(alias), this);
}
@Override
public Appeals as(Name alias) {
return new Appeals(alias, this);
}
@Override
public Appeals as(Table<?> alias) {
return new Appeals(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Appeals rename(String name) {
return new Appeals(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Appeals rename(Name name) {
return new Appeals(name, null);
}
/**
* Rename this table
*/
@Override
public Appeals rename(Table<?> name) {
return new Appeals(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals where(Condition condition) {
return new Appeals(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Appeals where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Appeals where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Appeals where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Appeals where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Appeals whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,259 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Collection;
import java.util.UUID;
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.ervu_dashboard.db_beans.forecast.Forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.Keys;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.DefermentConscriptionRecord;
/**
* Отсрочка от призыва
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefermentConscription extends TableImpl<DefermentConscriptionRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>forecast.deferment_conscription</code>
*/
public static final DefermentConscription DEFERMENT_CONSCRIPTION = new DefermentConscription();
/**
* The class holding records for this type
*/
@Override
public Class<DefermentConscriptionRecord> getRecordType() {
return DefermentConscriptionRecord.class;
}
/**
* The column
* <code>forecast.deferment_conscription.deferment_conscription_id</code>.
*/
public final TableField<DefermentConscriptionRecord, Long> DEFERMENT_CONSCRIPTION_ID = createField(DSL.name("deferment_conscription_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>forecast.deferment_conscription.recruitment_id</code>.
*/
public final TableField<DefermentConscriptionRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column <code>forecast.deferment_conscription.recording_date</code>.
*/
public final TableField<DefermentConscriptionRecord, Date> RECORDING_DATE = createField(DSL.name("recording_date"), SQLDataType.DATE.nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.DATE)), this, "");
/**
* The column <code>forecast.deferment_conscription.schema</code>.
*/
public final TableField<DefermentConscriptionRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false).defaultValue(DSL.field(DSL.raw("'empty'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column
* <code>forecast.deferment_conscription.eligible_deferment</code>. Имеют
* право на отсрочку
*/
public final TableField<DefermentConscriptionRecord, BigDecimal> ELIGIBLE_DEFERMENT = createField(DSL.name("eligible_deferment"), SQLDataType.NUMERIC, this, "Имеют право на отсрочку");
/**
* The column
* <code>forecast.deferment_conscription.deferment_granted</code>.
* Предоставлена отсрочка
*/
public final TableField<DefermentConscriptionRecord, BigDecimal> DEFERMENT_GRANTED = createField(DSL.name("deferment_granted"), SQLDataType.NUMERIC, this, "Предоставлена отсрочка");
private DefermentConscription(Name alias, Table<DefermentConscriptionRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private DefermentConscription(Name alias, Table<DefermentConscriptionRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Отсрочка от призыва"), TableOptions.table(), where);
}
/**
* Create an aliased <code>forecast.deferment_conscription</code> table
* reference
*/
public DefermentConscription(String alias) {
this(DSL.name(alias), DEFERMENT_CONSCRIPTION);
}
/**
* Create an aliased <code>forecast.deferment_conscription</code> table
* reference
*/
public DefermentConscription(Name alias) {
this(alias, DEFERMENT_CONSCRIPTION);
}
/**
* Create a <code>forecast.deferment_conscription</code> table reference
*/
public DefermentConscription() {
this(DSL.name("deferment_conscription"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Forecast.FORECAST;
}
@Override
public Identity<DefermentConscriptionRecord, Long> getIdentity() {
return (Identity<DefermentConscriptionRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<DefermentConscriptionRecord> getPrimaryKey() {
return Keys.PK_DEFERMENT_CONSCRIPTION;
}
@Override
public DefermentConscription as(String alias) {
return new DefermentConscription(DSL.name(alias), this);
}
@Override
public DefermentConscription as(Name alias) {
return new DefermentConscription(alias, this);
}
@Override
public DefermentConscription as(Table<?> alias) {
return new DefermentConscription(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public DefermentConscription rename(String name) {
return new DefermentConscription(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public DefermentConscription rename(Name name) {
return new DefermentConscription(name, null);
}
/**
* Rename this table
*/
@Override
public DefermentConscription rename(Table<?> name) {
return new DefermentConscription(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription where(Condition condition) {
return new DefermentConscription(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public DefermentConscription where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public DefermentConscription where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public DefermentConscription where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public DefermentConscription where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public DefermentConscription whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,297 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Collection;
import java.util.UUID;
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.ervu_dashboard.db_beans.forecast.Forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.Keys;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.EnrollRecord;
/**
* Подлежат постановке на учет
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Enroll extends TableImpl<EnrollRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>forecast.enroll</code>
*/
public static final Enroll ENROLL = new Enroll();
/**
* The class holding records for this type
*/
@Override
public Class<EnrollRecord> getRecordType() {
return EnrollRecord.class;
}
/**
* The column <code>forecast.enroll.enroll_id</code>.
*/
public final TableField<EnrollRecord, Long> ENROLL_ID = createField(DSL.name("enroll_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>forecast.enroll.recruitment_id</code>.
*/
public final TableField<EnrollRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column <code>forecast.enroll.recording_date</code>.
*/
public final TableField<EnrollRecord, Date> RECORDING_DATE = createField(DSL.name("recording_date"), SQLDataType.DATE.nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.DATE)), this, "");
/**
* The column <code>forecast.enroll.schema</code>.
*/
public final TableField<EnrollRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false).defaultValue(DSL.field(DSL.raw("'empty'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column <code>forecast.enroll.study</code>. Учатся
*/
public final TableField<EnrollRecord, BigDecimal> STUDY = createField(DSL.name("study"), SQLDataType.NUMERIC, this, "Учатся");
/**
* The column <code>forecast.enroll.work</code>. Работают
*/
public final TableField<EnrollRecord, BigDecimal> WORK = createField(DSL.name("work"), SQLDataType.NUMERIC, this, "Работают");
/**
* The column <code>forecast.enroll.unemployed</code>. Безработные
*/
public final TableField<EnrollRecord, BigDecimal> UNEMPLOYED = createField(DSL.name("unemployed"), SQLDataType.NUMERIC, this, "Безработные");
/**
* The column <code>forecast.enroll.count_17_years</code>. 17 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_17_YEARS = createField(DSL.name("count_17_years"), SQLDataType.NUMERIC, this, "17 л.");
/**
* The column <code>forecast.enroll.count_18_26_years</code>. 18-26 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_18_26_YEARS = createField(DSL.name("count_18_26_years"), SQLDataType.NUMERIC, this, "18-26 л.");
/**
* The column <code>forecast.enroll.count_27_30_years</code>. 27-30 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_27_30_YEARS = createField(DSL.name("count_27_30_years"), SQLDataType.NUMERIC, this, "27-30 л.");
/**
* The column <code>forecast.enroll.count_31_35_years</code>. 31-35 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_31_35_YEARS = createField(DSL.name("count_31_35_years"), SQLDataType.NUMERIC, this, "31-35 л.");
/**
* The column <code>forecast.enroll.count_36_40_years</code>. 36-40 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_36_40_YEARS = createField(DSL.name("count_36_40_years"), SQLDataType.NUMERIC, this, "36-40 л.");
/**
* The column <code>forecast.enroll.count_41_45_years</code>. 41-45 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_41_45_YEARS = createField(DSL.name("count_41_45_years"), SQLDataType.NUMERIC, this, "41-45 л.");
/**
* The column <code>forecast.enroll.count_46_50_years</code>. 46-50 л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_46_50_YEARS = createField(DSL.name("count_46_50_years"), SQLDataType.NUMERIC, this, "46-50 л.");
/**
* The column <code>forecast.enroll.count_51_years</code>. 51+ л.
*/
public final TableField<EnrollRecord, BigDecimal> COUNT_51_YEARS = createField(DSL.name("count_51_years"), SQLDataType.NUMERIC, this, "51+ л.");
private Enroll(Name alias, Table<EnrollRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Enroll(Name alias, Table<EnrollRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Подлежат постановке на учет"), TableOptions.table(), where);
}
/**
* Create an aliased <code>forecast.enroll</code> table reference
*/
public Enroll(String alias) {
this(DSL.name(alias), ENROLL);
}
/**
* Create an aliased <code>forecast.enroll</code> table reference
*/
public Enroll(Name alias) {
this(alias, ENROLL);
}
/**
* Create a <code>forecast.enroll</code> table reference
*/
public Enroll() {
this(DSL.name("enroll"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Forecast.FORECAST;
}
@Override
public Identity<EnrollRecord, Long> getIdentity() {
return (Identity<EnrollRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<EnrollRecord> getPrimaryKey() {
return Keys.PK_ENROLL;
}
@Override
public Enroll as(String alias) {
return new Enroll(DSL.name(alias), this);
}
@Override
public Enroll as(Name alias) {
return new Enroll(alias, this);
}
@Override
public Enroll as(Table<?> alias) {
return new Enroll(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Enroll rename(String name) {
return new Enroll(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Enroll rename(Name name) {
return new Enroll(name, null);
}
/**
* Rename this table
*/
@Override
public Enroll rename(Table<?> name) {
return new Enroll(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll where(Condition condition) {
return new Enroll(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Enroll where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Enroll where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Enroll where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Enroll where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Enroll whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,284 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Collection;
import java.util.UUID;
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.ervu_dashboard.db_beans.forecast.Forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.Keys;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.ReportingMilitaryCommissariatRecord;
/**
* Явка в Военный комиссариат
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ReportingMilitaryCommissariat extends TableImpl<ReportingMilitaryCommissariatRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* <code>forecast.reporting_military_commissariat</code>
*/
public static final ReportingMilitaryCommissariat REPORTING_MILITARY_COMMISSARIAT = new ReportingMilitaryCommissariat();
/**
* The class holding records for this type
*/
@Override
public Class<ReportingMilitaryCommissariatRecord> getRecordType() {
return ReportingMilitaryCommissariatRecord.class;
}
/**
* The column
* <code>forecast.reporting_military_commissariat.reporting_military_commissariat_id</code>.
*/
public final TableField<ReportingMilitaryCommissariatRecord, Long> REPORTING_MILITARY_COMMISSARIAT_ID = createField(DSL.name("reporting_military_commissariat_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column
* <code>forecast.reporting_military_commissariat.recruitment_id</code>.
*/
public final TableField<ReportingMilitaryCommissariatRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column
* <code>forecast.reporting_military_commissariat.recording_date</code>.
*/
public final TableField<ReportingMilitaryCommissariatRecord, Date> RECORDING_DATE = createField(DSL.name("recording_date"), SQLDataType.DATE.nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.DATE)), this, "");
/**
* The column <code>forecast.reporting_military_commissariat.schema</code>.
*/
public final TableField<ReportingMilitaryCommissariatRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false).defaultValue(DSL.field(DSL.raw("'empty'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column
* <code>forecast.reporting_military_commissariat.subpoenaed_appear</code>.
* Явились по повесткам
*/
public final TableField<ReportingMilitaryCommissariatRecord, BigDecimal> SUBPOENAED_APPEAR = createField(DSL.name("subpoenaed_appear"), SQLDataType.NUMERIC, this, "Явились по повесткам");
/**
* The column
* <code>forecast.reporting_military_commissariat.missed_deadline</code>. Не
* явились в срок
*/
public final TableField<ReportingMilitaryCommissariatRecord, BigDecimal> MISSED_DEADLINE = createField(DSL.name("missed_deadline"), SQLDataType.NUMERIC, this, "Не явились в срок");
/**
* The column
* <code>forecast.reporting_military_commissariat.missed_deadline_reason</code>.
* Не явились по уважительной причине
*/
public final TableField<ReportingMilitaryCommissariatRecord, BigDecimal> MISSED_DEADLINE_REASON = createField(DSL.name("missed_deadline_reason"), SQLDataType.NUMERIC, this, "Не явились по уважительной причине");
/**
* The column
* <code>forecast.reporting_military_commissariat.subpoenas_issued</code>.
* Вручено повесток
*/
public final TableField<ReportingMilitaryCommissariatRecord, BigDecimal> SUBPOENAS_ISSUED = createField(DSL.name("subpoenas_issued"), SQLDataType.NUMERIC, this, "Вручено повесток");
/**
* The column
* <code>forecast.reporting_military_commissariat.retrieved_7_days</code>.
* Вручено через 7 дней(автоматически)
*/
public final TableField<ReportingMilitaryCommissariatRecord, BigDecimal> RETRIEVED_7_DAYS = createField(DSL.name("retrieved_7_days"), SQLDataType.NUMERIC, this, "Вручено через 7 дней(автоматически)");
private ReportingMilitaryCommissariat(Name alias, Table<ReportingMilitaryCommissariatRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private ReportingMilitaryCommissariat(Name alias, Table<ReportingMilitaryCommissariatRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Явка в Военный комиссариат"), TableOptions.table(), where);
}
/**
* Create an aliased <code>forecast.reporting_military_commissariat</code>
* table reference
*/
public ReportingMilitaryCommissariat(String alias) {
this(DSL.name(alias), REPORTING_MILITARY_COMMISSARIAT);
}
/**
* Create an aliased <code>forecast.reporting_military_commissariat</code>
* table reference
*/
public ReportingMilitaryCommissariat(Name alias) {
this(alias, REPORTING_MILITARY_COMMISSARIAT);
}
/**
* Create a <code>forecast.reporting_military_commissariat</code> table
* reference
*/
public ReportingMilitaryCommissariat() {
this(DSL.name("reporting_military_commissariat"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Forecast.FORECAST;
}
@Override
public Identity<ReportingMilitaryCommissariatRecord, Long> getIdentity() {
return (Identity<ReportingMilitaryCommissariatRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<ReportingMilitaryCommissariatRecord> getPrimaryKey() {
return Keys.PK_REPORTING_MILITARY_COMMISSARIAT;
}
@Override
public ReportingMilitaryCommissariat as(String alias) {
return new ReportingMilitaryCommissariat(DSL.name(alias), this);
}
@Override
public ReportingMilitaryCommissariat as(Name alias) {
return new ReportingMilitaryCommissariat(alias, this);
}
@Override
public ReportingMilitaryCommissariat as(Table<?> alias) {
return new ReportingMilitaryCommissariat(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public ReportingMilitaryCommissariat rename(String name) {
return new ReportingMilitaryCommissariat(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public ReportingMilitaryCommissariat rename(Name name) {
return new ReportingMilitaryCommissariat(name, null);
}
/**
* Rename this table
*/
@Override
public ReportingMilitaryCommissariat rename(Table<?> name) {
return new ReportingMilitaryCommissariat(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat where(Condition condition) {
return new ReportingMilitaryCommissariat(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public ReportingMilitaryCommissariat where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public ReportingMilitaryCommissariat where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public ReportingMilitaryCommissariat where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public ReportingMilitaryCommissariat where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public ReportingMilitaryCommissariat whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,259 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Collection;
import java.util.UUID;
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.ervu_dashboard.db_beans.forecast.Forecast;
import ru.micord.ervu_dashboard.db_beans.forecast.Keys;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.records.TemporaryMeasuresRecord;
/**
* Решения о принятии и снятии временных мер
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TemporaryMeasures extends TableImpl<TemporaryMeasuresRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>forecast.temporary_measures</code>
*/
public static final TemporaryMeasures TEMPORARY_MEASURES = new TemporaryMeasures();
/**
* The class holding records for this type
*/
@Override
public Class<TemporaryMeasuresRecord> getRecordType() {
return TemporaryMeasuresRecord.class;
}
/**
* The column
* <code>forecast.temporary_measures.temporary_measures_id</code>.
*/
public final TableField<TemporaryMeasuresRecord, Long> TEMPORARY_MEASURES_ID = createField(DSL.name("temporary_measures_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>forecast.temporary_measures.recruitment_id</code>.
*/
public final TableField<TemporaryMeasuresRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column <code>forecast.temporary_measures.recording_date</code>.
*/
public final TableField<TemporaryMeasuresRecord, Date> RECORDING_DATE = createField(DSL.name("recording_date"), SQLDataType.DATE.nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.DATE)), this, "");
/**
* The column <code>forecast.temporary_measures.schema</code>.
*/
public final TableField<TemporaryMeasuresRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false).defaultValue(DSL.field(DSL.raw("'empty'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column
* <code>forecast.temporary_measures.introduction_provisional_measures</code>.
* Введение временных мер
*/
public final TableField<TemporaryMeasuresRecord, BigDecimal> INTRODUCTION_PROVISIONAL_MEASURES = createField(DSL.name("introduction_provisional_measures"), SQLDataType.NUMERIC, this, "Введение временных мер");
/**
* The column
* <code>forecast.temporary_measures.lifting_provisional_measures</code>.
* Снятие временных мер
*/
public final TableField<TemporaryMeasuresRecord, BigDecimal> LIFTING_PROVISIONAL_MEASURES = createField(DSL.name("lifting_provisional_measures"), SQLDataType.NUMERIC, this, "Снятие временных мер");
private TemporaryMeasures(Name alias, Table<TemporaryMeasuresRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TemporaryMeasures(Name alias, Table<TemporaryMeasuresRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Решения о принятии и снятии временных мер"), TableOptions.table(), where);
}
/**
* Create an aliased <code>forecast.temporary_measures</code> table
* reference
*/
public TemporaryMeasures(String alias) {
this(DSL.name(alias), TEMPORARY_MEASURES);
}
/**
* Create an aliased <code>forecast.temporary_measures</code> table
* reference
*/
public TemporaryMeasures(Name alias) {
this(alias, TEMPORARY_MEASURES);
}
/**
* Create a <code>forecast.temporary_measures</code> table reference
*/
public TemporaryMeasures() {
this(DSL.name("temporary_measures"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Forecast.FORECAST;
}
@Override
public Identity<TemporaryMeasuresRecord, Long> getIdentity() {
return (Identity<TemporaryMeasuresRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<TemporaryMeasuresRecord> getPrimaryKey() {
return Keys.PK_TEMPORARY_MEASURES;
}
@Override
public TemporaryMeasures as(String alias) {
return new TemporaryMeasures(DSL.name(alias), this);
}
@Override
public TemporaryMeasures as(Name alias) {
return new TemporaryMeasures(alias, this);
}
@Override
public TemporaryMeasures as(Table<?> alias) {
return new TemporaryMeasures(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TemporaryMeasures rename(String name) {
return new TemporaryMeasures(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TemporaryMeasures rename(Name name) {
return new TemporaryMeasures(name, null);
}
/**
* Rename this table
*/
@Override
public TemporaryMeasures rename(Table<?> name) {
return new TemporaryMeasures(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures where(Condition condition) {
return new TemporaryMeasures(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TemporaryMeasures where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TemporaryMeasures where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TemporaryMeasures where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TemporaryMeasures where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TemporaryMeasures whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,247 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Appeals;
/**
* Обжалования
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class AppealsRecord extends UpdatableRecordImpl<AppealsRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>forecast.appeals.appeals_id</code>.
*/
public void setAppealsId(Long value) {
set(0, value);
}
/**
* Getter for <code>forecast.appeals.appeals_id</code>.
*/
public Long getAppealsId() {
return (Long) get(0);
}
/**
* Setter for <code>forecast.appeals.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(1, value);
}
/**
* Getter for <code>forecast.appeals.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(1);
}
/**
* Setter for <code>forecast.appeals.recording_date</code>.
*/
public void setRecordingDate(Date value) {
set(2, value);
}
/**
* Getter for <code>forecast.appeals.recording_date</code>.
*/
public Date getRecordingDate() {
return (Date) get(2);
}
/**
* Setter for <code>forecast.appeals.schema</code>.
*/
public void setSchema(String value) {
set(3, value);
}
/**
* Getter for <code>forecast.appeals.schema</code>.
*/
public String getSchema() {
return (String) get(3);
}
/**
* Setter for <code>forecast.appeals.resolved_appeals</code>. Решенные
* обжалования
*/
public void setResolvedAppeals(BigDecimal value) {
set(4, value);
}
/**
* Getter for <code>forecast.appeals.resolved_appeals</code>. Решенные
* обжалования
*/
public BigDecimal getResolvedAppeals() {
return (BigDecimal) get(4);
}
/**
* Setter for <code>forecast.appeals.document_retrieval</code>. Досыл
* документов
*/
public void setDocumentRetrieval(BigDecimal value) {
set(5, value);
}
/**
* Getter for <code>forecast.appeals.document_retrieval</code>. Досыл
* документов
*/
public BigDecimal getDocumentRetrieval() {
return (BigDecimal) get(5);
}
/**
* Setter for <code>forecast.appeals.retraction_complaint</code>. Отзыв
* жалобы
*/
public void setRetractionComplaint(BigDecimal value) {
set(6, value);
}
/**
* Getter for <code>forecast.appeals.retraction_complaint</code>. Отзыв
* жалобы
*/
public BigDecimal getRetractionComplaint() {
return (BigDecimal) get(6);
}
/**
* Setter for <code>forecast.appeals.disagreement_decision</code>.
* Несогласие с решением
*/
public void setDisagreementDecision(BigDecimal value) {
set(7, value);
}
/**
* Getter for <code>forecast.appeals.disagreement_decision</code>.
* Несогласие с решением
*/
public BigDecimal getDisagreementDecision() {
return (BigDecimal) get(7);
}
/**
* Setter for <code>forecast.appeals.incorrect_information</code>.
* Некорректные данные
*/
public void setIncorrectInformation(BigDecimal value) {
set(8, value);
}
/**
* Getter for <code>forecast.appeals.incorrect_information</code>.
* Некорректные данные
*/
public BigDecimal getIncorrectInformation() {
return (BigDecimal) get(8);
}
/**
* Setter for <code>forecast.appeals.maintaining_military_records</code>.
* Ведение воинского учета
*/
public void setMaintainingMilitaryRecords(BigDecimal value) {
set(9, value);
}
/**
* Getter for <code>forecast.appeals.maintaining_military_records</code>.
* Ведение воинского учета
*/
public BigDecimal getMaintainingMilitaryRecords() {
return (BigDecimal) get(9);
}
/**
* Setter for <code>forecast.appeals.conscription</code>. Призыв на службу
*/
public void setConscription(BigDecimal value) {
set(10, value);
}
/**
* Getter for <code>forecast.appeals.conscription</code>. Призыв на службу
*/
public BigDecimal getConscription() {
return (BigDecimal) get(10);
}
/**
* Setter for <code>forecast.appeals.temporary_measures</code>. Временные
* меры
*/
public void setTemporaryMeasures(BigDecimal value) {
set(11, value);
}
/**
* Getter for <code>forecast.appeals.temporary_measures</code>. Временные
* меры
*/
public BigDecimal getTemporaryMeasures() {
return (BigDecimal) get(11);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AppealsRecord
*/
public AppealsRecord() {
super(Appeals.APPEALS);
}
/**
* Create a detached, initialised AppealsRecord
*/
public AppealsRecord(Long appealsId, UUID recruitmentId, Date recordingDate, String schema, BigDecimal resolvedAppeals, BigDecimal documentRetrieval, BigDecimal retractionComplaint, BigDecimal disagreementDecision, BigDecimal incorrectInformation, BigDecimal maintainingMilitaryRecords, BigDecimal conscription, BigDecimal temporaryMeasures) {
super(Appeals.APPEALS);
setAppealsId(appealsId);
setRecruitmentId(recruitmentId);
setRecordingDate(recordingDate);
setSchema(schema);
setResolvedAppeals(resolvedAppeals);
setDocumentRetrieval(documentRetrieval);
setRetractionComplaint(retractionComplaint);
setDisagreementDecision(disagreementDecision);
setIncorrectInformation(incorrectInformation);
setMaintainingMilitaryRecords(maintainingMilitaryRecords);
setConscription(conscription);
setTemporaryMeasures(temporaryMeasures);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,153 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.DefermentConscription;
/**
* Отсрочка от призыва
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefermentConscriptionRecord extends UpdatableRecordImpl<DefermentConscriptionRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>forecast.deferment_conscription.deferment_conscription_id</code>.
*/
public void setDefermentConscriptionId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>forecast.deferment_conscription.deferment_conscription_id</code>.
*/
public Long getDefermentConscriptionId() {
return (Long) get(0);
}
/**
* Setter for <code>forecast.deferment_conscription.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(1, value);
}
/**
* Getter for <code>forecast.deferment_conscription.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(1);
}
/**
* Setter for <code>forecast.deferment_conscription.recording_date</code>.
*/
public void setRecordingDate(Date value) {
set(2, value);
}
/**
* Getter for <code>forecast.deferment_conscription.recording_date</code>.
*/
public Date getRecordingDate() {
return (Date) get(2);
}
/**
* Setter for <code>forecast.deferment_conscription.schema</code>.
*/
public void setSchema(String value) {
set(3, value);
}
/**
* Getter for <code>forecast.deferment_conscription.schema</code>.
*/
public String getSchema() {
return (String) get(3);
}
/**
* Setter for
* <code>forecast.deferment_conscription.eligible_deferment</code>. Имеют
* право на отсрочку
*/
public void setEligibleDeferment(BigDecimal value) {
set(4, value);
}
/**
* Getter for
* <code>forecast.deferment_conscription.eligible_deferment</code>. Имеют
* право на отсрочку
*/
public BigDecimal getEligibleDeferment() {
return (BigDecimal) get(4);
}
/**
* Setter for
* <code>forecast.deferment_conscription.deferment_granted</code>.
* Предоставлена отсрочка
*/
public void setDefermentGranted(BigDecimal value) {
set(5, value);
}
/**
* Getter for
* <code>forecast.deferment_conscription.deferment_granted</code>.
* Предоставлена отсрочка
*/
public BigDecimal getDefermentGranted() {
return (BigDecimal) get(5);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached DefermentConscriptionRecord
*/
public DefermentConscriptionRecord() {
super(DefermentConscription.DEFERMENT_CONSCRIPTION);
}
/**
* Create a detached, initialised DefermentConscriptionRecord
*/
public DefermentConscriptionRecord(Long defermentConscriptionId, UUID recruitmentId, Date recordingDate, String schema, BigDecimal eligibleDeferment, BigDecimal defermentGranted) {
super(DefermentConscription.DEFERMENT_CONSCRIPTION);
setDefermentConscriptionId(defermentConscriptionId);
setRecruitmentId(recruitmentId);
setRecordingDate(recordingDate);
setSchema(schema);
setEligibleDeferment(eligibleDeferment);
setDefermentGranted(defermentGranted);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,278 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.Enroll;
/**
* Подлежат постановке на учет
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EnrollRecord extends UpdatableRecordImpl<EnrollRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>forecast.enroll.enroll_id</code>.
*/
public void setEnrollId(Long value) {
set(0, value);
}
/**
* Getter for <code>forecast.enroll.enroll_id</code>.
*/
public Long getEnrollId() {
return (Long) get(0);
}
/**
* Setter for <code>forecast.enroll.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(1, value);
}
/**
* Getter for <code>forecast.enroll.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(1);
}
/**
* Setter for <code>forecast.enroll.recording_date</code>.
*/
public void setRecordingDate(Date value) {
set(2, value);
}
/**
* Getter for <code>forecast.enroll.recording_date</code>.
*/
public Date getRecordingDate() {
return (Date) get(2);
}
/**
* Setter for <code>forecast.enroll.schema</code>.
*/
public void setSchema(String value) {
set(3, value);
}
/**
* Getter for <code>forecast.enroll.schema</code>.
*/
public String getSchema() {
return (String) get(3);
}
/**
* Setter for <code>forecast.enroll.study</code>. Учатся
*/
public void setStudy(BigDecimal value) {
set(4, value);
}
/**
* Getter for <code>forecast.enroll.study</code>. Учатся
*/
public BigDecimal getStudy() {
return (BigDecimal) get(4);
}
/**
* Setter for <code>forecast.enroll.work</code>. Работают
*/
public void setWork(BigDecimal value) {
set(5, value);
}
/**
* Getter for <code>forecast.enroll.work</code>. Работают
*/
public BigDecimal getWork() {
return (BigDecimal) get(5);
}
/**
* Setter for <code>forecast.enroll.unemployed</code>. Безработные
*/
public void setUnemployed(BigDecimal value) {
set(6, value);
}
/**
* Getter for <code>forecast.enroll.unemployed</code>. Безработные
*/
public BigDecimal getUnemployed() {
return (BigDecimal) get(6);
}
/**
* Setter for <code>forecast.enroll.count_17_years</code>. 17 л.
*/
public void setCount_17Years(BigDecimal value) {
set(7, value);
}
/**
* Getter for <code>forecast.enroll.count_17_years</code>. 17 л.
*/
public BigDecimal getCount_17Years() {
return (BigDecimal) get(7);
}
/**
* Setter for <code>forecast.enroll.count_18_26_years</code>. 18-26 л.
*/
public void setCount_18_26Years(BigDecimal value) {
set(8, value);
}
/**
* Getter for <code>forecast.enroll.count_18_26_years</code>. 18-26 л.
*/
public BigDecimal getCount_18_26Years() {
return (BigDecimal) get(8);
}
/**
* Setter for <code>forecast.enroll.count_27_30_years</code>. 27-30 л.
*/
public void setCount_27_30Years(BigDecimal value) {
set(9, value);
}
/**
* Getter for <code>forecast.enroll.count_27_30_years</code>. 27-30 л.
*/
public BigDecimal getCount_27_30Years() {
return (BigDecimal) get(9);
}
/**
* Setter for <code>forecast.enroll.count_31_35_years</code>. 31-35 л.
*/
public void setCount_31_35Years(BigDecimal value) {
set(10, value);
}
/**
* Getter for <code>forecast.enroll.count_31_35_years</code>. 31-35 л.
*/
public BigDecimal getCount_31_35Years() {
return (BigDecimal) get(10);
}
/**
* Setter for <code>forecast.enroll.count_36_40_years</code>. 36-40 л.
*/
public void setCount_36_40Years(BigDecimal value) {
set(11, value);
}
/**
* Getter for <code>forecast.enroll.count_36_40_years</code>. 36-40 л.
*/
public BigDecimal getCount_36_40Years() {
return (BigDecimal) get(11);
}
/**
* Setter for <code>forecast.enroll.count_41_45_years</code>. 41-45 л.
*/
public void setCount_41_45Years(BigDecimal value) {
set(12, value);
}
/**
* Getter for <code>forecast.enroll.count_41_45_years</code>. 41-45 л.
*/
public BigDecimal getCount_41_45Years() {
return (BigDecimal) get(12);
}
/**
* Setter for <code>forecast.enroll.count_46_50_years</code>. 46-50 л.
*/
public void setCount_46_50Years(BigDecimal value) {
set(13, value);
}
/**
* Getter for <code>forecast.enroll.count_46_50_years</code>. 46-50 л.
*/
public BigDecimal getCount_46_50Years() {
return (BigDecimal) get(13);
}
/**
* Setter for <code>forecast.enroll.count_51_years</code>. 51+ л.
*/
public void setCount_51Years(BigDecimal value) {
set(14, value);
}
/**
* Getter for <code>forecast.enroll.count_51_years</code>. 51+ л.
*/
public BigDecimal getCount_51Years() {
return (BigDecimal) get(14);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached EnrollRecord
*/
public EnrollRecord() {
super(Enroll.ENROLL);
}
/**
* Create a detached, initialised EnrollRecord
*/
public EnrollRecord(Long enrollId, UUID recruitmentId, Date recordingDate, String schema, BigDecimal study, BigDecimal work, BigDecimal unemployed, BigDecimal count_17Years, BigDecimal count_18_26Years, BigDecimal count_27_30Years, BigDecimal count_31_35Years, BigDecimal count_36_40Years, BigDecimal count_41_45Years, BigDecimal count_46_50Years, BigDecimal count_51Years) {
super(Enroll.ENROLL);
setEnrollId(enrollId);
setRecruitmentId(recruitmentId);
setRecordingDate(recordingDate);
setSchema(schema);
setStudy(study);
setWork(work);
setUnemployed(unemployed);
setCount_17Years(count_17Years);
setCount_18_26Years(count_18_26Years);
setCount_27_30Years(count_27_30Years);
setCount_31_35Years(count_31_35Years);
setCount_36_40Years(count_36_40Years);
setCount_41_45Years(count_41_45Years);
setCount_46_50Years(count_46_50Years);
setCount_51Years(count_51Years);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,214 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.ReportingMilitaryCommissariat;
/**
* Явка в Военный комиссариат
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ReportingMilitaryCommissariatRecord extends UpdatableRecordImpl<ReportingMilitaryCommissariatRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>forecast.reporting_military_commissariat.reporting_military_commissariat_id</code>.
*/
public void setReportingMilitaryCommissariatId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.reporting_military_commissariat_id</code>.
*/
public Long getReportingMilitaryCommissariatId() {
return (Long) get(0);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(1, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(1);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.recording_date</code>.
*/
public void setRecordingDate(Date value) {
set(2, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.recording_date</code>.
*/
public Date getRecordingDate() {
return (Date) get(2);
}
/**
* Setter for <code>forecast.reporting_military_commissariat.schema</code>.
*/
public void setSchema(String value) {
set(3, value);
}
/**
* Getter for <code>forecast.reporting_military_commissariat.schema</code>.
*/
public String getSchema() {
return (String) get(3);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.subpoenaed_appear</code>.
* Явились по повесткам
*/
public void setSubpoenaedAppear(BigDecimal value) {
set(4, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.subpoenaed_appear</code>.
* Явились по повесткам
*/
public BigDecimal getSubpoenaedAppear() {
return (BigDecimal) get(4);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.missed_deadline</code>. Не
* явились в срок
*/
public void setMissedDeadline(BigDecimal value) {
set(5, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.missed_deadline</code>. Не
* явились в срок
*/
public BigDecimal getMissedDeadline() {
return (BigDecimal) get(5);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.missed_deadline_reason</code>.
* Не явились по уважительной причине
*/
public void setMissedDeadlineReason(BigDecimal value) {
set(6, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.missed_deadline_reason</code>.
* Не явились по уважительной причине
*/
public BigDecimal getMissedDeadlineReason() {
return (BigDecimal) get(6);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.subpoenas_issued</code>.
* Вручено повесток
*/
public void setSubpoenasIssued(BigDecimal value) {
set(7, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.subpoenas_issued</code>.
* Вручено повесток
*/
public BigDecimal getSubpoenasIssued() {
return (BigDecimal) get(7);
}
/**
* Setter for
* <code>forecast.reporting_military_commissariat.retrieved_7_days</code>.
* Вручено через 7 дней(автоматически)
*/
public void setRetrieved_7Days(BigDecimal value) {
set(8, value);
}
/**
* Getter for
* <code>forecast.reporting_military_commissariat.retrieved_7_days</code>.
* Вручено через 7 дней(автоматически)
*/
public BigDecimal getRetrieved_7Days() {
return (BigDecimal) get(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached ReportingMilitaryCommissariatRecord
*/
public ReportingMilitaryCommissariatRecord() {
super(ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT);
}
/**
* Create a detached, initialised ReportingMilitaryCommissariatRecord
*/
public ReportingMilitaryCommissariatRecord(Long reportingMilitaryCommissariatId, UUID recruitmentId, Date recordingDate, String schema, BigDecimal subpoenaedAppear, BigDecimal missedDeadline, BigDecimal missedDeadlineReason, BigDecimal subpoenasIssued, BigDecimal retrieved_7Days) {
super(ReportingMilitaryCommissariat.REPORTING_MILITARY_COMMISSARIAT);
setReportingMilitaryCommissariatId(reportingMilitaryCommissariatId);
setRecruitmentId(recruitmentId);
setRecordingDate(recordingDate);
setSchema(schema);
setSubpoenaedAppear(subpoenaedAppear);
setMissedDeadline(missedDeadline);
setMissedDeadlineReason(missedDeadlineReason);
setSubpoenasIssued(subpoenasIssued);
setRetrieved_7Days(retrieved_7Days);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,153 @@
/*
* This file is generated by jOOQ.
*/
package ru.micord.ervu_dashboard.db_beans.forecast.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
import ru.micord.ervu_dashboard.db_beans.forecast.tables.TemporaryMeasures;
/**
* Решения о принятии и снятии временных мер
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TemporaryMeasuresRecord extends UpdatableRecordImpl<TemporaryMeasuresRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>forecast.temporary_measures.temporary_measures_id</code>.
*/
public void setTemporaryMeasuresId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>forecast.temporary_measures.temporary_measures_id</code>.
*/
public Long getTemporaryMeasuresId() {
return (Long) get(0);
}
/**
* Setter for <code>forecast.temporary_measures.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(1, value);
}
/**
* Getter for <code>forecast.temporary_measures.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(1);
}
/**
* Setter for <code>forecast.temporary_measures.recording_date</code>.
*/
public void setRecordingDate(Date value) {
set(2, value);
}
/**
* Getter for <code>forecast.temporary_measures.recording_date</code>.
*/
public Date getRecordingDate() {
return (Date) get(2);
}
/**
* Setter for <code>forecast.temporary_measures.schema</code>.
*/
public void setSchema(String value) {
set(3, value);
}
/**
* Getter for <code>forecast.temporary_measures.schema</code>.
*/
public String getSchema() {
return (String) get(3);
}
/**
* Setter for
* <code>forecast.temporary_measures.introduction_provisional_measures</code>.
* Введение временных мер
*/
public void setIntroductionProvisionalMeasures(BigDecimal value) {
set(4, value);
}
/**
* Getter for
* <code>forecast.temporary_measures.introduction_provisional_measures</code>.
* Введение временных мер
*/
public BigDecimal getIntroductionProvisionalMeasures() {
return (BigDecimal) get(4);
}
/**
* Setter for
* <code>forecast.temporary_measures.lifting_provisional_measures</code>.
* Снятие временных мер
*/
public void setLiftingProvisionalMeasures(BigDecimal value) {
set(5, value);
}
/**
* Getter for
* <code>forecast.temporary_measures.lifting_provisional_measures</code>.
* Снятие временных мер
*/
public BigDecimal getLiftingProvisionalMeasures() {
return (BigDecimal) get(5);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TemporaryMeasuresRecord
*/
public TemporaryMeasuresRecord() {
super(TemporaryMeasures.TEMPORARY_MEASURES);
}
/**
* Create a detached, initialised TemporaryMeasuresRecord
*/
public TemporaryMeasuresRecord(Long temporaryMeasuresId, UUID recruitmentId, Date recordingDate, String schema, BigDecimal introductionProvisionalMeasures, BigDecimal liftingProvisionalMeasures) {
super(TemporaryMeasures.TEMPORARY_MEASURES);
setTemporaryMeasuresId(temporaryMeasuresId);
setRecruitmentId(recruitmentId);
setRecordingDate(recordingDate);
setSchema(schema);
setIntroductionProvisionalMeasures(introductionProvisionalMeasures);
setLiftingProvisionalMeasures(liftingProvisionalMeasures);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<changeSet id="0001" author="saliakhov">
<comment>create table</comment>
<sql>
CREATE TABLE IF NOT EXISTS forecast.reporting_military_commissariat (
reporting_military_commissariat_id bigserial NOT NULL,
recruitment_id uuid NOT NULL,
recording_date date DEFAULT now() NOT NULL,
"schema" varchar(64) DEFAULT 'empty'::character varying NOT NULL,
subpoenaed_appear numeric NULL,
missed_deadline numeric NULL,
missed_deadline_reason numeric NULL,
subpoenas_issued numeric NULL,
retrieved_7_days numeric NULL,
CONSTRAINT pk_reporting_military_commissariat PRIMARY KEY (reporting_military_commissariat_id)
);
ALTER TABLE IF EXISTS forecast.reporting_military_commissariat OWNER TO "ervu-dashboard";
COMMENT ON TABLE forecast.reporting_military_commissariat IS 'Явка в Военный комиссариат';
COMMENT ON COLUMN forecast.reporting_military_commissariat.subpoenaed_appear IS 'Явились по повесткам';
COMMENT ON COLUMN forecast.reporting_military_commissariat.missed_deadline IS 'Не явились в срок';
COMMENT ON COLUMN forecast.reporting_military_commissariat.missed_deadline_reason IS 'Не явились по уважительной причине';
COMMENT ON COLUMN forecast.reporting_military_commissariat.subpoenas_issued IS 'Вручено повесток';
COMMENT ON COLUMN forecast.reporting_military_commissariat.retrieved_7_days IS 'Вручено через 7 дней(автоматически)';
</sql>
</changeSet>
<changeSet id="0002" author="saliakhov">
<comment>create table</comment>
<sql>
CREATE TABLE IF NOT EXISTS forecast.enroll (
enroll_id bigserial NOT NULL,
recruitment_id uuid NOT NULL,
recording_date date DEFAULT now() NOT NULL,
"schema" varchar(64) DEFAULT 'empty'::character varying NOT NULL,
study numeric NULL,
work numeric NULL,
unemployed numeric NULL,
count_17_years numeric NULL,
count_18_26_years numeric NULL,
count_27_30_years numeric NULL,
count_31_35_years numeric NULL,
count_36_40_years numeric NULL,
count_41_45_years numeric NULL,
count_46_50_years numeric NULL,
count_51_years numeric NULL,
CONSTRAINT pk_enroll PRIMARY KEY (enroll_id)
);
ALTER TABLE IF EXISTS forecast.enroll OWNER TO "ervu-dashboard";
COMMENT ON TABLE forecast.enroll IS 'Подлежат постановке на учет';
COMMENT ON COLUMN forecast.enroll.study IS 'Учатся';
COMMENT ON COLUMN forecast.enroll.work IS 'Работают';
COMMENT ON COLUMN forecast.enroll.unemployed IS 'Безработные';
COMMENT ON COLUMN forecast.enroll.count_17_years IS '17 л.';
COMMENT ON COLUMN forecast.enroll.count_18_26_years IS '18-26 л.';
COMMENT ON COLUMN forecast.enroll.count_27_30_years IS '27-30 л.';
COMMENT ON COLUMN forecast.enroll.count_31_35_years IS '31-35 л.';
COMMENT ON COLUMN forecast.enroll.count_36_40_years IS '36-40 л.';
COMMENT ON COLUMN forecast.enroll.count_41_45_years IS '41-45 л.';
COMMENT ON COLUMN forecast.enroll.count_46_50_years IS '46-50 л.';
COMMENT ON COLUMN forecast.enroll.count_51_years IS '51+ л.';
</sql>
</changeSet>
<changeSet id="0003" author="saliakhov">
<comment>create table</comment>
<sql>
CREATE TABLE IF NOT EXISTS forecast.temporary_measures (
temporary_measures_id bigserial NOT NULL,
recruitment_id uuid NOT NULL,
recording_date date DEFAULT now() NOT NULL,
"schema" varchar(64) DEFAULT 'empty'::character varying NOT NULL,
introduction_provisional_measures numeric NULL,
lifting_provisional_measures numeric NULL,
CONSTRAINT pk_temporary_measures PRIMARY KEY (temporary_measures_id)
);
ALTER TABLE IF EXISTS forecast.temporary_measures OWNER TO "ervu-dashboard";
COMMENT ON TABLE forecast.temporary_measures IS 'Решения о принятии и снятии временных мер';
COMMENT ON COLUMN forecast.temporary_measures.introduction_provisional_measures IS 'Введение временных мер';
COMMENT ON COLUMN forecast.temporary_measures.lifting_provisional_measures IS 'Снятие временных мер';
</sql>
</changeSet>
<changeSet id="0004" author="saliakhov">
<comment>create table</comment>
<sql>
CREATE TABLE IF NOT EXISTS forecast.appeals (
appeals_id bigserial NOT NULL,
recruitment_id uuid NOT NULL,
recording_date date DEFAULT now() NOT NULL,
"schema" varchar(64) DEFAULT 'empty'::character varying NOT NULL,
resolved_appeals numeric NULL,
document_retrieval numeric NULL,
retraction_complaint numeric NULL,
disagreement_decision numeric NULL,
incorrect_information numeric NULL,
maintaining_military_records numeric NULL,
conscription numeric NULL,
temporary_measures numeric NULL,
CONSTRAINT pk_appeals PRIMARY KEY (appeals_id)
);
ALTER TABLE IF EXISTS forecast.appeals OWNER TO "ervu-dashboard";
COMMENT ON TABLE forecast.appeals IS 'Обжалования';
COMMENT ON COLUMN forecast.appeals.resolved_appeals IS 'Решенные обжалования';
COMMENT ON COLUMN forecast.appeals.document_retrieval IS 'Досыл документов';
COMMENT ON COLUMN forecast.appeals.retraction_complaint IS 'Отзыв жалобы';
COMMENT ON COLUMN forecast.appeals.disagreement_decision IS 'Несогласие с решением';
COMMENT ON COLUMN forecast.appeals.incorrect_information IS 'Некорректные данные';
COMMENT ON COLUMN forecast.appeals.maintaining_military_records IS 'Ведение воинского учета';
COMMENT ON COLUMN forecast.appeals.conscription IS 'Призыв на службу';
COMMENT ON COLUMN forecast.appeals.temporary_measures IS 'Временные меры';
</sql>
</changeSet>
<changeSet id="0005" author="saliakhov">
<comment>create table</comment>
<sql>
CREATE TABLE IF NOT EXISTS forecast.deferment_conscription (
deferment_conscription_id bigserial NOT NULL,
recruitment_id uuid NOT NULL,
recording_date date DEFAULT now() NOT NULL,
"schema" varchar(64) DEFAULT 'empty'::character varying NOT NULL,
eligible_deferment numeric NULL,
deferment_granted numeric NULL,
CONSTRAINT pk_deferment_conscription PRIMARY KEY (deferment_conscription_id)
);
ALTER TABLE IF EXISTS forecast.deferment_conscription OWNER TO "ervu-dashboard";
COMMENT ON TABLE forecast.deferment_conscription IS 'Отсрочка от призыва';
COMMENT ON COLUMN forecast.deferment_conscription.eligible_deferment IS 'Имеют право на отсрочку';
COMMENT ON COLUMN forecast.deferment_conscription.deferment_granted IS 'Предоставлена отсрочка';
</sql>
</changeSet>
</databaseChangeLog>

View file

@ -14,5 +14,6 @@
<include file="20250131-ERVU-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20250204-ERVU-db_changes.xml" relativeToChangelogFile="true"/>
<include file="20250205-ERVU-271.xml" relativeToChangelogFile="true"/>
<include file="20250212-ERVU-271.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

File diff suppressed because it is too large Load diff