-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(26, '职称管理', '6', '8', 'titles', NULL, 1, 0, 'M', '0', '0', '', 'titles', 'admin', sysdate(), '', null, '职称管理菜单');


insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(177, '职称信息', '26', '1', 'info', 'oa/titles/info', 1, 0, 'C', '0', '0', 'oa:title:list', 'titles', 'admin', sysdate(), '', null, '职称信息菜单');


insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(178, '评审记录', '26', '2', 'eval', 'oa/titles/record', 1, 0, 'C', '0', '0', 'oa:title:list', 'form', 'admin', sysdate(), '', null, '职称评审菜单');



-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1260, '职称评审查询', 177, '1',  '#', '', 1, 0, 'F', '0', '0', 'oa:title:query',        '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1261, '职称评审新增', 177, '2',  '#', '', 1, 0, 'F', '0', '0', 'oa:title:add',          '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1262, '职称评审修改', 177, '3',  '#', '', 1, 0, 'F', '0', '0', 'oa:title:edit',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1263, '职称评审删除', 177, '4',  '#', '', 1, 0, 'F', '0', '0', 'oa:title:remove',       '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1264, '职称评审导出', 177, '5',  '#', '', 1, 0, 'F', '0', '0', 'oa:title:export',       '#', 'admin', sysdate(), '', null, '');


update act_re_procdef set ID_ = 'staff_wage:1:7028', DEPLOYMENT_ID_ = 7025 where ID_ = 'staff_wage:1:9004';

delete from act_ge_bytearray where ID_ = 9002;
delete from act_ge_bytearray where ID_ = 9003;
delete from act_re_deployment where ID_ = 9001;
INSERT INTO `cmc_oa`.`act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) VALUES ('7025', '绩效审批', 'assess', NULL, '', '2024-09-23 10:36:09.057', NULL, NULL, '7025', NULL);
INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('7026', 1, '绩效审批.bpmn', '7025', [encoded data, 10382 characters], 0);
INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('7027', 1, '绩效审批.staff_wage.png', '7025', [encoded data, 21552 characters], 1);

UPDATE `cmc_oa`.`sys_deploy_form` SET `form_id` = 1021, `deploy_id` = '7025' WHERE `id` = 2025;

update act_re_procdef set ID_ = 'procure_approval:1:6008', DEPLOYMENT_ID_ = 6005 where ID_ = 'procure_approval:1:8004';

delete from act_ge_bytearray where ID_ = 8002;
delete from act_ge_bytearray where ID_ = 8003;
delete from act_re_deployment where ID_ = 8001;
INSERT INTO `cmc_oa`.`act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) VALUES ('6005', '采购审批', 'oa', NULL, '', '2024-09-18 14:15:33.400', NULL, NULL, '6005', NULL);
INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('6006', 1, '采购审批.bpmn', '6005', [encoded data, 9868 characters], 0);
INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('6007', 1, '采购审批.procure_approval.png', '6005', [encoded data, 21894 characters], 1);
UPDATE `cmc_oa`.`sys_deploy_form` SET `form_id` = 1019, `deploy_id` = '6005' WHERE `id` = 2023;
INSERT INTO `cmc_oa`.`act_re_deployment` (`ID_`, `NAME_`, `CATEGORY_`, `KEY_`, `TENANT_ID_`, `DEPLOY_TIME_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `PARENT_DEPLOYMENT_ID_`, `ENGINE_VERSION_`) VALUES ('8001', '职称评审', 'oa', NULL, '', '2025-08-18 11:33:00.036', NULL, NULL, '8001', NULL);
INSERT INTO `cmc_oa`.`act_re_procdef` (`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`, `DERIVED_FROM_`, `DERIVED_FROM_ROOT_`, `DERIVED_VERSION_`) VALUES ('title_eval:1:8004', 2, 'oa', '职称评审', 'title_eval', 1, '8001', '职称评审.bpmn', '职称评审.title_eval.png', NULL, 0, 1, 1, '', NULL, NULL, NULL, 0);

INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('8002', 1, '职称评审.bpmn', '8001', [encoded data, 9310 characters], 0);
INSERT INTO `cmc_oa`.`act_ge_bytearray` (`ID_`, `REV_`, `NAME_`, `DEPLOYMENT_ID_`, `BYTES_`, `GENERATED_`) VALUES ('8003', 1, '职称评审.title_eval.png', '8001', [encoded data, 15432 characters], 1);
INSERT INTO `cmc_oa`.`sys_deploy_form` (`id`, `form_id`, `deploy_id`) VALUES (2036, 1025, '8001');
INSERT INTO `cmc_oa`.`sys_form` (`form_id`, `form_name`, `form_content`, `create_time`, `update_time`, `create_by`, `update_by`, `remark`) VALUES (1025, '职称评审表', '{}', '2025-08-18 11:36:21', NULL, NULL, NULL, NULL);
