Files
income_payments_management/db/12月8日需求变更新增.sql
T

73 lines
6.9 KiB
SQL

ALTER TABLE `pay_meeting`
ADD COLUMN `meeting_minute` varchar(1000) NULL COMMENT '会议纪要' AFTER `meeting_data`;
ALTER TABLE `pay_meeting`
ADD COLUMN `council_id` varbinary(50) NULL DEFAULT NULL COMMENT '理事会项目id' AFTER `standards_id`;
ALTER TABLE `pay_meeting`
ADD COLUMN `council_name` varbinary(50) NULL DEFAULT NULL COMMENT '理事会项目名称' AFTER `council_id`;
INSERT INTO sys_dict_item (id, dict_id, item_text, item_value, description, sort_order, status, create_by, create_time)
VALUES ('1470221428149047297', '1432280766382727169', '理事会会议', '6', '', 6, 1, 'LKGLZ', '2021-12-13 10:37:58');
INSERT INTO sys_dict_item (id, dict_id, item_text, item_value, description, sort_order, status, create_by, create_time)
VALUES ('1470241235099570177', '1432944556812075009', '信息交流会', '3', '', 3, 1, 'LKGLZ', '2021-12-13 11:56:40');
UPDATE sys_dict_item SET dict_id='1465203901006192642', item_text='报名信息待审核', item_value='1', description='', sort_order=1, status=1, create_by='LKGLZ', create_time='2021-11-29 14:20:51', update_by='LKGLZ', update_time='2021-12-14 11:53:52' WHERE id='1465204088109899777';
UPDATE sys_dict_item SET dict_id='1465203901006192642', item_text='凭证待审核', item_value='2', description='', sort_order=2, status=1, create_by='LKGLZ', create_time='2021-11-2914:48:51', update_by='LKGLZ', update_time='2021-12-14 11:58:34' WHERE id='1465211133961805825';
UPDATE sys_dict_item SET dict_id='1465203901006192642', item_text='待签到', item_value='6', description='', sort_order=6, status=1, create_by='LKGLZ', create_time='2021-11-2914:21:59', update_by='LKGLZ', update_time='2021-12-14 11:59:49' WHERE id='1465204373351931906';
INSERT INTO sys_dict_item ( id, dict_id, item_text, item_value, description, sort_order, status, create_by, create_time ) VALUES ( '1470604504423297026', '1465203901006192642', '已签到', '7', '', 7, 1, 'LKGLZ', '2021-12-14 12:00:11' );
ALTER TABLE `pay_meeting_situation`
ADD COLUMN `register_process` tinyint(2) NULL COMMENT '报名流程' AFTER `contract_id`;
-- auto-generated definition
create table tb_certificate_payment
(
id varchar(36) not null comment '主键',
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(36) charset utf8mb4 null comment '项目id',
bill_number varchar(32) null comment '缴费单号',
company_name varchar(100) null comment '单位全称',
payment_type int null comment '缴费类型',
payment_amount double(50, 2) null comment '缴费金额',
payment_time int null comment '缴费时长',
submission_time datetime null comment '缴费时间',
check_time datetime null comment '核对时间',
payment_status int null comment '缴费状态',
payment_method int null comment '缴费方式',
payment_record varchar(100) null comment '缴费记录',
member_id varchar(32) null comment '会员id',
check_result int null comment '审核结果',
check_mark varchar(1000) null comment '备注',
bind int(10) null comment '绑定vin证书',
amount_receivable decimal(12, 2) null comment '应收金额',
paid_amount decimal(12, 2) null comment '实收金额',
certificate_id varchar(32) null comment '证书id',
pack tinyint(1) null comment '打包',
invoice_requirements tinyint(1) null comment '需要发票',
in_account tinyint(1) null comment '到账',
make_invoice tinyint(1) null comment '开票',
mail tinyint(1) null comment '邮寄',
charge_use tinyint(1) default 18 null comment '来款用途(字典表)',
invoice_amount decimal(12, 2) null comment '开票金额'
)
comment '标协会员证书缴费表' charset = utf8;
-- 证书维护 增加的sql
-- 证书缴费状态 数据字典的增加
INSERT INTO `sys_dict`(`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`) VALUES ('1344104518873272322', '证书缴费状态', 'certificate_payment_status', '已提交:会员提交了缴费信息,可核对,查看 已驳回:未核对通过的,可以进行查看 已核对:以核对通过,可以进行查看', 0, 'zxx', '2020-12-30 10:14:24', NULL, NULL, 0);
-- 证书缴费类型 数据字典的增加
INSERT INTO `sys_dict`(`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`) VALUES ('1344105936812265473', '证书缴费类型', 'certificate_payment_type', '新增/续费', 0, 'zxx', '2020-12-30 10:20:02', NULL, NULL, 0);
-- 证书缴费模块增加的数据字典
INSERT INTO `sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1344104623458242561', '1344104518873272322', '已支付', '1', '', 1.00, 1, 'zxx', '2020-12-30 10:14:49', 'BXGLZ', '2021-01-25 18:12:42');
INSERT INTO `sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1344104730870173698', '1344104518873272322', '已确认', '3', '', 3.00, 1, 'zxx', '2020-12-30 10:15:15', 'BXGLZ', '2021-01-25 18:12:52');
INSERT INTO `sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1344104790831943682', '1344104518873272322', '已驳回', '2', '', 2.00, 1, 'zxx', '2020-12-30 10:15:29', 'zxx', '2020-12-31 14:15:07');
INSERT INTO `sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1344105993636696065', '1344105936812265473', '新增', '0', '', 1.00, 1, 'zxx', '2020-12-30 10:20:16', 'zxx', '2020-12-30 16:12:38');
INSERT INTO `sys_dict_item`(`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1344106032173961218', '1344105936812265473', '续费', '1', '', 2.00, 1, 'zxx', '2020-12-30 10:20:25', 'zxx', '2020-12-30 16:12:41');