Праки на странице реестр повесток + сеты
This commit is contained in:
parent
df0c38e584
commit
7c0afdaf05
11 changed files with 584 additions and 236 deletions
|
|
@ -51,9 +51,15 @@ public class ViewImpositionTmpMeasures extends TableImpl<ViewImpositionTmpMeasur
|
|||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_imposition_tmp_measures.imposition_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_imposition_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<ViewImpositionTmpMeasuresRecord, Long> IMPOSITION_TMP_MEASURES_ID = createField(DSL.name("imposition_tmp_measures_id"), SQLDataType.BIGINT, this, "");
|
||||
public final TableField<ViewImpositionTmpMeasuresRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_imposition_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public final TableField<ViewImpositionTmpMeasuresRecord, Long> SUMMONSES_REASON_ID = createField(DSL.name("summonses_reason_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
|
|
@ -103,23 +109,24 @@ public class ViewImpositionTmpMeasures extends TableImpl<ViewImpositionTmpMeasur
|
|||
|
||||
private ViewImpositionTmpMeasures(Name alias, Table<ViewImpositionTmpMeasuresRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_imposition_tmp_measures" as SELECT m.imposition_tmp_measures_id,
|
||||
(((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_apply) + COALESCE(s.count_apply, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)) AS count_all,
|
||||
(m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(m.count_apply + COALESCE(s.count_apply, (0)::bigint)) AS count_apply,
|
||||
(m.count_enter + COALESCE(s.count_enter, (0)::bigint)) AS count_enter,
|
||||
COALESCE(round(((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_apply) + COALESCE(s.count_apply, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((m.count_apply + COALESCE(s.count_apply, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_apply) + COALESCE(s.count_apply, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_apply,
|
||||
COALESCE(round(((((m.count_enter + COALESCE(s.count_enter, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_apply) + COALESCE(s.count_apply, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_enter
|
||||
create view "view_imposition_tmp_measures" as SELECT COALESCE(s.recruitment_id, m.recruitment_id) AS recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) AS summonses_reason_id,
|
||||
(((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_apply, (0)::bigint)) + COALESCE(s.count_apply, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)) AS count_all,
|
||||
(COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(COALESCE(m.count_apply, (0)::bigint) + COALESCE(s.count_apply, (0)::bigint)) AS count_apply,
|
||||
(COALESCE(m.count_enter, (0)::bigint) + COALESCE(s.count_enter, (0)::bigint)) AS count_enter,
|
||||
COALESCE(round(((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_apply, (0)::bigint)) + COALESCE(s.count_apply, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((COALESCE(m.count_apply, (0)::bigint) + COALESCE(s.count_apply, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_apply, (0)::bigint)) + COALESCE(s.count_apply, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_apply,
|
||||
COALESCE(round(((((COALESCE(m.count_enter, (0)::bigint) + COALESCE(s.count_enter, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_apply, (0)::bigint)) + COALESCE(s.count_apply, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_enter
|
||||
FROM (summonses_list.imposition_tmp_measures m
|
||||
LEFT JOIN ( SELECT DISTINCT ON (imposition_tmp_measures_storage.recruitment_id, imposition_tmp_measures_storage.summonses_reason_id, imposition_tmp_measures_storage.info_date) imposition_tmp_measures_storage.recruitment_id,
|
||||
FULL JOIN ( SELECT DISTINCT ON (imposition_tmp_measures_storage.recruitment_id, imposition_tmp_measures_storage.summonses_reason_id, imposition_tmp_measures_storage.info_date) imposition_tmp_measures_storage.recruitment_id,
|
||||
imposition_tmp_measures_storage.summonses_reason_id,
|
||||
imposition_tmp_measures_storage.info_date,
|
||||
imposition_tmp_measures_storage.count_for_sign,
|
||||
imposition_tmp_measures_storage.count_apply,
|
||||
imposition_tmp_measures_storage.count_enter
|
||||
FROM summonses_list.imposition_tmp_measures_storage
|
||||
ORDER BY imposition_tmp_measures_storage.recruitment_id, imposition_tmp_measures_storage.summonses_reason_id, imposition_tmp_measures_storage.info_date, imposition_tmp_measures_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id) AND (m.info_date = s.info_date))));
|
||||
ORDER BY imposition_tmp_measures_storage.recruitment_id, imposition_tmp_measures_storage.summonses_reason_id, imposition_tmp_measures_storage.info_date, imposition_tmp_measures_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id))));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,9 +51,15 @@ public class ViewInfoSentToLkEpgu extends TableImpl<ViewInfoSentToLkEpguRecord>
|
|||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.info_sent_to_lk_epgu_id</code>.
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<ViewInfoSentToLkEpguRecord, Long> INFO_SENT_TO_LK_EPGU_ID = createField(DSL.name("info_sent_to_lk_epgu_id"), SQLDataType.BIGINT, this, "");
|
||||
public final TableField<ViewInfoSentToLkEpguRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.summonses_reason_id</code>.
|
||||
*/
|
||||
public final TableField<ViewInfoSentToLkEpguRecord, Long> SUMMONSES_REASON_ID = createField(DSL.name("summonses_reason_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
|
|
@ -175,28 +181,29 @@ public class ViewInfoSentToLkEpgu extends TableImpl<ViewInfoSentToLkEpguRecord>
|
|||
|
||||
private ViewInfoSentToLkEpgu(Name alias, Table<ViewInfoSentToLkEpguRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_info_sent_to_lk_epgu" as SELECT m.info_sent_to_lk_epgu_id,
|
||||
(m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) AS count_status_formed,
|
||||
(m.count_sended + COALESCE(s.count_sended, (0)::bigint)) AS count_sended,
|
||||
(m.count_delivered + COALESCE(s.count_delivered, (0)::bigint)) AS count_delivered,
|
||||
(m.count_error + COALESCE(s.count_error, (0)::bigint)) AS count_error,
|
||||
(m.count_viewed + COALESCE(s.count_viewed, (0)::bigint)) AS count_viewed,
|
||||
(m.count_not_viewed + COALESCE(s.count_not_viewed, (0)::bigint)) AS count_not_viewed,
|
||||
(m.count_status_not_formed + COALESCE(s.count_status_not_formed, (0)::bigint)) AS count_status_not_formed,
|
||||
(m.count_exceeded_send + COALESCE(s.count_exceeded_send, (0)::bigint)) AS count_exceeded_send,
|
||||
(m.count_exceeded_delivered + COALESCE(s.count_exceeded_delivered, (0)::bigint)) AS count_exceeded_delivered,
|
||||
(((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)) AS count_all,
|
||||
COALESCE(round(((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_status_formed,
|
||||
COALESCE(round(((((m.count_status_not_formed + COALESCE(s.count_status_not_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_status_not_formed,
|
||||
COALESCE(round(((((m.count_sended + COALESCE(s.count_sended, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_sended,
|
||||
COALESCE(round(((((m.count_delivered + COALESCE(s.count_delivered, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_delivered,
|
||||
COALESCE(round(((((m.count_error + COALESCE(s.count_error, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_error,
|
||||
COALESCE(round(((((m.count_viewed + COALESCE(s.count_viewed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_viewed,
|
||||
COALESCE(round(((((m.count_not_viewed + COALESCE(s.count_not_viewed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_not_viewed,
|
||||
COALESCE(round(((((m.count_exceeded_send + COALESCE(s.count_exceeded_send, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_exceeded_send,
|
||||
COALESCE(round(((((m.count_exceeded_delivered + COALESCE(s.count_exceeded_delivered, (0)::bigint)))::numeric * 100.0) / (NULLIF((((m.count_status_formed + COALESCE(s.count_status_formed, (0)::bigint)) + m.count_status_not_formed) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_exceeded_delivered
|
||||
create view "view_info_sent_to_lk_epgu" as SELECT COALESCE(s.recruitment_id, m.recruitment_id) AS recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) AS summonses_reason_id,
|
||||
(COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) AS count_status_formed,
|
||||
(COALESCE(m.count_sended, (0)::bigint) + COALESCE(s.count_sended, (0)::bigint)) AS count_sended,
|
||||
(COALESCE(m.count_delivered, (0)::bigint) + COALESCE(s.count_delivered, (0)::bigint)) AS count_delivered,
|
||||
(COALESCE(m.count_error, (0)::bigint) + COALESCE(s.count_error, (0)::bigint)) AS count_error,
|
||||
(COALESCE(m.count_viewed, (0)::bigint) + COALESCE(s.count_viewed, (0)::bigint)) AS count_viewed,
|
||||
(COALESCE(m.count_not_viewed, (0)::bigint) + COALESCE(s.count_not_viewed, (0)::bigint)) AS count_not_viewed,
|
||||
(COALESCE(m.count_status_not_formed, (0)::bigint) + COALESCE(s.count_status_not_formed, (0)::bigint)) AS count_status_not_formed,
|
||||
(COALESCE(m.count_exceeded_send, (0)::bigint) + COALESCE(s.count_exceeded_send, (0)::bigint)) AS count_exceeded_send,
|
||||
(COALESCE(m.count_exceeded_delivered, (0)::bigint) + COALESCE(s.count_exceeded_delivered, (0)::bigint)) AS count_exceeded_delivered,
|
||||
(((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)) AS count_all,
|
||||
COALESCE(round(((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_status_formed,
|
||||
COALESCE(round(((((COALESCE(m.count_status_not_formed, (0)::bigint) + COALESCE(s.count_status_not_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_status_not_formed,
|
||||
COALESCE(round(((((COALESCE(m.count_sended, (0)::bigint) + COALESCE(s.count_sended, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_sended,
|
||||
COALESCE(round(((((COALESCE(m.count_delivered, (0)::bigint) + COALESCE(s.count_delivered, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_delivered,
|
||||
COALESCE(round(((((COALESCE(m.count_error, (0)::bigint) + COALESCE(s.count_error, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_error,
|
||||
COALESCE(round(((((COALESCE(m.count_viewed, (0)::bigint) + COALESCE(s.count_viewed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_viewed,
|
||||
COALESCE(round(((((COALESCE(m.count_not_viewed, (0)::bigint) + COALESCE(s.count_not_viewed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_not_viewed,
|
||||
COALESCE(round(((((COALESCE(m.count_exceeded_send, (0)::bigint) + COALESCE(s.count_exceeded_send, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_exceeded_send,
|
||||
COALESCE(round(((((COALESCE(m.count_exceeded_delivered, (0)::bigint) + COALESCE(s.count_exceeded_delivered, (0)::bigint)))::numeric * 100.0) / (NULLIF((((COALESCE(m.count_status_formed, (0)::bigint) + COALESCE(s.count_status_formed, (0)::bigint)) + COALESCE(m.count_status_not_formed, (0)::bigint)) + COALESCE(s.count_status_not_formed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_exceeded_delivered
|
||||
FROM (summonses_list.info_sent_to_lk_epgu m
|
||||
LEFT JOIN ( SELECT DISTINCT ON (info_sent_to_lk_epgu_storage.recruitment_id, info_sent_to_lk_epgu_storage.summonses_reason_id, info_sent_to_lk_epgu_storage.info_date) info_sent_to_lk_epgu_storage.recruitment_id,
|
||||
FULL JOIN ( SELECT DISTINCT ON (info_sent_to_lk_epgu_storage.recruitment_id, info_sent_to_lk_epgu_storage.summonses_reason_id, info_sent_to_lk_epgu_storage.info_date) info_sent_to_lk_epgu_storage.recruitment_id,
|
||||
info_sent_to_lk_epgu_storage.summonses_reason_id,
|
||||
info_sent_to_lk_epgu_storage.info_date,
|
||||
info_sent_to_lk_epgu_storage.count_status_formed,
|
||||
|
|
@ -209,7 +216,7 @@ public class ViewInfoSentToLkEpgu extends TableImpl<ViewInfoSentToLkEpguRecord>
|
|||
info_sent_to_lk_epgu_storage.count_exceeded_send,
|
||||
info_sent_to_lk_epgu_storage.count_exceeded_delivered
|
||||
FROM summonses_list.info_sent_to_lk_epgu_storage
|
||||
ORDER BY info_sent_to_lk_epgu_storage.recruitment_id, info_sent_to_lk_epgu_storage.summonses_reason_id, info_sent_to_lk_epgu_storage.info_date, info_sent_to_lk_epgu_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id) AND (m.info_date = s.info_date))));
|
||||
ORDER BY info_sent_to_lk_epgu_storage.recruitment_id, info_sent_to_lk_epgu_storage.summonses_reason_id, info_sent_to_lk_epgu_storage.info_date, info_sent_to_lk_epgu_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id))));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,9 +51,15 @@ public class ViewRemoveTmpMeasures extends TableImpl<ViewRemoveTmpMeasuresRecord
|
|||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_remove_tmp_measures.remove_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_remove_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRemoveTmpMeasuresRecord, Long> REMOVE_TMP_MEASURES_ID = createField(DSL.name("remove_tmp_measures_id"), SQLDataType.BIGINT, this, "");
|
||||
public final TableField<ViewRemoveTmpMeasuresRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_remove_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRemoveTmpMeasuresRecord, Long> SUMMONSES_REASON_ID = createField(DSL.name("summonses_reason_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
|
|
@ -115,18 +121,19 @@ public class ViewRemoveTmpMeasures extends TableImpl<ViewRemoveTmpMeasuresRecord
|
|||
|
||||
private ViewRemoveTmpMeasures(Name alias, Table<ViewRemoveTmpMeasuresRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "view_remove_tmp_measures" as SELECT m.remove_tmp_measures_id,
|
||||
(((((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)) + m.count_for_sign) + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_removed) + COALESCE(s.count_removed, (0)::bigint)) AS count_all,
|
||||
(m.count_formed + COALESCE(s.count_formed, (0)::bigint)) AS count_formed,
|
||||
(m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(m.count_signed + COALESCE(s.count_signed, (0)::bigint)) AS count_signed,
|
||||
(m.count_removed + COALESCE(s.count_removed, (0)::bigint)) AS count_removed,
|
||||
COALESCE(round(((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)) + m.count_for_sign) + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_removed) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_formed,
|
||||
COALESCE(round(((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)) + m.count_for_sign) + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_removed) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((m.count_signed + COALESCE(s.count_signed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)) + m.count_for_sign) + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_removed) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_signed,
|
||||
COALESCE(round(((((m.count_removed + COALESCE(s.count_removed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((m.count_formed + COALESCE(s.count_formed, (0)::bigint)) + m.count_for_sign) + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_removed) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_removed
|
||||
create view "view_remove_tmp_measures" as SELECT COALESCE(s.recruitment_id, m.recruitment_id) AS recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) AS summonses_reason_id,
|
||||
(((((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) + COALESCE(m.count_for_sign, (0)::bigint)) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_removed, (0)::bigint)) + COALESCE(s.count_removed, (0)::bigint)) AS count_all,
|
||||
(COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) AS count_formed,
|
||||
(COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(COALESCE(m.count_signed, (0)::bigint) + COALESCE(s.count_signed, (0)::bigint)) AS count_signed,
|
||||
(COALESCE(m.count_removed, (0)::bigint) + COALESCE(s.count_removed, (0)::bigint)) AS count_removed,
|
||||
COALESCE(round(((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) + COALESCE(m.count_for_sign, (0)::bigint)) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_removed, (0)::bigint)) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_formed,
|
||||
COALESCE(round(((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) + COALESCE(m.count_for_sign, (0)::bigint)) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_removed, (0)::bigint)) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((COALESCE(m.count_signed, (0)::bigint) + COALESCE(s.count_signed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) + COALESCE(m.count_for_sign, (0)::bigint)) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_removed, (0)::bigint)) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_signed,
|
||||
COALESCE(round(((((COALESCE(m.count_removed, (0)::bigint) + COALESCE(s.count_removed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((((COALESCE(m.count_formed, (0)::bigint) + COALESCE(s.count_formed, (0)::bigint)) + COALESCE(m.count_for_sign, (0)::bigint)) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_removed, (0)::bigint)) + COALESCE(s.count_removed, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_removed
|
||||
FROM (summonses_list.remove_tmp_measures m
|
||||
LEFT JOIN ( SELECT DISTINCT ON (remove_tmp_measures_storage.recruitment_id, remove_tmp_measures_storage.summonses_reason_id, remove_tmp_measures_storage.info_date) remove_tmp_measures_storage.recruitment_id,
|
||||
FULL JOIN ( SELECT DISTINCT ON (remove_tmp_measures_storage.recruitment_id, remove_tmp_measures_storage.summonses_reason_id, remove_tmp_measures_storage.info_date) remove_tmp_measures_storage.recruitment_id,
|
||||
remove_tmp_measures_storage.summonses_reason_id,
|
||||
remove_tmp_measures_storage.info_date,
|
||||
remove_tmp_measures_storage.count_formed,
|
||||
|
|
@ -134,7 +141,7 @@ public class ViewRemoveTmpMeasures extends TableImpl<ViewRemoveTmpMeasuresRecord
|
|||
remove_tmp_measures_storage.count_signed,
|
||||
remove_tmp_measures_storage.count_removed
|
||||
FROM summonses_list.remove_tmp_measures_storage
|
||||
ORDER BY remove_tmp_measures_storage.recruitment_id, remove_tmp_measures_storage.summonses_reason_id, remove_tmp_measures_storage.info_date, remove_tmp_measures_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id) AND (m.info_date = s.info_date))));
|
||||
ORDER BY remove_tmp_measures_storage.recruitment_id, remove_tmp_measures_storage.summonses_reason_id, remove_tmp_measures_storage.info_date, remove_tmp_measures_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id))));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,9 +50,15 @@ public class ViewRfLeavingBan extends TableImpl<ViewRfLeavingBanRecord> {
|
|||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
* <code>summonses_list.view_rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, Long> RF_LEAVING_BAN_ID = createField(DSL.name("rf_leaving_ban_id"), SQLDataType.BIGINT, this, "");
|
||||
public final TableField<ViewRfLeavingBanRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* The column
|
||||
* <code>summonses_list.view_rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public final TableField<ViewRfLeavingBanRecord, Long> SUMMONSES_REASON_ID = createField(DSL.name("summonses_reason_id"), SQLDataType.BIGINT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
|
|
@ -98,23 +104,24 @@ public class ViewRfLeavingBan extends TableImpl<ViewRfLeavingBanRecord> {
|
|||
|
||||
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 m.rf_leaving_ban_id,
|
||||
(((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)) AS count_all,
|
||||
(m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(m.count_signed + COALESCE(s.count_signed, (0)::bigint)) AS count_signed,
|
||||
(m.count_enter + COALESCE(s.count_enter, (0)::bigint)) AS count_enter,
|
||||
COALESCE(round(((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((m.count_signed + COALESCE(s.count_signed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_signed,
|
||||
COALESCE(round(((((m.count_enter + COALESCE(s.count_enter, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((m.count_for_sign + COALESCE(s.count_for_sign, (0)::bigint)) + m.count_signed) + COALESCE(s.count_signed, (0)::bigint)) + m.count_enter) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_enter
|
||||
create view "view_rf_leaving_ban" as SELECT COALESCE(s.recruitment_id, m.recruitment_id) AS recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) AS summonses_reason_id,
|
||||
(((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)) AS count_all,
|
||||
(COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) AS count_for_sign,
|
||||
(COALESCE(m.count_signed, (0)::bigint) + COALESCE(s.count_signed, (0)::bigint)) AS count_signed,
|
||||
(COALESCE(m.count_enter, (0)::bigint) + COALESCE(s.count_enter, (0)::bigint)) AS count_enter,
|
||||
COALESCE(round(((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_for_sign,
|
||||
COALESCE(round(((((COALESCE(m.count_signed, (0)::bigint) + COALESCE(s.count_signed, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_signed,
|
||||
COALESCE(round(((((COALESCE(m.count_enter, (0)::bigint) + COALESCE(s.count_enter, (0)::bigint)))::numeric * 100.0) / (NULLIF((((((COALESCE(m.count_for_sign, (0)::bigint) + COALESCE(s.count_for_sign, (0)::bigint)) + COALESCE(m.count_signed, (0)::bigint)) + COALESCE(s.count_signed, (0)::bigint)) + COALESCE(m.count_enter, (0)::bigint)) + COALESCE(s.count_enter, (0)::bigint)), 0))::numeric)), (0)::numeric) AS percent_enter
|
||||
FROM (summonses_list.rf_leaving_ban m
|
||||
LEFT JOIN ( SELECT DISTINCT ON (rf_leaving_ban_storage.recruitment_id, rf_leaving_ban_storage.summonses_reason_id, rf_leaving_ban_storage.info_date) rf_leaving_ban_storage.recruitment_id,
|
||||
FULL JOIN ( SELECT DISTINCT ON (rf_leaving_ban_storage.recruitment_id, rf_leaving_ban_storage.summonses_reason_id, rf_leaving_ban_storage.info_date) rf_leaving_ban_storage.recruitment_id,
|
||||
rf_leaving_ban_storage.summonses_reason_id,
|
||||
rf_leaving_ban_storage.info_date,
|
||||
rf_leaving_ban_storage.count_for_sign,
|
||||
rf_leaving_ban_storage.count_signed,
|
||||
rf_leaving_ban_storage.count_enter
|
||||
FROM summonses_list.rf_leaving_ban_storage
|
||||
ORDER BY rf_leaving_ban_storage.recruitment_id, rf_leaving_ban_storage.summonses_reason_id, rf_leaving_ban_storage.info_date, rf_leaving_ban_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id) AND (m.info_date = s.info_date))));
|
||||
ORDER BY rf_leaving_ban_storage.recruitment_id, rf_leaving_ban_storage.summonses_reason_id, rf_leaving_ban_storage.info_date, rf_leaving_ban_storage.update_date DESC) s ON ((((m.recruitment_id)::text = (s.recruitment_id)::text) AND (m.summonses_reason_id = s.summonses_reason_id))));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,18 +21,34 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_imposition_tmp_measures.imposition_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_imposition_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public void setImpositionTmpMeasuresId(Long value) {
|
||||
public void setRecruitmentId(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_imposition_tmp_measures.imposition_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_imposition_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public Long getImpositionTmpMeasuresId() {
|
||||
return (Long) get(0);
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_imposition_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public void setSummonsesReasonId(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_imposition_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public Long getSummonsesReasonId() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -40,7 +56,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(1, value);
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -48,7 +64,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(1);
|
||||
return (Long) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -56,7 +72,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_for_sign</code>.
|
||||
*/
|
||||
public void setCountForSign(Long value) {
|
||||
set(2, value);
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,7 +80,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_for_sign</code>.
|
||||
*/
|
||||
public Long getCountForSign() {
|
||||
return (Long) get(2);
|
||||
return (Long) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -72,7 +88,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_apply</code>.
|
||||
*/
|
||||
public void setCountApply(Long value) {
|
||||
set(3, value);
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -80,7 +96,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_apply</code>.
|
||||
*/
|
||||
public Long getCountApply() {
|
||||
return (Long) get(3);
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -88,7 +104,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_enter</code>.
|
||||
*/
|
||||
public void setCountEnter(Long value) {
|
||||
set(4, value);
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -96,7 +112,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.count_enter</code>.
|
||||
*/
|
||||
public Long getCountEnter() {
|
||||
return (Long) get(4);
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -104,7 +120,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_for_sign</code>.
|
||||
*/
|
||||
public void setPercentForSign(BigDecimal value) {
|
||||
set(5, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -112,7 +128,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_for_sign</code>.
|
||||
*/
|
||||
public BigDecimal getPercentForSign() {
|
||||
return (BigDecimal) get(5);
|
||||
return (BigDecimal) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +136,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_apply</code>.
|
||||
*/
|
||||
public void setPercentApply(BigDecimal value) {
|
||||
set(6, value);
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -128,7 +144,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_apply</code>.
|
||||
*/
|
||||
public BigDecimal getPercentApply() {
|
||||
return (BigDecimal) get(6);
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -136,7 +152,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_enter</code>.
|
||||
*/
|
||||
public void setPercentEnter(BigDecimal value) {
|
||||
set(7, value);
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -144,7 +160,7 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
* <code>summonses_list.view_imposition_tmp_measures.percent_enter</code>.
|
||||
*/
|
||||
public BigDecimal getPercentEnter() {
|
||||
return (BigDecimal) get(7);
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -161,10 +177,11 @@ public class ViewImpositionTmpMeasuresRecord extends TableRecordImpl<ViewImposit
|
|||
/**
|
||||
* Create a detached, initialised ViewImpositionTmpMeasuresRecord
|
||||
*/
|
||||
public ViewImpositionTmpMeasuresRecord(Long impositionTmpMeasuresId, Long countAll, Long countForSign, Long countApply, Long countEnter, BigDecimal percentForSign, BigDecimal percentApply, BigDecimal percentEnter) {
|
||||
public ViewImpositionTmpMeasuresRecord(String recruitmentId, Long summonsesReasonId, Long countAll, Long countForSign, Long countApply, Long countEnter, BigDecimal percentForSign, BigDecimal percentApply, BigDecimal percentEnter) {
|
||||
super(ViewImpositionTmpMeasures.VIEW_IMPOSITION_TMP_MEASURES);
|
||||
|
||||
setImpositionTmpMeasuresId(impositionTmpMeasuresId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setSummonsesReasonId(summonsesReasonId);
|
||||
setCountAll(countAll);
|
||||
setCountForSign(countForSign);
|
||||
setCountApply(countApply);
|
||||
|
|
|
|||
|
|
@ -21,18 +21,34 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.info_sent_to_lk_epgu_id</code>.
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.recruitment_id</code>.
|
||||
*/
|
||||
public void setInfoSentToLkEpguId(Long value) {
|
||||
public void setRecruitmentId(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.info_sent_to_lk_epgu_id</code>.
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.recruitment_id</code>.
|
||||
*/
|
||||
public Long getInfoSentToLkEpguId() {
|
||||
return (Long) get(0);
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.summonses_reason_id</code>.
|
||||
*/
|
||||
public void setSummonsesReasonId(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_info_sent_to_lk_epgu.summonses_reason_id</code>.
|
||||
*/
|
||||
public Long getSummonsesReasonId() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -40,7 +56,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_status_formed</code>.
|
||||
*/
|
||||
public void setCountStatusFormed(Long value) {
|
||||
set(1, value);
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -48,7 +64,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_status_formed</code>.
|
||||
*/
|
||||
public Long getCountStatusFormed() {
|
||||
return (Long) get(1);
|
||||
return (Long) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -56,7 +72,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_sended</code>.
|
||||
*/
|
||||
public void setCountSended(Long value) {
|
||||
set(2, value);
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,7 +80,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_sended</code>.
|
||||
*/
|
||||
public Long getCountSended() {
|
||||
return (Long) get(2);
|
||||
return (Long) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -72,7 +88,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_delivered</code>.
|
||||
*/
|
||||
public void setCountDelivered(Long value) {
|
||||
set(3, value);
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -80,7 +96,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_delivered</code>.
|
||||
*/
|
||||
public Long getCountDelivered() {
|
||||
return (Long) get(3);
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -88,7 +104,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_error</code>.
|
||||
*/
|
||||
public void setCountError(Long value) {
|
||||
set(4, value);
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -96,7 +112,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_error</code>.
|
||||
*/
|
||||
public Long getCountError() {
|
||||
return (Long) get(4);
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -104,7 +120,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_viewed</code>.
|
||||
*/
|
||||
public void setCountViewed(Long value) {
|
||||
set(5, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -112,7 +128,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_viewed</code>.
|
||||
*/
|
||||
public Long getCountViewed() {
|
||||
return (Long) get(5);
|
||||
return (Long) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +136,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_not_viewed</code>.
|
||||
*/
|
||||
public void setCountNotViewed(Long value) {
|
||||
set(6, value);
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -128,7 +144,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_not_viewed</code>.
|
||||
*/
|
||||
public Long getCountNotViewed() {
|
||||
return (Long) get(6);
|
||||
return (Long) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -136,7 +152,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_status_not_formed</code>.
|
||||
*/
|
||||
public void setCountStatusNotFormed(Long value) {
|
||||
set(7, value);
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -144,7 +160,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_status_not_formed</code>.
|
||||
*/
|
||||
public Long getCountStatusNotFormed() {
|
||||
return (Long) get(7);
|
||||
return (Long) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -152,7 +168,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_exceeded_send</code>.
|
||||
*/
|
||||
public void setCountExceededSend(Long value) {
|
||||
set(8, value);
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -160,7 +176,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_exceeded_send</code>.
|
||||
*/
|
||||
public Long getCountExceededSend() {
|
||||
return (Long) get(8);
|
||||
return (Long) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -168,7 +184,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_exceeded_delivered</code>.
|
||||
*/
|
||||
public void setCountExceededDelivered(Long value) {
|
||||
set(9, value);
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -176,7 +192,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_exceeded_delivered</code>.
|
||||
*/
|
||||
public Long getCountExceededDelivered() {
|
||||
return (Long) get(9);
|
||||
return (Long) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -184,7 +200,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(10, value);
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -192,7 +208,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(10);
|
||||
return (Long) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -200,7 +216,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_status_formed</code>.
|
||||
*/
|
||||
public void setPercentStatusFormed(BigDecimal value) {
|
||||
set(11, value);
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -208,7 +224,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_status_formed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentStatusFormed() {
|
||||
return (BigDecimal) get(11);
|
||||
return (BigDecimal) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -216,7 +232,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_status_not_formed</code>.
|
||||
*/
|
||||
public void setPercentStatusNotFormed(BigDecimal value) {
|
||||
set(12, value);
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -224,7 +240,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_status_not_formed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentStatusNotFormed() {
|
||||
return (BigDecimal) get(12);
|
||||
return (BigDecimal) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -232,7 +248,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_sended</code>.
|
||||
*/
|
||||
public void setPercentSended(BigDecimal value) {
|
||||
set(13, value);
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -240,7 +256,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_sended</code>.
|
||||
*/
|
||||
public BigDecimal getPercentSended() {
|
||||
return (BigDecimal) get(13);
|
||||
return (BigDecimal) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -248,7 +264,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_delivered</code>.
|
||||
*/
|
||||
public void setPercentDelivered(BigDecimal value) {
|
||||
set(14, value);
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -256,7 +272,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_delivered</code>.
|
||||
*/
|
||||
public BigDecimal getPercentDelivered() {
|
||||
return (BigDecimal) get(14);
|
||||
return (BigDecimal) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -264,7 +280,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_error</code>.
|
||||
*/
|
||||
public void setPercentError(BigDecimal value) {
|
||||
set(15, value);
|
||||
set(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -272,7 +288,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_error</code>.
|
||||
*/
|
||||
public BigDecimal getPercentError() {
|
||||
return (BigDecimal) get(15);
|
||||
return (BigDecimal) get(16);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -280,7 +296,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_viewed</code>.
|
||||
*/
|
||||
public void setPercentViewed(BigDecimal value) {
|
||||
set(16, value);
|
||||
set(17, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -288,7 +304,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_viewed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentViewed() {
|
||||
return (BigDecimal) get(16);
|
||||
return (BigDecimal) get(17);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -296,7 +312,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_not_viewed</code>.
|
||||
*/
|
||||
public void setPercentNotViewed(BigDecimal value) {
|
||||
set(17, value);
|
||||
set(18, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -304,7 +320,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_not_viewed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentNotViewed() {
|
||||
return (BigDecimal) get(17);
|
||||
return (BigDecimal) get(18);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -312,7 +328,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_exceeded_send</code>.
|
||||
*/
|
||||
public void setPercentExceededSend(BigDecimal value) {
|
||||
set(18, value);
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -320,7 +336,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_exceeded_send</code>.
|
||||
*/
|
||||
public BigDecimal getPercentExceededSend() {
|
||||
return (BigDecimal) get(18);
|
||||
return (BigDecimal) get(19);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -328,7 +344,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_exceeded_delivered</code>.
|
||||
*/
|
||||
public void setPercentExceededDelivered(BigDecimal value) {
|
||||
set(19, value);
|
||||
set(20, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -336,7 +352,7 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
* <code>summonses_list.view_info_sent_to_lk_epgu.percent_exceeded_delivered</code>.
|
||||
*/
|
||||
public BigDecimal getPercentExceededDelivered() {
|
||||
return (BigDecimal) get(19);
|
||||
return (BigDecimal) get(20);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -353,10 +369,11 @@ public class ViewInfoSentToLkEpguRecord extends TableRecordImpl<ViewInfoSentToLk
|
|||
/**
|
||||
* Create a detached, initialised ViewInfoSentToLkEpguRecord
|
||||
*/
|
||||
public ViewInfoSentToLkEpguRecord(Long infoSentToLkEpguId, Long countStatusFormed, Long countSended, Long countDelivered, Long countError, Long countViewed, Long countNotViewed, Long countStatusNotFormed, Long countExceededSend, Long countExceededDelivered, Long countAll, BigDecimal percentStatusFormed, BigDecimal percentStatusNotFormed, BigDecimal percentSended, BigDecimal percentDelivered, BigDecimal percentError, BigDecimal percentViewed, BigDecimal percentNotViewed, BigDecimal percentExceededSend, BigDecimal percentExceededDelivered) {
|
||||
public ViewInfoSentToLkEpguRecord(String recruitmentId, Long summonsesReasonId, Long countStatusFormed, Long countSended, Long countDelivered, Long countError, Long countViewed, Long countNotViewed, Long countStatusNotFormed, Long countExceededSend, Long countExceededDelivered, Long countAll, BigDecimal percentStatusFormed, BigDecimal percentStatusNotFormed, BigDecimal percentSended, BigDecimal percentDelivered, BigDecimal percentError, BigDecimal percentViewed, BigDecimal percentNotViewed, BigDecimal percentExceededSend, BigDecimal percentExceededDelivered) {
|
||||
super(ViewInfoSentToLkEpgu.VIEW_INFO_SENT_TO_LK_EPGU);
|
||||
|
||||
setInfoSentToLkEpguId(infoSentToLkEpguId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setSummonsesReasonId(summonsesReasonId);
|
||||
setCountStatusFormed(countStatusFormed);
|
||||
setCountSended(countSended);
|
||||
setCountDelivered(countDelivered);
|
||||
|
|
|
|||
|
|
@ -21,18 +21,34 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_remove_tmp_measures.remove_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_remove_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public void setRemoveTmpMeasuresId(Long value) {
|
||||
public void setRecruitmentId(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_remove_tmp_measures.remove_tmp_measures_id</code>.
|
||||
* <code>summonses_list.view_remove_tmp_measures.recruitment_id</code>.
|
||||
*/
|
||||
public Long getRemoveTmpMeasuresId() {
|
||||
return (Long) get(0);
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_remove_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public void setSummonsesReasonId(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_remove_tmp_measures.summonses_reason_id</code>.
|
||||
*/
|
||||
public Long getSummonsesReasonId() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -40,7 +56,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(1, value);
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -48,7 +64,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(1);
|
||||
return (Long) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -56,7 +72,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_formed</code>.
|
||||
*/
|
||||
public void setCountFormed(Long value) {
|
||||
set(2, value);
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,7 +80,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_formed</code>.
|
||||
*/
|
||||
public Long getCountFormed() {
|
||||
return (Long) get(2);
|
||||
return (Long) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -72,7 +88,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_for_sign</code>.
|
||||
*/
|
||||
public void setCountForSign(Long value) {
|
||||
set(3, value);
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -80,7 +96,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_for_sign</code>.
|
||||
*/
|
||||
public Long getCountForSign() {
|
||||
return (Long) get(3);
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -88,7 +104,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_signed</code>.
|
||||
*/
|
||||
public void setCountSigned(Long value) {
|
||||
set(4, value);
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -96,7 +112,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_signed</code>.
|
||||
*/
|
||||
public Long getCountSigned() {
|
||||
return (Long) get(4);
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -104,7 +120,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_removed</code>.
|
||||
*/
|
||||
public void setCountRemoved(Long value) {
|
||||
set(5, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -112,7 +128,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.count_removed</code>.
|
||||
*/
|
||||
public Long getCountRemoved() {
|
||||
return (Long) get(5);
|
||||
return (Long) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,7 +136,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_formed</code>.
|
||||
*/
|
||||
public void setPercentFormed(BigDecimal value) {
|
||||
set(6, value);
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -128,7 +144,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_formed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentFormed() {
|
||||
return (BigDecimal) get(6);
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -136,7 +152,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_for_sign</code>.
|
||||
*/
|
||||
public void setPercentForSign(BigDecimal value) {
|
||||
set(7, value);
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -144,7 +160,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_for_sign</code>.
|
||||
*/
|
||||
public BigDecimal getPercentForSign() {
|
||||
return (BigDecimal) get(7);
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -152,7 +168,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_signed</code>.
|
||||
*/
|
||||
public void setPercentSigned(BigDecimal value) {
|
||||
set(8, value);
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -160,7 +176,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_signed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentSigned() {
|
||||
return (BigDecimal) get(8);
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -168,7 +184,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_removed</code>.
|
||||
*/
|
||||
public void setPercentRemoved(BigDecimal value) {
|
||||
set(9, value);
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -176,7 +192,7 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
* <code>summonses_list.view_remove_tmp_measures.percent_removed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentRemoved() {
|
||||
return (BigDecimal) get(9);
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -193,10 +209,11 @@ public class ViewRemoveTmpMeasuresRecord extends TableRecordImpl<ViewRemoveTmpMe
|
|||
/**
|
||||
* Create a detached, initialised ViewRemoveTmpMeasuresRecord
|
||||
*/
|
||||
public ViewRemoveTmpMeasuresRecord(Long removeTmpMeasuresId, Long countAll, Long countFormed, Long countForSign, Long countSigned, Long countRemoved, BigDecimal percentFormed, BigDecimal percentForSign, BigDecimal percentSigned, BigDecimal percentRemoved) {
|
||||
public ViewRemoveTmpMeasuresRecord(String recruitmentId, Long summonsesReasonId, Long countAll, Long countFormed, Long countForSign, Long countSigned, Long countRemoved, BigDecimal percentFormed, BigDecimal percentForSign, BigDecimal percentSigned, BigDecimal percentRemoved) {
|
||||
super(ViewRemoveTmpMeasures.VIEW_REMOVE_TMP_MEASURES);
|
||||
|
||||
setRemoveTmpMeasuresId(removeTmpMeasuresId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setSummonsesReasonId(summonsesReasonId);
|
||||
setCountAll(countAll);
|
||||
setCountFormed(countFormed);
|
||||
setCountForSign(countForSign);
|
||||
|
|
|
|||
|
|
@ -21,32 +21,48 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
* <code>summonses_list.view_rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public void setRfLeavingBanId(Long value) {
|
||||
public void setRecruitmentId(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.rf_leaving_ban_id</code>.
|
||||
* <code>summonses_list.view_rf_leaving_ban.recruitment_id</code>.
|
||||
*/
|
||||
public Long getRfLeavingBanId() {
|
||||
return (Long) get(0);
|
||||
public String getRecruitmentId() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public void setSummonsesReasonId(Long value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for
|
||||
* <code>summonses_list.view_rf_leaving_ban.summonses_reason_id</code>.
|
||||
*/
|
||||
public Long getSummonsesReasonId() {
|
||||
return (Long) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
*/
|
||||
public void setCountAll(Long value) {
|
||||
set(1, value);
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.count_all</code>.
|
||||
*/
|
||||
public Long getCountAll() {
|
||||
return (Long) get(1);
|
||||
return (Long) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -54,7 +70,7 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.count_for_sign</code>.
|
||||
*/
|
||||
public void setCountForSign(Long value) {
|
||||
set(2, value);
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -62,35 +78,35 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.count_for_sign</code>.
|
||||
*/
|
||||
public Long getCountForSign() {
|
||||
return (Long) get(2);
|
||||
return (Long) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.count_signed</code>.
|
||||
*/
|
||||
public void setCountSigned(Long value) {
|
||||
set(3, value);
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.count_signed</code>.
|
||||
*/
|
||||
public Long getCountSigned() {
|
||||
return (Long) get(3);
|
||||
return (Long) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.count_enter</code>.
|
||||
*/
|
||||
public void setCountEnter(Long value) {
|
||||
set(4, value);
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.count_enter</code>.
|
||||
*/
|
||||
public Long getCountEnter() {
|
||||
return (Long) get(4);
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,7 +114,7 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.percent_for_sign</code>.
|
||||
*/
|
||||
public void setPercentForSign(BigDecimal value) {
|
||||
set(5, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -106,7 +122,7 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.percent_for_sign</code>.
|
||||
*/
|
||||
public BigDecimal getPercentForSign() {
|
||||
return (BigDecimal) get(5);
|
||||
return (BigDecimal) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -114,7 +130,7 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.percent_signed</code>.
|
||||
*/
|
||||
public void setPercentSigned(BigDecimal value) {
|
||||
set(6, value);
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -122,21 +138,21 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
* <code>summonses_list.view_rf_leaving_ban.percent_signed</code>.
|
||||
*/
|
||||
public BigDecimal getPercentSigned() {
|
||||
return (BigDecimal) get(6);
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>summonses_list.view_rf_leaving_ban.percent_enter</code>.
|
||||
*/
|
||||
public void setPercentEnter(BigDecimal value) {
|
||||
set(7, value);
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>summonses_list.view_rf_leaving_ban.percent_enter</code>.
|
||||
*/
|
||||
public BigDecimal getPercentEnter() {
|
||||
return (BigDecimal) get(7);
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -153,10 +169,11 @@ public class ViewRfLeavingBanRecord extends TableRecordImpl<ViewRfLeavingBanReco
|
|||
/**
|
||||
* Create a detached, initialised ViewRfLeavingBanRecord
|
||||
*/
|
||||
public ViewRfLeavingBanRecord(Long rfLeavingBanId, Long countAll, Long countForSign, Long countSigned, Long countEnter, BigDecimal percentForSign, BigDecimal percentSigned, BigDecimal percentEnter) {
|
||||
public ViewRfLeavingBanRecord(String recruitmentId, Long summonsesReasonId, Long countAll, Long countForSign, Long countSigned, Long countEnter, BigDecimal percentForSign, BigDecimal percentSigned, BigDecimal percentEnter) {
|
||||
super(ViewRfLeavingBan.VIEW_RF_LEAVING_BAN);
|
||||
|
||||
setRfLeavingBanId(rfLeavingBanId);
|
||||
setRecruitmentId(recruitmentId);
|
||||
setSummonsesReasonId(summonsesReasonId);
|
||||
setCountAll(countAll);
|
||||
setCountForSign(countForSign);
|
||||
setCountSigned(countSigned);
|
||||
|
|
|
|||
240
backend/src/main/resources/config/v_1.0/20251114-view.xml
Normal file
240
backend/src/main/resources/config/v_1.0/20251114-view.xml
Normal file
|
|
@ -0,0 +1,240 @@
|
|||
<?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="absatarov">
|
||||
<comment>edit</comment>
|
||||
<sql>
|
||||
|
||||
|
||||
drop view summonses_list.view_imposition_tmp_measures;
|
||||
|
||||
CREATE OR REPLACE VIEW summonses_list.view_imposition_tmp_measures AS
|
||||
SELECT
|
||||
COALESCE(s.recruitment_id, m.recruitment_id) as recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) as summonses_reason_id,
|
||||
|
||||
(COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)) AS count_all,
|
||||
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) as count_for_sign,
|
||||
COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0) as count_apply,
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0) as count_enter,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_for_sign,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_apply,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_apply, 0) + COALESCE(s.count_apply, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_enter
|
||||
|
||||
FROM summonses_list.imposition_tmp_measures m
|
||||
FULL OUTER JOIN (
|
||||
SELECT DISTINCT ON (recruitment_id, summonses_reason_id, info_date)
|
||||
recruitment_id, summonses_reason_id, info_date,
|
||||
count_for_sign, count_apply, count_enter
|
||||
FROM summonses_list.imposition_tmp_measures_storage
|
||||
ORDER BY recruitment_id, summonses_reason_id, info_date, update_date DESC
|
||||
) s ON m.recruitment_id = s.recruitment_id
|
||||
AND m.summonses_reason_id = s.summonses_reason_id;
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="0002" author="absatarov">
|
||||
<comment>edit</comment>
|
||||
<sql>
|
||||
|
||||
|
||||
drop view summonses_list.view_rf_leaving_ban;
|
||||
|
||||
CREATE OR REPLACE VIEW summonses_list.view_rf_leaving_ban AS
|
||||
SELECT
|
||||
COALESCE(s.recruitment_id, m.recruitment_id) as recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) as summonses_reason_id,
|
||||
|
||||
(COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)) AS count_all,
|
||||
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) as count_for_sign,
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) as count_signed,
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0) as count_enter,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_for_sign,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_signed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_enter, 0) + COALESCE(s.count_enter, 0)), 0)), 0) AS percent_enter
|
||||
|
||||
FROM summonses_list.rf_leaving_ban m
|
||||
FULL OUTER JOIN (
|
||||
SELECT DISTINCT ON (recruitment_id, summonses_reason_id, info_date)
|
||||
recruitment_id, summonses_reason_id, info_date,
|
||||
count_for_sign, count_signed, count_enter
|
||||
FROM summonses_list.rf_leaving_ban_storage
|
||||
ORDER BY recruitment_id, summonses_reason_id, info_date, update_date DESC
|
||||
) s ON m.recruitment_id = s.recruitment_id
|
||||
AND m.summonses_reason_id = s.summonses_reason_id;
|
||||
|
||||
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="0003" author="absatarov">
|
||||
<comment>edit</comment>
|
||||
<sql>
|
||||
|
||||
|
||||
drop view summonses_list.view_remove_tmp_measures;
|
||||
CREATE OR REPLACE VIEW summonses_list.view_remove_tmp_measures AS
|
||||
SELECT
|
||||
COALESCE(s.recruitment_id, m.recruitment_id) as recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) as summonses_reason_id,
|
||||
|
||||
(COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) +
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)) AS count_all,
|
||||
|
||||
COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) as count_formed,
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) as count_for_sign,
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) as count_signed,
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0) as count_removed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) +
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)), 0)), 0) AS percent_formed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) +
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)), 0)), 0) AS percent_for_sign,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) +
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)), 0)), 0) AS percent_signed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_formed, 0) + COALESCE(s.count_formed, 0) +
|
||||
COALESCE(m.count_for_sign, 0) + COALESCE(s.count_for_sign, 0) +
|
||||
COALESCE(m.count_signed, 0) + COALESCE(s.count_signed, 0) +
|
||||
COALESCE(m.count_removed, 0) + COALESCE(s.count_removed, 0)), 0)), 0) AS percent_removed
|
||||
|
||||
FROM summonses_list.remove_tmp_measures m
|
||||
FULL OUTER JOIN (
|
||||
SELECT DISTINCT ON (recruitment_id, summonses_reason_id, info_date)
|
||||
recruitment_id, summonses_reason_id, info_date,
|
||||
count_formed, count_for_sign, count_signed, count_removed
|
||||
FROM summonses_list.remove_tmp_measures_storage
|
||||
ORDER BY recruitment_id, summonses_reason_id, info_date, update_date DESC
|
||||
) s ON m.recruitment_id = s.recruitment_id
|
||||
AND m.summonses_reason_id = s.summonses_reason_id;
|
||||
|
||||
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="0004" author="absatarov">
|
||||
<comment>edit</comment>
|
||||
<sql>
|
||||
drop view summonses_list.view_info_sent_to_lk_epgu;
|
||||
|
||||
CREATE OR REPLACE VIEW summonses_list.view_info_sent_to_lk_epgu AS
|
||||
SELECT
|
||||
COALESCE(s.recruitment_id, m.recruitment_id) as recruitment_id,
|
||||
COALESCE(s.summonses_reason_id, m.summonses_reason_id) as summonses_reason_id,
|
||||
|
||||
-- Суммарные значения счетчиков
|
||||
COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) as count_status_formed,
|
||||
COALESCE(m.count_sended, 0) + COALESCE(s.count_sended, 0) as count_sended,
|
||||
COALESCE(m.count_delivered, 0) + COALESCE(s.count_delivered, 0) as count_delivered,
|
||||
COALESCE(m.count_error, 0) + COALESCE(s.count_error, 0) as count_error,
|
||||
COALESCE(m.count_viewed, 0) + COALESCE(s.count_viewed, 0) as count_viewed,
|
||||
COALESCE(m.count_not_viewed, 0) + COALESCE(s.count_not_viewed, 0) as count_not_viewed,
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0) as count_status_not_formed,
|
||||
COALESCE(m.count_exceeded_send, 0) + COALESCE(s.count_exceeded_send, 0) as count_exceeded_send,
|
||||
COALESCE(m.count_exceeded_delivered, 0) + COALESCE(s.count_exceeded_delivered, 0) as count_exceeded_delivered,
|
||||
|
||||
-- Общее количество (основа для расчета процентов)
|
||||
(COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)) AS count_all,
|
||||
|
||||
-- Расчет процентов
|
||||
COALESCE(round((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_status_formed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_status_not_formed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_sended, 0) + COALESCE(s.count_sended, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_sended,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_delivered, 0) + COALESCE(s.count_delivered, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_delivered,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_error, 0) + COALESCE(s.count_error, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_error,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_viewed, 0) + COALESCE(s.count_viewed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_viewed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_not_viewed, 0) + COALESCE(s.count_not_viewed, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_not_viewed,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_exceeded_send, 0) + COALESCE(s.count_exceeded_send, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_exceeded_send,
|
||||
|
||||
COALESCE(round((COALESCE(m.count_exceeded_delivered, 0) + COALESCE(s.count_exceeded_delivered, 0)) * 100.0 /
|
||||
NULLIF((COALESCE(m.count_status_formed, 0) + COALESCE(s.count_status_formed, 0) +
|
||||
COALESCE(m.count_status_not_formed, 0) + COALESCE(s.count_status_not_formed, 0)), 0)), 0) AS percent_exceeded_delivered
|
||||
|
||||
FROM summonses_list.info_sent_to_lk_epgu m
|
||||
FULL OUTER JOIN (
|
||||
SELECT DISTINCT ON (recruitment_id, summonses_reason_id, info_date)
|
||||
recruitment_id, summonses_reason_id, info_date,
|
||||
count_status_formed, count_sended, count_delivered, count_error,
|
||||
count_viewed, count_not_viewed, count_status_not_formed,
|
||||
count_exceeded_send, count_exceeded_delivered
|
||||
FROM summonses_list.info_sent_to_lk_epgu_storage
|
||||
ORDER BY recruitment_id, summonses_reason_id, info_date, update_date DESC
|
||||
) s ON m.recruitment_id = s.recruitment_id
|
||||
AND m.summonses_reason_id = s.summonses_reason_id
|
||||
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
|
@ -39,5 +39,6 @@
|
|||
<include file="20250530-SUPPORT-9212_idmv3.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20250815-view_fix.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20250821-last_recording_date.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20251111-create_tables_for_summons_list.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20251111-create_tables_for_summons_list.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20251114-view.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
Loading…
Add table
Add a link
Reference in a new issue