Commit 44d3f317 authored by Kristel Meikas's avatar Kristel Meikas
Browse files

TEIS-2177: added classifier definitions and items for drivers inspection

parent 3719354d
theGroup=ee.sm.ti.teis
theVersion=1.24.0-SNAPSHOT
commonsVersion=1.25.0
commonsVersion=1.26.0-SNAPSHOT
officeApiGatewayVersion=1.25.0
schedulerVersion=1.15.0
pluginVersion=1.3.0
--liquibase formatted sql
--changeset kristel:2021-05-31.TEIS-2177.add-drivers-inspections-classifier-data.sql
INSERT INTO classifier_definition (id, default_value, name, editable, hierarchical, ordered, object_status, created_at) VALUES
('DRIVERS_INSPECTION_STATUS', 'PENDING', 'Sõidukijuhtide järelevalve staatus', false, false, true, 'CURRENT', now()),
('DRIVERS_INSPECTION_FILE_STATUS', 'PENDING', 'Sõidukijuhtide järelevalve raames üles laaditava faili töötlemise staatus', false, false, true, 'CURRENT', now()),
('DRIVERS_VIOLATION_STATUS', 'PENDING', 'Sõidukijuhtide tööaja nõuetest kõrvalekaldumise staatus', false, false, true, 'CURRENT', now());
INSERT INTO classifier_item (id, code, classifier_definition_id, upper_classifier_item_id, name, seq_no, editable, valid_from, valid_until, object_status, created_at) VALUES
('DRIVERS_INSPECTION_STATUS__PENDING', 'PENDING', 'DRIVERS_INSPECTION_STATUS', null, 'Kõrvalekalded sisestamisel', 1, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_STATUS__IN_PROGRESS', 'IN_PROGRESS', 'DRIVERS_INSPECTION_STATUS', null, 'Kõrvalekalded põhjendamisel', 2, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_STATUS__UNDER_REVIEW', 'UNDER_REVIEW', 'DRIVERS_INSPECTION_STATUS', null, 'Põhjendused kontrollimisel', 3, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_STATUS__CLOSED', 'CLOSED', 'DRIVERS_INSPECTION_STATUS', null, 'Lõpetatud', 4, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_FILE_STATUS__PENDING', 'PENDING', 'DRIVERS_INSPECTION_FILE_STATUS', null, 'Fail on töötlemise ootel', 1, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_FILE_STATUS__IN_PROGRESS', 'IN_PROGRESS', 'DRIVERS_INSPECTION_FILE_STATUS', null, 'Fail on töötlemisel', 2, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_FILE_STATUS__COMPLETED', 'COMPLETED', 'DRIVERS_INSPECTION_FILE_STATUS', null, 'Faili töötlemine on lõpetatud', 3, false, now(), null, 'CURRENT', now()),
('DRIVERS_INSPECTION_FILE_STATUS__ERRORS', 'ERRORS', 'DRIVERS_INSPECTION_FILE_STATUS', null, 'Faili töötlemisel tekkisid vead', 4, false, now(), null, 'CURRENT', now()),
('DRIVERS_VIOLATION_STATUS__NOT_JUSTIFIED', 'NOT_JUSTIFIED', 'DRIVERS_VIOLATION_STATUS', null, 'Põhjendust pole, põhjendamata', 1, false, now(), null, 'CURRENT', now()),
('DRIVERS_VIOLATION_STATUS__PENDING', 'PENDING', 'DRIVERS_VIOLATION_STATUS', null, 'Põhjendus sisestatud', 2, false, now(), null, 'CURRENT', now()),
('DRIVERS_VIOLATION_STATUS__ACCEPTED', 'ACCEPTED', 'DRIVERS_VIOLATION_STATUS', null, 'Põhjendus kinnitatud', 3, false, now(), null, 'CURRENT', now()),
('DRIVERS_VIOLATION_STATUS__DECLINED', 'DECLINED', 'DRIVERS_VIOLATION_STATUS', null, 'Põhjendus tagasi lükatud', 4, false, now(), null, 'CURRENT', now());
INSERT INTO classifier_item(id, code, classifier_definition_id, upper_classifier_item_id, name, seq_no, editable, valid_from, valid_until, object_status, created_at) VALUES
('OBJECT_TYPE__DRIVERS_INSPECTION_FILE', 'DRIVERS_INSPECTION_FILE', 'OBJECT_TYPE', null, 'Sõidukijuhtide kontrolli fail', 16, false, now(), null, 'CURRENT', now()),
('INSPECTION_TOPIC__SOIDUKIJUHID', 'SOIDUKIJUHID', 'INSPECTION_TOPIC', null, 'Sõidukijuhtide järelevalve', 1000, false, now(), null, 'CURRENT', now()),
('INSPECTION_DOCUMENT__SOIDUMEERIK', 'SOIDUMEERIK', 'INSPECTION_DOCUMENT', null, 'Sõidumeeriku failid', 1001, false, now(), null, 'CURRENT', now());
UPDATE execution_trigger SET execute = true WHERE id = 'cache-reinitialize';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment