77 lines
7.9 KiB
SQL
77 lines
7.9 KiB
SQL
ALTER TABLE `tb_member_project`
|
|
MODIFY COLUMN `project_name` varchar(50) COMMENT '标协会员项目',
|
|
ADD COLUMN `charge_standard` decimal(12, 2) COMMENT '收费标准',
|
|
ADD COLUMN `charge_notice_no` varchar(150) COMMENT '收费通知号',
|
|
ADD COLUMN `charge_notice_file_id` varchar(500) COMMENT '收费通知文件id',
|
|
ADD COLUMN `council_charge_standard` decimal(12, 2) COMMENT '理事会收费标准',
|
|
ADD COLUMN `council_charge_notice_no` varchar(150) COMMENT '理事会收费通知号',
|
|
ADD COLUMN `council_charge_notice_file_id` varchar(500) COMMENT '理事会收费通知文件id',
|
|
ADD COLUMN `remark` varchar(600) COMMENT '备注';
|
|
|
|
# 会员状态字典
|
|
DELETE FROM sys_dict_item WHERE id='1433258355958185986';
|
|
UPDATE sys_dict SET description='会员状态(2-未缴费 3-已缴费;4-已过期)' WHERE id='1433258288161456129' AND del_flag=0;
|
|
|
|
ALTER TABLE `tb_member_project_subitem`
|
|
add column contract_num varchar(50) comment '合同编号',
|
|
add column charge_notice_no varchar(150) comment '收费通知号',
|
|
add column charge_notice_id varchar(500) comment '收费通知文件id',
|
|
add column remark varchar(600) comment '备注',
|
|
add column estimated_arrival_date datetime comment '预估到账日期',
|
|
add column effective_date date comment '生效日期',
|
|
add column invalidation_date date comment '失效日期',
|
|
add column ticket_collection tinyint(1) comment '提票';
|
|
|
|
|
|
-- auto-generated definition
|
|
create table tb_member_project_file
|
|
(
|
|
id varchar(36) not null
|
|
primary key,
|
|
create_by varchar(50) null comment '创建人',
|
|
create_time datetime null comment '创建日期',
|
|
update_by varchar(50) null comment '更新人',
|
|
update_time datetime null comment '更新日期',
|
|
project_id varchar(50) null comment '项目id',
|
|
file_id varchar(32) null comment '文件id'
|
|
)
|
|
comment '标协会员项目其他资料';
|
|
|
|
create index Index_1
|
|
on tb_member_project_file (project_id);
|
|
|
|
-- sys_permission表 工作组成员维护-调账按钮权限
|
|
INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1763033213871173633', '1430718058514440194', '调账', NULL, NULL, NULL, NULL, 2, 'workingGroupMember:editAccount', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'chh', '2024-02-29 10:47:28', NULL, NULL, 0, 0, '1', 0, 1);
|
|
-- sys_permission表 工作组成员维护-批量新增成员单位按钮权限
|
|
INSERT INTO `sys_permission`( id, parent_id, name, perms, perms_type, sort_no, menu_type, is_leaf, is_route, keep_alive, create_by, del_flag, hidden, create_time, status, always_show, internal_or_external, external_terminal_show ) VALUES ( '1765549986109550594', '1430718058514440194', '批量新增成员单位', 'workingGroupMember:batchAdd', '1', 1.0, 2, true, true, false, 'chh', 0, false, '2024-03-07 09:28:13', '1', false, false, true );
|
|
-- sys_permission表 起草组成员维护-批量新增成员单位按钮权限
|
|
INSERT INTO `sys_permission`( id, parent_id, name, perms, perms_type, sort_no, menu_type, is_leaf, is_route, keep_alive, create_by, del_flag, hidden, create_time, status, always_show, internal_or_external, external_terminal_show ) VALUES ( '1765550773875339266', '1736668960149286914', '批量新增成员单位', 'draftingGroupMember:batchAdd', '1', 1.0, 2, true, true, false, 'chh', 0, false, '2024-03-07 09:31:21', '1', false, false, true );
|
|
-- sys_permission表 企业管理-是否打包企业按钮权限
|
|
INSERT INTO sys_permission ( id, parent_id, name, perms, perms_type, sort_no, menu_type, is_leaf, is_route, keep_alive, create_by, del_flag, hidden, create_time, status, always_show, internal_or_external, external_terminal_show ) VALUES ( '1765573709906612225', '1430376267109978113', '是否打包企业', 'company:updatePackageEnterprise', '1', 1.0, 2, true, true, false, 'chh', 0, false, '2024-03-07 11:02:29', '1', false, false, true )
|
|
|
|
ALTER TABLE `pay_mail_bill`
|
|
ADD COLUMN `invoice_file_id` varchar(50) NULL COMMENT '发票附件id' AFTER `no_tax_amount`;
|
|
|
|
ALTER TABLE `pay_working_group`
|
|
ADD COLUMN `pay_flag` tinyint(1) NULL DEFAULT NULL COMMENT '是否收费标识(0不收费 1收费)' AFTER `update_time`;
|
|
|
|
ALTER TABLE `pay_company_management`
|
|
ADD COLUMN `package_enterprise` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '是否打包企业' AFTER `link_bank_number`;
|
|
|
|
-- 管理端单点登录到企业端的按钮权限
|
|
INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1763082128575033345', '9502685863ab87f0ad1134142788a385', '企业端', NULL, NULL, NULL, NULL, 2, 'enterpriseTerminal:singleSignLogin', '0', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2024-02-29 14:01:51', NULL, NULL, 0, 0, '1', 0, 1);
|
|
-- 管理端标协会员下增加会员统计和标准统计菜单
|
|
INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1765915681293688833', '1438394322899558402', '标准统计', '/incomePayments/memberManage/stardsStandardStatistics', 'incomePayments/memberManage/StardsStandardStatistics', NULL, NULL, 1, NULL, '1', 8.40, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2024-03-08 09:41:22', NULL, NULL, 0, 0, '1', 0, 1);
|
|
INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `external_terminal_show`) VALUES ('1765583520246108161', '1438394322899558402', '会员统计', '/incomePayments/memberManage/stardsMemberStatistics', 'incomePayments/memberManage/StardsMemberStatistics', NULL, NULL, 1, NULL, '1', 8.30, 0, NULL, 1, 1, 0, 0, NULL, 'LKGLZ', '2024-03-07 11:41:29', NULL, NULL, 0, 0, '1', 0, 1);
|
|
|
|
-- 字典项目类型新增打包项目
|
|
INSERT INTO sys_dict_item ( id, dict_id, item_text, item_value, description, sort_order, status, create_by, create_time ) VALUES ( '1767089980854767618', '1435541165297995778', '打包项目', '8', '', 8, 1, 'chh', '2024-03-11 15:27:37' )
|
|
-- 字典来款用途新增打包
|
|
INSERT INTO sys_dict_item ( id, dict_id, item_text, item_value, description, sort_order, status, create_by, create_time ) VALUES ( '1767090351832567809', '1431145150766923778', '打包', '22', '', 22, 1, 'chh', '2024-03-11 15:29:05' )
|
|
# 会员到期提醒消息模板
|
|
INSERT INTO sys_sms_template ( id, template_code, template_name, template_content, template_type, recipient, create_by, create_time ) VALUES ( '1767384966368137217', 'GL_16_HTTZ_EXPIRE', '15', '<p>【中汽标协】尊敬的会员朋友,您的会员权限将于${expiredDay}到期,请及时续费,以免影响您的会员权益。</p>', '2,3', '1', 'LKGLZ', '2024-03-12 10:59:47' );
|
|
# 处理历史数据
|
|
update income_payments.tb_member_project_subitem tmps
|
|
left join standards_association.tb_member_info tmi on tmps.company_name = tmi.company_name
|
|
set tmps.effective_date = tmi.effective_date, tmps.invalidation_date = tmi.invalidation_date
|
|
where 1=1; |