fix set 3
This commit is contained in:
parent
70e247a7d3
commit
e38b28a37e
14 changed files with 2936 additions and 11 deletions
|
|
@ -4,6 +4,7 @@
|
|||
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Collection;
|
||||
|
|
@ -106,7 +107,7 @@ public class CitizenAppeals extends TableImpl<CitizenAppealsRecord> {
|
|||
* The column <code>metrics.citizen_appeals.average_response_time</code>.
|
||||
* Средний срок ответа
|
||||
*/
|
||||
public final TableField<CitizenAppealsRecord, Long> AVERAGE_RESPONSE_TIME = createField(DSL.name("average_response_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "Средний срок ответа");
|
||||
public final TableField<CitizenAppealsRecord, BigDecimal> AVERAGE_RESPONSE_TIME = createField(DSL.name("average_response_time"), SQLDataType.NUMERIC(10, 2).nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.NUMERIC)), this, "Средний срок ответа");
|
||||
|
||||
private CitizenAppeals(Name alias, Table<CitizenAppealsRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public class ViewConvertInfoComparisonCsvXml extends TableImpl<ViewConvertInfoCo
|
|||
private ViewConvertInfoComparisonCsvXml(Name alias, Table<ViewConvertInfoComparisonCsvXmlRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_convert_info_comparison_csv_xml" as SELECT convert_info_comparison_csv_xml.convert_info_comparison_csv_xml_id,
|
||||
COALESCE(round((((convert_info_comparison_csv_xml.count_xml_formed)::numeric * (100)::numeric) / NULLIF((convert_info_comparison_csv_xml.count_csv_formed)::numeric, (0)::numeric))), (0)::numeric) AS percent_xml_formed
|
||||
COALESCE(round((((convert_info_comparison_csv_xml.count_xml_formed)::numeric * (100)::numeric) / NULLIF((convert_info_comparison_csv_xml.count_csv_formed)::numeric, (0)::numeric)), 2), (0)::numeric) AS percent_xml_formed
|
||||
FROM metrics.convert_info_comparison_csv_xml;
|
||||
"""), where);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public class ViewIncidentsChangeDataFromGirVu extends TableImpl<ViewIncidentsCha
|
|||
private ViewIncidentsChangeDataFromGirVu(Name alias, Table<ViewIncidentsChangeDataFromGirVuRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_incidents_change_data_from_gir_vu" as SELECT incidents_change_data_from_gir_vu.incidents_change_data_from_gir_vu_id,
|
||||
((incidents_change_data_from_gir_vu.count_epgu_citizen_appeal + incidents_change_data_from_gir_vu.count_manual) + incidents_change_data_from_gir_vu.count_send_to_gir_vu) AS count_all,
|
||||
(incidents_change_data_from_gir_vu.count_epgu_citizen_appeal + incidents_change_data_from_gir_vu.count_manual) AS count_all,
|
||||
COALESCE(round((((incidents_change_data_from_gir_vu.count_epgu_citizen_appeal)::numeric * (100)::numeric) / NULLIF((((incidents_change_data_from_gir_vu.count_epgu_citizen_appeal + incidents_change_data_from_gir_vu.count_manual) + incidents_change_data_from_gir_vu.count_send_to_gir_vu))::numeric, (0)::numeric))), (0)::numeric) AS percent_epgu_citizen_appeal,
|
||||
COALESCE(round((((incidents_change_data_from_gir_vu.count_manual)::numeric * (100)::numeric) / NULLIF((((incidents_change_data_from_gir_vu.count_epgu_citizen_appeal + incidents_change_data_from_gir_vu.count_manual) + incidents_change_data_from_gir_vu.count_send_to_gir_vu))::numeric, (0)::numeric))), (0)::numeric) AS percent_manual,
|
||||
COALESCE(round((((incidents_change_data_from_gir_vu.count_send_to_gir_vu)::numeric * (100)::numeric) / NULLIF((((incidents_change_data_from_gir_vu.count_epgu_citizen_appeal + incidents_change_data_from_gir_vu.count_manual) + incidents_change_data_from_gir_vu.count_send_to_gir_vu))::numeric, (0)::numeric))), (0)::numeric) AS percent_send_to_gir_vu
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
|
|
@ -161,7 +162,7 @@ public class CitizenAppealsRecord extends UpdatableRecordImpl<CitizenAppealsReco
|
|||
* Setter for <code>metrics.citizen_appeals.average_response_time</code>.
|
||||
* Средний срок ответа
|
||||
*/
|
||||
public void setAverageResponseTime(Long value) {
|
||||
public void setAverageResponseTime(BigDecimal value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
|
|
@ -169,8 +170,8 @@ public class CitizenAppealsRecord extends UpdatableRecordImpl<CitizenAppealsReco
|
|||
* Getter for <code>metrics.citizen_appeals.average_response_time</code>.
|
||||
* Средний срок ответа
|
||||
*/
|
||||
public Long getAverageResponseTime() {
|
||||
return (Long) get(9);
|
||||
public BigDecimal getAverageResponseTime() {
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -196,7 +197,7 @@ public class CitizenAppealsRecord extends UpdatableRecordImpl<CitizenAppealsReco
|
|||
/**
|
||||
* Create a detached, initialised CitizenAppealsRecord
|
||||
*/
|
||||
public CitizenAppealsRecord(Long citizenAppealsId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countSubmitted, Long countSatisfided, Long countNotSatisfided, Long countAcceptedExpired, Long countAcceptedOnTime, Long averageResponseTime) {
|
||||
public CitizenAppealsRecord(Long citizenAppealsId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countSubmitted, Long countSatisfided, Long countNotSatisfided, Long countAcceptedExpired, Long countAcceptedOnTime, BigDecimal averageResponseTime) {
|
||||
super(CitizenAppeals.CITIZEN_APPEALS);
|
||||
|
||||
setCitizenAppealsId(citizenAppealsId);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Imp
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RecruitOfficeVisit;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RemoveTmpMeasures;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RfLeavingBan;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SupportLk;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.AllSummonsesRecord;
|
||||
|
|
@ -26,6 +27,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.rec
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.InfoSentToLkEpguRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RecruitOfficeVisitRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RemoveTmpMeasuresRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RfLeavingBanRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.SummonsesReasonRecord;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.SupportLkRecord;
|
||||
|
||||
|
|
@ -48,6 +50,7 @@ public class Keys {
|
|||
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<RecruitOfficeVisitRecord> RECRUIT_OFFICE_VISIT_PKEY = Internal.createUniqueKey(RecruitOfficeVisit.RECRUIT_OFFICE_VISIT, DSL.name("recruit_office_visit_pkey"), new TableField[] { RecruitOfficeVisit.RECRUIT_OFFICE_VISIT.RECRUIT_OFFICE_VISIT_ID }, true);
|
||||
public static final UniqueKey<RemoveTmpMeasuresRecord> REMOVE_TMP_MEASURES_PKEY = Internal.createUniqueKey(RemoveTmpMeasures.REMOVE_TMP_MEASURES, DSL.name("remove_tmp_measures_pkey"), new TableField[] { RemoveTmpMeasures.REMOVE_TMP_MEASURES.REMOVE_TMP_MEASURES_ID }, true);
|
||||
public static final UniqueKey<RfLeavingBanRecord> RF_LEAVING_BAN_PKEY = Internal.createUniqueKey(RfLeavingBan.RF_LEAVING_BAN, DSL.name("rf_leaving_ban_pkey"), new TableField[] { RfLeavingBan.RF_LEAVING_BAN.RF_LEAVING_BAN_ID }, true);
|
||||
public static final UniqueKey<SummonsesReasonRecord> SUMMONSES_REASON_PKEY = Internal.createUniqueKey(SummonsesReason.SUMMONSES_REASON, DSL.name("summonses_reason_pkey"), new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
public static final UniqueKey<SummonsesReasonRecord> UNI_SUMMONSES_REASON1 = Internal.createUniqueKey(SummonsesReason.SUMMONSES_REASON, DSL.name("uni_summonses_reason1"), new TableField[] { SummonsesReason.SUMMONSES_REASON.CODE }, true);
|
||||
public static final UniqueKey<SupportLkRecord> SUPPORT_LK_PKEY = Internal.createUniqueKey(SupportLk.SUPPORT_LK, DSL.name("support_lk_pkey"), new TableField[] { SupportLk.SUPPORT_LK.SUPPORT_LK_ID }, true);
|
||||
|
|
@ -62,5 +65,6 @@ public class Keys {
|
|||
public static final ForeignKey<InfoSentToLkEpguRecord, SummonsesReasonRecord> INFO_SENT_TO_LK_EPGU__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU, DSL.name("fk_summonses_reason_id"), new TableField[] { InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
public static final ForeignKey<RecruitOfficeVisitRecord, SummonsesReasonRecord> RECRUIT_OFFICE_VISIT__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(RecruitOfficeVisit.RECRUIT_OFFICE_VISIT, DSL.name("fk_summonses_reason_id"), new TableField[] { RecruitOfficeVisit.RECRUIT_OFFICE_VISIT.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
public static final ForeignKey<RemoveTmpMeasuresRecord, SummonsesReasonRecord> REMOVE_TMP_MEASURES__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(RemoveTmpMeasures.REMOVE_TMP_MEASURES, DSL.name("fk_summonses_reason_id"), new TableField[] { RemoveTmpMeasures.REMOVE_TMP_MEASURES.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
public static final ForeignKey<RfLeavingBanRecord, SummonsesReasonRecord> RF_LEAVING_BAN__FK_SUMMONSES_REASON_ID = Internal.createForeignKey(RfLeavingBan.RF_LEAVING_BAN, DSL.name("fk_summonses_reason_id"), new TableField[] { RfLeavingBan.RF_LEAVING_BAN.SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
public static final ForeignKey<SummonsesReasonRecord, SummonsesReasonRecord> SUMMONSES_REASON__FK_PARENT_SUMMONSES_REASON_ID = Internal.createForeignKey(SummonsesReason.SUMMONSES_REASON, DSL.name("fk_parent_summonses_reason_id"), new TableField[] { SummonsesReason.SUMMONSES_REASON.PARENT_SUMMONSES_REASON_ID }, Keys.SUMMONSES_REASON_PKEY, new TableField[] { SummonsesReason.SUMMONSES_REASON.SUMMONSES_REASON_ID }, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Imp
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RecruitOfficeVisit;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RemoveTmpMeasures;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RfLeavingBan;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SupportLk;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewAllSummonses;
|
||||
|
|
@ -27,6 +28,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Vie
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewInfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRecruitOfficeVisit;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRemoveTmpMeasures;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRfLeavingBan;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -77,6 +79,12 @@ public class SummonsesList extends SchemaImpl {
|
|||
*/
|
||||
public final RemoveTmpMeasures REMOVE_TMP_MEASURES = RemoveTmpMeasures.REMOVE_TMP_MEASURES;
|
||||
|
||||
/**
|
||||
* Реестр повесток. Решение о применении временной меры - запрет на выезд из
|
||||
* РФ
|
||||
*/
|
||||
public final RfLeavingBan RF_LEAVING_BAN = RfLeavingBan.RF_LEAVING_BAN;
|
||||
|
||||
/**
|
||||
* Реестр повесток. Причины выдачи повестки
|
||||
*/
|
||||
|
|
@ -117,6 +125,11 @@ public class SummonsesList extends SchemaImpl {
|
|||
*/
|
||||
public final ViewRemoveTmpMeasures VIEW_REMOVE_TMP_MEASURES = ViewRemoveTmpMeasures.VIEW_REMOVE_TMP_MEASURES;
|
||||
|
||||
/**
|
||||
* The table <code>summonses_list.view_rf_leaving_ban</code>.
|
||||
*/
|
||||
public final ViewRfLeavingBan VIEW_RF_LEAVING_BAN = ViewRfLeavingBan.VIEW_RF_LEAVING_BAN;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
|
|
@ -140,6 +153,7 @@ public class SummonsesList extends SchemaImpl {
|
|||
InfoSentToLkEpgu.INFO_SENT_TO_LK_EPGU,
|
||||
RecruitOfficeVisit.RECRUIT_OFFICE_VISIT,
|
||||
RemoveTmpMeasures.REMOVE_TMP_MEASURES,
|
||||
RfLeavingBan.RF_LEAVING_BAN,
|
||||
SummonsesReason.SUMMONSES_REASON,
|
||||
SupportLk.SUPPORT_LK,
|
||||
ViewAllSummonses.VIEW_ALL_SUMMONSES,
|
||||
|
|
@ -147,7 +161,8 @@ public class SummonsesList extends SchemaImpl {
|
|||
ViewImpositionTmpMeasures.VIEW_IMPOSITION_TMP_MEASURES,
|
||||
ViewInfoSentToLkEpgu.VIEW_INFO_SENT_TO_LK_EPGU,
|
||||
ViewRecruitOfficeVisit.VIEW_RECRUIT_OFFICE_VISIT,
|
||||
ViewRemoveTmpMeasures.VIEW_REMOVE_TMP_MEASURES
|
||||
ViewRemoveTmpMeasures.VIEW_REMOVE_TMP_MEASURES,
|
||||
ViewRfLeavingBan.VIEW_RF_LEAVING_BAN
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Imp
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.InfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RecruitOfficeVisit;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RemoveTmpMeasures;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RfLeavingBan;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SupportLk;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewAllSummonses;
|
||||
|
|
@ -19,6 +20,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Vie
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewInfoSentToLkEpgu;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRecruitOfficeVisit;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRemoveTmpMeasures;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRfLeavingBan;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -62,6 +64,12 @@ public class Tables {
|
|||
*/
|
||||
public static final RemoveTmpMeasures REMOVE_TMP_MEASURES = RemoveTmpMeasures.REMOVE_TMP_MEASURES;
|
||||
|
||||
/**
|
||||
* Реестр повесток. Решение о применении временной меры - запрет на выезд из
|
||||
* РФ
|
||||
*/
|
||||
public static final RfLeavingBan RF_LEAVING_BAN = RfLeavingBan.RF_LEAVING_BAN;
|
||||
|
||||
/**
|
||||
* Реестр повесток. Причины выдачи повестки
|
||||
*/
|
||||
|
|
@ -101,4 +109,9 @@ public class Tables {
|
|||
* The table <code>summonses_list.view_remove_tmp_measures</code>.
|
||||
*/
|
||||
public static final ViewRemoveTmpMeasures VIEW_REMOVE_TMP_MEASURES = ViewRemoveTmpMeasures.VIEW_REMOVE_TMP_MEASURES;
|
||||
|
||||
/**
|
||||
* The table <code>summonses_list.view_rf_leaving_ban</code>.
|
||||
*/
|
||||
public static final ViewRfLeavingBan VIEW_RF_LEAVING_BAN = ViewRfLeavingBan.VIEW_RF_LEAVING_BAN;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,323 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.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.summonses_list.Keys;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.SummonsesList;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason.SummonsesReasonPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.RfLeavingBanRecord;
|
||||
|
||||
|
||||
/**
|
||||
* Реестр повесток. Решение о применении временной меры - запрет на выезд из РФ
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class RfLeavingBan extends TableImpl<RfLeavingBanRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>summonses_list.rf_leaving_ban</code>
|
||||
*/
|
||||
public static final RfLeavingBan RF_LEAVING_BAN = new RfLeavingBan();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<RfLeavingBanRecord> getRecordType() {
|
||||
return RfLeavingBanRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Long> RF_LEAVING_BAN_ID = createField(DSL.name("rf_leaving_ban_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.update_date</code>.
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, 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>summonses_list.rf_leaving_ban.info_date</code>.
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Date> INFO_DATE = createField(DSL.name("info_date"), SQLDataType.DATE.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Long> SUMMONSES_REASON_ID = createField(DSL.name("summonses_reason_id"), SQLDataType.BIGINT.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.count_for_sign</code>.
|
||||
* доступно для подписания
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Long> COUNT_FOR_SIGN = createField(DSL.name("count_for_sign"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "доступно для подписания");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.count_signed</code>.
|
||||
* применена мера
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Long> COUNT_SIGNED = createField(DSL.name("count_signed"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "применена мера");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.rf_leaving_ban.count_enter</code>.
|
||||
* введлена мера
|
||||
*/
|
||||
public final TableField<RfLeavingBanRecord, Long> COUNT_ENTER = createField(DSL.name("count_enter"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "введлена мера");
|
||||
|
||||
private RfLeavingBan(Name alias, Table<RfLeavingBanRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private RfLeavingBan(Name alias, Table<RfLeavingBanRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("Реестр повесток. Решение о применении временной меры - запрет на выезд из РФ"), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>summonses_list.rf_leaving_ban</code> table
|
||||
* reference
|
||||
*/
|
||||
public RfLeavingBan(String alias) {
|
||||
this(DSL.name(alias), RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>summonses_list.rf_leaving_ban</code> table
|
||||
* reference
|
||||
*/
|
||||
public RfLeavingBan(Name alias) {
|
||||
this(alias, RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>summonses_list.rf_leaving_ban</code> table reference
|
||||
*/
|
||||
public RfLeavingBan() {
|
||||
this(DSL.name("rf_leaving_ban"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> RfLeavingBan(Table<O> path, ForeignKey<O, RfLeavingBanRecord> childPath, InverseForeignKey<O, RfLeavingBanRecord> parentPath) {
|
||||
super(path, childPath, parentPath, RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||
*/
|
||||
public static class RfLeavingBanPath extends RfLeavingBan implements Path<RfLeavingBanRecord> {
|
||||
public <O extends Record> RfLeavingBanPath(Table<O> path, ForeignKey<O, RfLeavingBanRecord> childPath, InverseForeignKey<O, RfLeavingBanRecord> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
private RfLeavingBanPath(Name alias, Table<RfLeavingBanRecord> aliased) {
|
||||
super(alias, aliased);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBanPath as(String alias) {
|
||||
return new RfLeavingBanPath(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBanPath as(Name alias) {
|
||||
return new RfLeavingBanPath(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBanPath as(Table<?> alias) {
|
||||
return new RfLeavingBanPath(alias.getQualifiedName(), this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : SummonsesList.SUMMONSES_LIST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<RfLeavingBanRecord, Long> getIdentity() {
|
||||
return (Identity<RfLeavingBanRecord, Long>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<RfLeavingBanRecord> getPrimaryKey() {
|
||||
return Keys.RF_LEAVING_BAN_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ForeignKey<RfLeavingBanRecord, ?>> getReferences() {
|
||||
return Arrays.asList(Keys.RF_LEAVING_BAN__FK_SUMMONSES_REASON_ID);
|
||||
}
|
||||
|
||||
private transient SummonsesReasonPath _summonsesReason;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the
|
||||
* <code>summonses_list.summonses_reason</code> table.
|
||||
*/
|
||||
public SummonsesReasonPath summonsesReason() {
|
||||
if (_summonsesReason == null)
|
||||
_summonsesReason = new SummonsesReasonPath(this, Keys.RF_LEAVING_BAN__FK_SUMMONSES_REASON_ID, null);
|
||||
|
||||
return _summonsesReason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBan as(String alias) {
|
||||
return new RfLeavingBan(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBan as(Name alias) {
|
||||
return new RfLeavingBan(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RfLeavingBan as(Table<?> alias) {
|
||||
return new RfLeavingBan(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan rename(String name) {
|
||||
return new RfLeavingBan(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan rename(Name name) {
|
||||
return new RfLeavingBan(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan rename(Table<?> name) {
|
||||
return new RfLeavingBan(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan where(Condition condition) {
|
||||
return new RfLeavingBan(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RfLeavingBan where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RfLeavingBan where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RfLeavingBan where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public RfLeavingBan where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public RfLeavingBan whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
|
|
@ -38,6 +38,7 @@ import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.Imp
|
|||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.InfoSentToLkEpgu.InfoSentToLkEpguPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RecruitOfficeVisit.RecruitOfficeVisitPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RemoveTmpMeasures.RemoveTmpMeasuresPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.RfLeavingBan.RfLeavingBanPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason.SummonsesReasonPath;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.SummonsesReasonRecord;
|
||||
|
||||
|
|
@ -265,6 +266,19 @@ public class SummonsesReason extends TableImpl<SummonsesReasonRecord> {
|
|||
return _removeTmpMeasures;
|
||||
}
|
||||
|
||||
private transient RfLeavingBanPath _rfLeavingBan;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the
|
||||
* <code>summonses_list.rf_leaving_ban</code> table
|
||||
*/
|
||||
public RfLeavingBanPath rfLeavingBan() {
|
||||
if (_rfLeavingBan == null)
|
||||
_rfLeavingBan = new RfLeavingBanPath(this, null, Keys.RF_LEAVING_BAN__FK_SUMMONSES_REASON_ID.getInverseKey());
|
||||
|
||||
return _rfLeavingBan;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SummonsesReason as(String alias) {
|
||||
return new SummonsesReason(DSL.name(alias), this);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,244 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.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.summonses_list.SummonsesList;
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records.ViewRfLeavingBanRecord;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ViewRfLeavingBan extends TableImpl<ViewRfLeavingBanRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>summonses_list.view_rf_leaving_ban</code>
|
||||
*/
|
||||
public static final ViewRfLeavingBan VIEW_RF_LEAVING_BAN = new ViewRfLeavingBan();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<ViewRfLeavingBanRecord> getRecordType() {
|
||||
return ViewRfLeavingBanRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, Long> RF_LEAVING_BAN_ID = createField(DSL.name("rf_leaving_ban_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, Long> COUNT_ALL = createField(DSL.name("count_all"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_for_sign</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, BigDecimal> PERCENT_FOR_SIGN = createField(DSL.name("percent_for_sign"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_signed</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, BigDecimal> PERCENT_SIGNED = createField(DSL.name("percent_signed"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.view_rf_leaving_ban.percent_enter</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, BigDecimal> PERCENT_ENTER = createField(DSL.name("percent_enter"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private ViewRfLeavingBan(Name alias, Table<ViewRfLeavingBanRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private ViewRfLeavingBan(Name alias, Table<ViewRfLeavingBanRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_rf_leaving_ban" as SELECT rf_leaving_ban.rf_leaving_ban_id,
|
||||
((rf_leaving_ban.count_for_sign + rf_leaving_ban.count_signed) + rf_leaving_ban.count_enter) AS count_all,
|
||||
COALESCE(round((((rf_leaving_ban.count_for_sign)::numeric * (100)::numeric) / NULLIF((((rf_leaving_ban.count_for_sign + rf_leaving_ban.count_signed) + rf_leaving_ban.count_enter))::numeric, (0)::numeric))), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round((((rf_leaving_ban.count_signed)::numeric * (100)::numeric) / NULLIF((((rf_leaving_ban.count_for_sign + rf_leaving_ban.count_signed) + rf_leaving_ban.count_enter))::numeric, (0)::numeric))), (0)::numeric) AS percent_signed,
|
||||
COALESCE(round((((rf_leaving_ban.count_enter)::numeric * (100)::numeric) / NULLIF((((rf_leaving_ban.count_for_sign + rf_leaving_ban.count_signed) + rf_leaving_ban.count_enter))::numeric, (0)::numeric))), (0)::numeric) AS percent_enter
|
||||
FROM summonses_list.rf_leaving_ban;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>summonses_list.view_rf_leaving_ban</code> table
|
||||
* reference
|
||||
*/
|
||||
public ViewRfLeavingBan(String alias) {
|
||||
this(DSL.name(alias), VIEW_RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>summonses_list.view_rf_leaving_ban</code> table
|
||||
* reference
|
||||
*/
|
||||
public ViewRfLeavingBan(Name alias) {
|
||||
this(alias, VIEW_RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>summonses_list.view_rf_leaving_ban</code> table reference
|
||||
*/
|
||||
public ViewRfLeavingBan() {
|
||||
this(DSL.name("view_rf_leaving_ban"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : SummonsesList.SUMMONSES_LIST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRfLeavingBan as(String alias) {
|
||||
return new ViewRfLeavingBan(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRfLeavingBan as(Name alias) {
|
||||
return new ViewRfLeavingBan(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ViewRfLeavingBan as(Table<?> alias) {
|
||||
return new ViewRfLeavingBan(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan rename(String name) {
|
||||
return new ViewRfLeavingBan(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan rename(Name name) {
|
||||
return new ViewRfLeavingBan(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan rename(Table<?> name) {
|
||||
return new ViewRfLeavingBan(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan where(Condition condition) {
|
||||
return new ViewRfLeavingBan(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRfLeavingBan where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRfLeavingBan where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRfLeavingBan where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public ViewRfLeavingBan where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public ViewRfLeavingBan whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.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.summonses_list.tables.RfLeavingBan;
|
||||
|
||||
|
||||
/**
|
||||
* Реестр повесток. Решение о применении временной меры - запрет на выезд из РФ
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class RfLeavingBanRecord extends UpdatableRecordImpl<RfLeavingBanRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public void setRfLeavingBanId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public Long getRfLeavingBanId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public void setRecruitmentId(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.update_date</code>.
|
||||
*/
|
||||
public void setUpdateDate(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.update_date</code>.
|
||||
*/
|
||||
public Timestamp getUpdateDate() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.info_date</code>.
|
||||
*/
|
||||
public void setInfoDate(Date value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.info_date</code>.
|
||||
*/
|
||||
public Date getInfoDate() {
|
||||
return (Date) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public void setSummonsesReasonId(Long value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public Long getSummonsesReasonId() {
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.count_for_sign</code>.
|
||||
* доступно для подписания
|
||||
*/
|
||||
public void setCountForSign(Long value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.count_for_sign</code>.
|
||||
* доступно для подписания
|
||||
*/
|
||||
public Long getCountForSign() {
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.count_signed</code>.
|
||||
* применена мера
|
||||
*/
|
||||
public void setCountSigned(Long value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.count_signed</code>.
|
||||
* применена мера
|
||||
*/
|
||||
public Long getCountSigned() {
|
||||
return (Long) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.rf_leaving_ban.count_enter</code>.
|
||||
* введлена мера
|
||||
*/
|
||||
public void setCountEnter(Long value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.rf_leaving_ban.count_enter</code>.
|
||||
* введлена мера
|
||||
*/
|
||||
public Long getCountEnter() {
|
||||
return (Long) get(7);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Long> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached RfLeavingBanRecord
|
||||
*/
|
||||
public RfLeavingBanRecord() {
|
||||
super(RfLeavingBan.RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised RfLeavingBanRecord
|
||||
*/
|
||||
public RfLeavingBanRecord(Long rfLeavingBanId, String recruitmentId, Timestamp updateDate, Date infoDate, Long summonsesReasonId, Long countForSign, Long countSigned, Long countEnter) {
|
||||
super(RfLeavingBan.RF_LEAVING_BAN);
|
||||
|
||||
setRfLeavingBanId(rfLeavingBanId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setUpdateDate(updateDate);
|
||||
setInfoDate(infoDate);
|
||||
setSummonsesReasonId(summonsesReasonId);
|
||||
setCountForSign(countForSign);
|
||||
setCountSigned(countSigned);
|
||||
setCountEnter(countEnter);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.records;
|
||||
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.ViewRfLeavingBan;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public void setRfLeavingBanId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
*/
|
||||
public Long getRfLeavingBanId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_for_sign</code>.
|
||||
*/
|
||||
public void setPercentForSign(BigDecimal value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_for_sign</code>.
|
||||
*/
|
||||
public BigDecimal getPercentForSign() {
|
||||
return (BigDecimal) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_signed</code>.
|
||||
*/
|
||||
public void setPercentSigned(BigDecimal value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.percent_signed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentSigned() {
|
||||
return (BigDecimal) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.percent_enter</code>.
|
||||
*/
|
||||
public void setPercentEnter(BigDecimal value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.percent_enter</code>.
|
||||
*/
|
||||
public BigDecimal getPercentEnter() {
|
||||
return (BigDecimal) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ViewRfLeavingBanRecord
|
||||
*/
|
||||
public ViewRfLeavingBanRecord() {
|
||||
super(ViewRfLeavingBan.VIEW_RF_LEAVING_BAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ViewRfLeavingBanRecord
|
||||
*/
|
||||
public ViewRfLeavingBanRecord(Long rfLeavingBanId, Long countAll, BigDecimal percentForSign, BigDecimal percentSigned, BigDecimal percentEnter) {
|
||||
super(ViewRfLeavingBan.VIEW_RF_LEAVING_BAN);
|
||||
|
||||
setRfLeavingBanId(rfLeavingBanId);
|
||||
setCountAll(countAll);
|
||||
setPercentForSign(percentForSign);
|
||||
setPercentSigned(percentSigned);
|
||||
setPercentEnter(percentEnter);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
IS 'Реестр повесток. Решение о применении временной меры - запрет на выезд из РФ';
|
||||
COMMENT ON COLUMN summonses_list.RF_leaving_ban.count_for_sign
|
||||
IS 'доступно для подписания';
|
||||
COMMENT ON COLUMN summonses_list.RF_leaving_ban.count_apply
|
||||
COMMENT ON COLUMN summonses_list.RF_leaving_ban.count_signed
|
||||
IS 'применена мера';
|
||||
COMMENT ON COLUMN summonses_list.RF_leaving_ban.count_enter
|
||||
IS 'введлена мера';
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue