Commit 9e90939b by 仲光辉

feat: add sql.

parent 61cdc7b8
# alter table admin # alter table admin
...@@ -3412,300 +3412,501 @@ ...@@ -3412,300 +3412,501 @@
# alter table agency # alter table agency
# modify concat varchar(30) null comment '联系方式'; # modify concat varchar(30) null comment '联系方式';
INSERT INTO text_data # INSERT INTO text_data
(uuid, business_uuid, type, `key`, value, key_name, remark, is_base, sort, is_delete, create_time, update_time) VALUE ( # (uuid, business_uuid, type, `key`, value, key_name, remark, is_base, sort, is_delete, create_time, update_time) VALUE (
8292834495442994847, # 8292834495442994847,
null, # null,
'model', # 'model',
'8', # '8',
null, # null,
'交房备忘录', # '交房备忘录',
'交房备忘录', # '交房备忘录',
1, # 1,
1, # 1,
0, # 0,
now(), # now(),
now()); # now());
#
UPDATE text_data t # UPDATE text_data t
SET t.value = '[ # SET t.value = '[
{ # {
"name": "sign", # "name": "sign",
"value": [ # "value": [
{ # {
"name": "基础信息", # "name": "基础信息",
"value": [ # "value": [
{ # {
"text": "{{交房-项目名称}}", # "text": "{{交房-项目名称}}",
"remark": "武汉大厦" # "remark": "武汉大厦"
}, # },
{ # {
"text": "{{交房-单元}}", # "text": "{{交房-单元}}",
"remark": "1056" # "remark": "1056"
}, # },
{ # {
"text": "{{交房-公司}}", # "text": "{{交房-公司}}",
"remark": "苹果科技" # "remark": "苹果科技"
}, # },
{ # {
"text": "{{交房-起租日期}}", # "text": "{{交房-起租日期}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{交房-招商经理}}", # "text": "{{交房-招商经理}}",
"remark": "李达修" # "remark": "李达修"
}, # },
{ # {
"text": "{{交房-对接人}}", # "text": "{{交房-对接人}}",
"remark": "王碧莲" # "remark": "王碧莲"
}, # },
{ # {
"text": "{{交房-对接时间}}", # "text": "{{交房-对接时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{交房-联系方式}}", # "text": "{{交房-联系方式}}",
"remark": "14678389046" # "remark": "14678389046"
}, # },
{ # {
"text": "{{交房-首付款是否}}", # "text": "{{交房-首付款是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{交房-首付款完成}}", # "text": "{{交房-首付款完成}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{交房-行政经理}}", # "text": "{{交房-行政经理}}",
"remark": "宋高迪" # "remark": "宋高迪"
}, # },
{ # {
"text": "{{交房-合同签约情况}}", # "text": "{{交房-合同签约情况}}",
"remark": "已签合同/未签合同" # "remark": "已签合同/未签合同"
}, # },
{ # {
"text": "{{交房-行业}}", # "text": "{{交房-行业}}",
"remark": "软件技术" # "remark": "软件技术"
}, # },
{ # {
"text": "{{交房-交楼日期}}", # "text": "{{交房-交楼日期}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{交房-是否提前交楼}}", # "text": "{{交房-是否提前交楼}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{交房-是否提供提前交楼申请书}}", # "text": "{{交房-是否提供提前交楼申请书}}",
"remark": "是/否" # "remark": "是/否"
} # }
] # ]
}, # },
{ # {
"name": "前置工作事项", # "name": "前置工作事项",
"value": [ # "value": [
{ # {
"text": "{{工商-是否}}", # "text": "{{工商-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{工商-计划完成时间}}", # "text": "{{工商-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{工商-情况说明}}", # "text": "{{工商-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{工商-实际完成时间}}", # "text": "{{工商-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{工程-是否}}", # "text": "{{工程-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{工程-计划完成时间}}", # "text": "{{工程-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{工程-情况说明}}", # "text": "{{工程-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{工程-实际完成时间}}", # "text": "{{工程-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{家私-是否}}", # "text": "{{家私-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{家私-计划完成时间}}", # "text": "{{家私-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{家私-情况说明}}", # "text": "{{家私-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{家私-实际完成时间}}", # "text": "{{家私-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{网络-是否}}", # "text": "{{网络-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{网络-计划完成时间}}", # "text": "{{网络-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{网络-情况说明}}", # "text": "{{网络-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{网络-实际完成时间}}", # "text": "{{网络-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{商务-是否}}", # "text": "{{商务-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{商务-计划完成时间}}", # "text": "{{商务-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{商务-情况说明}}", # "text": "{{商务-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{商务-实际完成时间}}", # "text": "{{商务-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{门禁-是否}}", # "text": "{{门禁-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{门禁-计划完成时间}}", # "text": "{{门禁-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{门禁-情况说明}}", # "text": "{{门禁-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{门禁-实际完成时间}}", # "text": "{{门禁-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{停车-是否}}", # "text": "{{停车-是否}}",
"remark": "是/否" # "remark": "是/否"
}, # },
{ # {
"text": "{{停车-计划完成时间}}", # "text": "{{停车-计划完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
}, # },
{ # {
"text": "{{停车-情况说明}}", # "text": "{{停车-情况说明}}",
"remark": "说明" # "remark": "说明"
}, # },
{ # {
"text": "{{停车-实际完成时间}}", # "text": "{{停车-实际完成时间}}",
"remark": "2023年10月01号" # "remark": "2023年10月01号"
} # }
] # ]
} # }
] # ]
} # }
]' # ]'
WHERE t.uuid = 8292834495442994847; # WHERE t.uuid = 8292834495442994847;
#
alter table contract_file # alter table contract_file
modify type int(1) null comment '类型:1合同文件(contract);2变更主体文件(company_change)3.合同附件 4.退租附件 ;5.物业费合同;6。合同补充协议 7意向书合同文件 ; 8温馨涵 9:意向书附件;10:合同变更附件 11:通知文书(etc.交楼单) 12:合同变更协议文件 13:交房备忘录'; # modify type int(1) null comment '类型:1合同文件(contract);2变更主体文件(company_change)3.合同附件 4.退租附件 ;5.物业费合同;6。合同补充协议 7意向书合同文件 ; 8温馨涵 9:意向书附件;10:合同变更附件 11:通知文书(etc.交楼单) 12:合同变更协议文件 13:交房备忘录';
#
alter table contract_model # alter table contract_model
modify type int(1) null comment '1合同打印模板,2合同印章,3意向书打印模板,4温馨函打印模板,5意向书印章,6催款函打印模板,7催款函印章, # modify type int(1) null comment '1合同打印模板,2合同印章,3意向书打印模板,4温馨函打印模板,5意向书印章,6催款函打印模板,7催款函印章,
8通知单打印模板,9通知单印章, # 8通知单打印模板,9通知单印章,
10 物业费合同;11 补充协议, # 10 物业费合同;11 补充协议,
12退租结算表 13:交楼单 14:交房备忘录'; # 12退租结算表 13:交楼单 14:交房备忘录';
#
INSERT INTO contract_model # INSERT INTO contract_model
(uuid, name, model_url, type, seal_type, seal, perforation_seal, enable_perforation, create_uuid, update_uuid, # (uuid, name, model_url, type, seal_type, seal, perforation_seal, enable_perforation, create_uuid, update_uuid,
perforation_seal_type, contract_model_type, seal_key_words, sub_type) VALUE # perforation_seal_type, contract_model_type, seal_key_words, sub_type) VALUE
(3675352949657984296,'交房备忘录模版',null,14,null,null,null,0,-1,-1,null,null,null,null); # (3675352949657984296,'交房备忘录模版',null,14,null,null,null,0,-1,-1,null,null,null,null);
#
UPDATE contract_model t # UPDATE contract_model t
SET t.model_url = '[ # SET t.model_url = '[
{ # {
"url": "cms/files/f996f730-7d20-11ee-9cc9-3b724c569c40.docx", # "url": "cms/files/f996f730-7d20-11ee-9cc9-3b724c569c40.docx",
"name": "02 交房备忘录(内部存档)改版(2023年2月版).docx" # "name": "02 交房备忘录(内部存档)改版(2023年2月版).docx"
} # }
]' # ]'
WHERE t.uuid = 3675352949657984296; # WHERE t.uuid = 3675352949657984296;
#
#
CREATE TABLE `dynamic_config` # CREATE TABLE `dynamic_config`
( # (
`dynamic_config_uuid` bigint(20) NOT NULL COMMENT 'uuid', # `dynamic_config_uuid` bigint(20) NOT NULL COMMENT 'uuid',
`config_type` tinyint(1) NOT NULL COMMENT '配置类型', # `config_type` tinyint(1) NOT NULL COMMENT '配置类型',
`config_value` text NOT NULL COMMENT '配置值 ', # `config_value` text NOT NULL COMMENT '配置值 ',
`config_desc` varchar(150) NOT NULL COMMENT '配置描述', # `config_desc` varchar(150) NOT NULL COMMENT '配置描述',
PRIMARY KEY (`dynamic_config_uuid`) # PRIMARY KEY (`dynamic_config_uuid`)
) ENGINE = InnoDB # ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='基于数据库的动态配置'; # DEFAULT CHARSET = utf8mb4 COMMENT ='基于数据库的动态配置';
#
create index dynamic_config_config_type_index # create index dynamic_config_config_type_index
on dynamic_config (config_type); # on dynamic_config (config_type);
#
alter table delivery_memo # alter table delivery_memo
add is_advance_delivery tinyint(1) default 0 null comment '是否提前交楼 0:否 1:是'; # add is_advance_delivery tinyint(1) default 0 null comment '是否提前交楼 0:否 1:是';
#
alter table delivery_memo # alter table delivery_memo
add is_provide_advance_application tinyint(1) default 0 null comment '是否提供提前交楼申请书 0:否 1:是'; # add is_provide_advance_application tinyint(1) default 0 null comment '是否提供提前交楼申请书 0:否 1:是';
#
alter table delivery_memo # alter table delivery_memo
add delivery_time date null comment '对接时间'; # add delivery_time date null comment '对接时间';
#
#
#
#
alter table delivery_memo # alter table delivery_memo
add executive_manager_uuid tinytext null comment '行政经理 uuid'; # add executive_manager_uuid tinytext null comment '行政经理 uuid';
#
alter table delivery_memo # alter table delivery_memo
add executive_manager_name tinytext null comment '行政经理名字'; # add executive_manager_name tinytext null comment '行政经理名字';
#
alter table delivery_memo_pre_service_info # alter table delivery_memo_pre_service_info
add ext tinytext null comment '拓展信息'; # add ext tinytext null comment '拓展信息';
#
alter table contract # alter table contract
add is_original_contract tinyint(1) default 0 null comment ' 是否原始合同 0:否 1:是'; # add is_original_contract tinyint(1) default 0 null comment ' 是否原始合同 0:否 1:是';
#
CREATE TABLE `contract_model_mail_model` # CREATE TABLE `contract_model_mail_model`
( # (
`uuid` bigint(20) NOT NULL COMMENT 'uuid', # `uuid` bigint(20) NOT NULL COMMENT 'uuid',
`contract_model_uuid` varchar(64) DEFAULT NULL COMMENT 'contract model uuid', # `contract_model_uuid` varchar(64) DEFAULT NULL COMMENT 'contract model uuid',
`mail_model_uuid` bigint(19) DEFAULT NULL COMMENT 'mail model uuid', # `mail_model_uuid` bigint(19) DEFAULT NULL COMMENT 'mail model uuid',
`type` tinyint(1) DEFAULT NULL COMMENT '合同模版类型', # `type` tinyint(1) DEFAULT NULL COMMENT '合同模版类型',
`relation_type` tinyint(1) DEFAULT NULL COMMENT '关系类型 0:默认关联', # `relation_type` tinyint(1) DEFAULT NULL COMMENT '关系类型 0:默认关联',
create_uuid char(32) null comment '创建人', # create_uuid char(32) null comment '创建人',
update_uuid char(32) null comment '修改人', # update_uuid char(32) null comment '修改人',
create_time datetime default CURRENT_TIMESTAMP null comment '创建时间', # create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间', # update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
PRIMARY KEY (`uuid`) # PRIMARY KEY (`uuid`)
) ENGINE = InnoDB # ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='ContractModel MailModel 关联关系表'; # DEFAULT CHARSET = utf8mb4 COMMENT ='ContractModel MailModel 关联关系表';
#
CREATE INDEX `idx_contract_model_uuid` ON `contract_model_mail_model` (`contract_model_uuid`); # CREATE INDEX `idx_contract_model_uuid` ON `contract_model_mail_model` (`contract_model_uuid`);
CREATE INDEX `idx_mail_model_uuid` ON `contract_model_mail_model` (`mail_model_uuid`); # CREATE INDEX `idx_mail_model_uuid` ON `contract_model_mail_model` (`mail_model_uuid`);
CREATE INDEX `idx_relation_type` ON `contract_model_mail_model` (`relation_type`); # CREATE INDEX `idx_relation_type` ON `contract_model_mail_model` (`relation_type`);
#
alter table delivery_memo # alter table delivery_memo
modify others varchar(510) null comment '其他'; # modify others varchar(510) null comment '其他';
#
# UPDATE text_data t
# SET t.value = '[
# {
# "name": "sign",
# "value": [
# {
# "name": "基础信息",
# "value": [
# {
# "text": "{{交房-项目名称}}",
# "remark": "武汉大厦"
# },
# {
# "text": "{{交房-单元}}",
# "remark": "1056"
# },
# {
# "text": "{{交房-公司}}",
# "remark": "苹果科技"
# },
# {
# "text": "{{交房-起租日期}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{交房-招商经理}}",
# "remark": "李达修"
# },
# {
# "text": "{{交房-对接人}}",
# "remark": "王碧莲"
# },
# {
# "text": "{{交房-对接时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{交房-联系方式}}",
# "remark": "14678389046"
# },
# {
# "text": "{{交房-首付款是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{交房-首付款完成}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{交房-行政经理}}",
# "remark": "宋高迪"
# },
# {
# "text": "{{交房-合同签约情况}}",
# "remark": "已签合同/未签合同"
# },
# {
# "text": "{{交房-行业}}",
# "remark": "软件技术"
# },
# {
# "text": "{{交房-交楼日期}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{交房-其他}}",
# "remark": "其他说明"
# },
# {
# "text": "{{交房-是否提前交楼}}",
# "remark": "是/否"
# },
# {
# "text": "{{交房-是否提供提前交楼申请书}}",
# "remark": "是/否"
# }
# ]
# },
# {
# "name": "前置工作事项",
# "value": [
# {
# "text": "{{工商-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{工商-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{工商-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{工商-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{工程-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{工程-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{工程-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{工程-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{家私-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{家私-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{家私-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{家私-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{网络-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{网络-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{网络-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{网络-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{商务-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{商务-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{商务-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{商务-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{门禁-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{门禁-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{门禁-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{门禁-实际完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{停车-是否}}",
# "remark": "是/否"
# },
# {
# "text": "{{停车-计划完成时间}}",
# "remark": "2023年10月01号"
# },
# {
# "text": "{{停车-情况说明}}",
# "remark": "说明"
# },
# {
# "text": "{{停车-实际完成时间}}",
# "remark": "2023年10月01号"
# }
# ]
# }
# ]
# }
# ]'
# WHERE t.uuid = 8292834495442994847;
# 2023.11.23
......
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