Commit bf73084a by 仲光辉

feat: add sql.

parent 81b7230d
# ## 变更协议 # ## 变更协议
...@@ -1582,917 +1582,951 @@ ...@@ -1582,917 +1582,951 @@
-- auto-generated definition -- auto-generated definition
create table unit_rental_history # create table unit_rental_history
( # (
unit_rental_history_uuid bigint not null comment 'unit_rental_history uuid' # unit_rental_history_uuid bigint not null comment 'unit_rental_history uuid'
primary key, # primary key,
contract_type int(1) default 1 not null comment '合同类型: 1: 合同 2:意向书 default:1', # contract_type int(1) default 1 not null comment '合同类型: 1: 合同 2:意向书 default:1',
contract_uuid bigint null comment '合同uuid 导入的数据可能没有合同uuid', # contract_uuid bigint null comment '合同uuid 导入的数据可能没有合同uuid',
contract_code varchar(255) not null comment 'contract code', # contract_code varchar(255) not null comment 'contract code',
lease_start_date date null comment '租赁起始日期', # lease_start_date date null comment '租赁起始日期',
lease_end_date date null comment '租赁结束日期', # lease_end_date date null comment '租赁结束日期',
sign_contract_date date null comment '签订合同的日期', # sign_contract_date date null comment '签订合同的日期',
contract_status int(1) null comment '合同/意向书状态: 1:新建待审批 2:新建待修改 3:变更待审批 4:变更待修改 5:待执行 6:正常执行 7:退租待审批 8:退租待修改 9:退租待执行 10:已退租 11:作废待审批 12:作废待修改 13:已作废 14:到期未处理 15:续租待审批 16:续租待修改 17:变更中 18:变更待执行 19:续租待执行 20:续租正常执行', # contract_status int(1) null comment '合同/意向书状态: 1:新建待审批 2:新建待修改 3:变更待审批 4:变更待修改 5:待执行 6:正常执行 7:退租待审批 8:退租待修改 9:退租待执行 10:已退租 11:作废待审批 12:作废待修改 13:已作废 14:到期未处理 15:续租待审批 16:续租待修改 17:变更中 18:变更待执行 19:续租待执行 20:续租正常执行',
project_uuid varchar(32) null comment '项目id', # project_uuid varchar(32) null comment '项目id',
project_name varchar(255) null comment '项目名字', # project_name varchar(255) null comment '项目名字',
building_uuid varchar(32) null comment '楼层id', # building_uuid varchar(32) null comment '楼层id',
building_name varchar(255) null comment '楼层名字', # building_name varchar(255) null comment '楼层名字',
sub_item_uuid varchar(50) null comment '单元uuid', # sub_item_uuid varchar(50) null comment '单元uuid',
obj_no varchar(50) null comment '单元号,套间号 , 工位号', # obj_no varchar(50) null comment '单元号,套间号 , 工位号',
contract_area decimal(20, 2) default 0.00 null comment '出租面积 (合同面积)', # contract_area decimal(20, 2) default 0.00 null comment '出租面积 (合同面积)',
company_uuid char(32) null comment 'company uuid', # company_uuid char(32) null comment 'company uuid',
company_name varchar(255) null comment 'company name', # company_name varchar(255) null comment 'company name',
lease_term_years tinyint null comment '租期(年)', # lease_term_years tinyint null comment '租期(年)',
net_rental_price decimal(10, 2) default 0.00 null comment '成交(纯)租金单价', # net_rental_price decimal(10, 2) default 0.00 null comment '成交(纯)租金单价',
monthly_rental_price_incl_mgmt_fee decimal(10, 2) default 0.00 null comment '月租金单价(含物业管理费)', # monthly_rental_price_incl_mgmt_fee decimal(10, 2) default 0.00 null comment '月租金单价(含物业管理费)',
is_delete int(1) default 0 null comment '是否删除 0:未删除 1:已删除 default:0', # is_delete int(1) default 0 null comment '是否删除 0:未删除 1:已删除 default:0',
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 '修改时间'
) # )
comment '单元租赁历史信息' collate = utf8mb4_unicode_ci; # comment '单元租赁历史信息' collate = utf8mb4_unicode_ci;
#
alter table unit_rental_history # alter table unit_rental_history
modify contract_code varchar(255) charset utf8 not null comment 'contract code'; # modify contract_code varchar(255) charset utf8 not null comment 'contract code';
#
create index unit_rental_history_contract_code_index # create index unit_rental_history_contract_code_index
on unit_rental_history (contract_code); # on unit_rental_history (contract_code);
#
create index unit_rental_history_sub_item_uuid_index # create index unit_rental_history_sub_item_uuid_index
on unit_rental_history (sub_item_uuid); # on unit_rental_history (sub_item_uuid);
#
ALTER Table unit_rental_history # ALTER Table unit_rental_history
ADD COLUMN user_uuid char(32) null comment '跟进用户uuid (冗余于 admin)', # ADD COLUMN user_uuid char(32) null comment '跟进用户uuid (冗余于 admin)',
ADD COLUMN user_name varchar(30) null comment '跟进人名称 (冗余于 admin)'; # ADD COLUMN user_name varchar(30) null comment '跟进人名称 (冗余于 admin)';
#
create index unit_rental_history_user_uuid_index # create index unit_rental_history_user_uuid_index
on unit_rental_history (user_uuid); # on unit_rental_history (user_uuid);
#
alter table unit_rental_history # alter table unit_rental_history
modify company_name varchar(255) charset utf8 null comment 'company name'; # modify company_name varchar(255) charset utf8 null comment 'company name';
#
create index unit_rental_history_company_name_index # create index unit_rental_history_company_name_index
on unit_rental_history (company_name); # on unit_rental_history (company_name);
#
alter table unit_rental_history # alter table unit_rental_history
modify lease_term_years decimal(6, 2) null comment '租期(年)'; # modify lease_term_years decimal(6, 2) null comment '租期(年)';
#
ALTER TABLE unit_rental_history # ALTER TABLE unit_rental_history
ADD COLUMN historical_order INT NOT NULL COMMENT '历史排序 (如:第一任,第二任)'; # ADD COLUMN historical_order INT NOT NULL COMMENT '历史排序 (如:第一任,第二任)';
#
#
ALTER TABLE project_floor_sub_item # ALTER TABLE project_floor_sub_item
ADD COLUMN avg_price DECIMAL(10,2) COMMENT '前三任租客平均价格'; # ADD COLUMN avg_price DECIMAL(10,2) COMMENT '前三任租客平均价格';
#
ALTER TABLE project_floor_sub_item # ALTER TABLE project_floor_sub_item
ADD COLUMN avg_rent DECIMAL(10,2) COMMENT '前三任租客的平均月租金单价'; # ADD COLUMN avg_rent DECIMAL(10,2) COMMENT '前三任租客的平均月租金单价';
#
ALTER TABLE project_floor_sub_item # ALTER TABLE project_floor_sub_item
ADD COLUMN avg_rent_no_manage DECIMAL(10,2) COMMENT '不含管理费的月租单价'; # ADD COLUMN avg_rent_no_manage DECIMAL(10,2) COMMENT '不含管理费的月租单价';
#
ALTER TABLE project_floor_sub_item # ALTER TABLE project_floor_sub_item
ADD COLUMN avg_rent_no_manage_total DECIMAL(10,2) COMMENT '不含管理费的月租总价'; # ADD COLUMN avg_rent_no_manage_total DECIMAL(10,2) COMMENT '不含管理费的月租总价';
#
ALTER TABLE project_floor_sub_item # ALTER TABLE project_floor_sub_item
ADD COLUMN valid_rent_total DECIMAL(10,2) COMMENT '有效月租金总价'; # ADD COLUMN valid_rent_total DECIMAL(10,2) COMMENT '有效月租金总价';
#
#
alter table project_floor_sub_item # alter table project_floor_sub_item
change avg_price avg_area decimal(10, 2) null comment '前三任租客平均面积'; # change avg_price avg_area decimal(10, 2) null comment '前三任租客平均面积';
#
alter table project_floor_sub_item # alter table project_floor_sub_item
add avg_rent_total decimal(10, 2) null comment '前三任租客的平均月租金总价'; # add avg_rent_total decimal(10, 2) null comment '前三任租客的平均月租金总价';
#
UPDATE mfg_dev_v1.text_data t SET t.value = '[ # UPDATE mfg_dev_v1.text_data t SET t.value = '[
{ # {
"name": "sign", # "name": "sign",
"value": [ # "value": [
{ # {
"name": "基础信息", # "name": "基础信息",
"value": [ # "value": [
{ # {
"remark": "如:hzjr-20200917-52", # "remark": "如:hzjr-20200917-52",
"text": "{{合同编号}}" # "text": "{{合同编号}}"
}, # },
{ # {
"remark": "如:2020年1月1日", # "remark": "如:2020年1月1日",
"text": "{{签约/交付日期}}" # "text": "{{签约/交付日期}}"
}, # },
{ # {
"remark": "如:办公", # "remark": "如:办公",
"text": "{{租赁作用}}" # "text": "{{租赁作用}}"
}, # },
{ # {
"remark": "如:100", # "remark": "如:100",
"text": "{{可容纳办公人数}}" # "text": "{{可容纳办公人数}}"
}, # },
{ # {
"remark": "如:1000.00平方米", # "remark": "如:1000.00平方米",
"text": "{{租赁总面积}}" # "text": "{{租赁总面积}}"
}, # },
{ # {
"remark": "如:按套间租赁", # "remark": "如:按套间租赁",
"text": "{{租赁类型}}" # "text": "{{租赁类型}}"
}, # },
{ # {
"remark": "如:小方", # "remark": "如:小方",
"text": "{{跟进人}}" # "text": "{{跟进人}}"
}, # },
{ # {
"remark": "如:2020年1月1日", # "remark": "如:2020年1月1日",
"text": "{{生成日期}}" # "text": "{{生成日期}}"
}, # },
{ # {
"remark": "如:2020年1月1日", # "remark": "如:2020年1月1日",
"text": "{{合同备注}}" # "text": "{{合同备注}}"
}, # },
{ # {
"remark": "如:100 ", # "remark": "如:100 ",
"text": "{{合同总面积}}" # "text": "{{合同总面积}}"
} # }
] # ]
}, # },
{ # {
"name": "单元信息", # "name": "单元信息",
"value": [ # "value": [
{ # {
"remark": "如:杭州市", # "remark": "如:杭州市",
"text": "{{项目所在城市}}" # "text": "{{项目所在城市}}"
}, # },
{ # {
"remark": "如:余杭区", # "remark": "如:余杭区",
"text": "{{项目所在区域}}" # "text": "{{项目所在区域}}"
}, # },
{ # {
"remark": "如:西湖街道123号", # "remark": "如:西湖街道123号",
"text": "{{详细地址}}" # "text": "{{详细地址}}"
}, # },
{ # {
"remark": "如:杭州测试楼", # "remark": "如:杭州测试楼",
"text": "{{项目名称}}" # "text": "{{项目名称}}"
}, # },
{ # {
"remark": "如:杭州测试楼", # "remark": "如:杭州测试楼",
"text": "{{项目简称}}" # "text": "{{项目简称}}"
}, # },
{ # {
"remark": "如:单个楼层显示为:3; 多个房源显示为:2,3,4", # "remark": "如:单个楼层显示为:3; 多个房源显示为:2,3,4",
"text": "{{楼层号}}" # "text": "{{楼层号}}"
}, # },
{ # {
"remark": "如:12 楼层: 将渲染为 (12-1)-(12-8) ", # "remark": "如:12 楼层: 将渲染为 (12-1)-(12-8) ",
"text": "{{楼层号-1-8}}" # "text": "{{楼层号-1-8}}"
}, # },
{ # {
"remark": "如:单个单元显示为:103; 多个房源显示为:102,103,104", # "remark": "如:单个单元显示为:103; 多个房源显示为:102,103,104",
"text": "{{单元号}}" # "text": "{{单元号}}"
}, # },
{ # {
"remark": "如:单个套间显示为:302,多个套间显示为:302,302,403", # "remark": "如:单个套间显示为:302,多个套间显示为:302,302,403",
"text": "{{套间号}}" # "text": "{{套间号}}"
}, # },
{ # {
"remark": "如:单个工位显示为:302,多个工位显示为:302,302,403", # "remark": "如:单个工位显示为:302,多个工位显示为:302,302,403",
"text": "{{工位号}}" # "text": "{{工位号}}"
} # }
] # ]
}, # },
{ # {
"name": "承租方基本信息", # "name": "承租方基本信息",
"value": [ # "value": [
{ # {
"remark": "如:xxx", # "remark": "如:xxx",
"text": "{{法定代表人}}" # "text": "{{法定代表人}}"
}, # },
{ # {
"remark": "如:杭州匠人网络科技有限公司", # "remark": "如:杭州匠人网络科技有限公司",
"text": "{{承租方}}" # "text": "{{承租方}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一社会信用代码或身份证}}" # "text": "{{统一社会信用代码或身份证}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话}}" # "text": "{{联系电话}}"
}, # },
{ # {
"remark": "如:xxx@dankal.cn", # "remark": "如:xxx@dankal.cn",
"text": "{{电子邮箱}}" # "text": "{{电子邮箱}}"
}, # },
{ # {
"remark": "如:企业", # "remark": "如:企业",
"text": "{{客户类型}}" # "text": "{{客户类型}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区", # "remark": "如:广东省深圳市龙岗区",
"text": "{{通讯地址-所在区域}}" # "text": "{{通讯地址-所在区域}}"
}, # },
{ # {
"remark": "如:龙城广场2305", # "remark": "如:龙城广场2305",
"text": "{{通讯地址-详细地址}}" # "text": "{{通讯地址-详细地址}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区", # "remark": "如:广东省深圳市龙岗区",
"text": "{{送达地址-所在区域}}" # "text": "{{送达地址-所在区域}}"
}, # },
{ # {
"remark": "如:龙城广场2308", # "remark": "如:龙城广场2308",
"text": "{{送达地址-详细地址}}" # "text": "{{送达地址-详细地址}}"
}, # },
{ # {
"remark": "如:软件 行业", # "remark": "如:软件 行业",
"text": "{{经营行业}}" # "text": "{{经营行业}}"
}, # },
{ # {
"remark": "联系人名称", # "remark": "联系人名称",
"text": "{{联系人名称}}" # "text": "{{联系人名称}}"
}, # },
{ # {
"remark": "社会保障和社会组织", # "remark": "社会保障和社会组织",
"text": "{{乙方企业类型}}" # "text": "{{乙方企业类型}}"
} # }
] # ]
}, # },
{ # {
"name": "合同变更协议", # "name": "合同变更协议",
"value": [ # "value": [
{ # {
"remark": "如:2023年06月18号", # "remark": "如:2023年06月18号",
"text": "{{当天日期}}" # "text": "{{当天日期}}"
}, # },
{ # {
"remark": "如:2023年06月18号", # "remark": "如:2023年06月18号",
"text": "{{转让日期}}" # "text": "{{转让日期}}"
}, # },
{ # {
"remark": "如:3", # "remark": "如:3",
"text": "{{变更工作日}}" # "text": "{{变更工作日}}"
}, # },
{ # {
"remark": "如:3", # "remark": "如:3",
"text": "{{协议份数}}" # "text": "{{协议份数}}"
}, # },
{ # {
"remark": "如:100.00", # "remark": "如:100.00",
"text": "{{变更费用}}" # "text": "{{变更费用}}"
}, # },
{ # {
"remark": "如:壹佰元", # "remark": "如:壹佰元",
"text": "{{变更费用-大写}}" # "text": "{{变更费用-大写}}"
} # }
] # ]
}, # },
{ # {
"name": "原承租方基本信息", # "name": "原承租方基本信息",
"value": [ # "value": [
{ # {
"remark": "如:李小花", # "remark": "如:李小花",
"text": "{{法定代表人 -原承租方}}" # "text": "{{法定代表人 -原承租方}}"
}, # },
{ # {
"remark": "如:杭州匠人网络科技有限公司", # "remark": "如:杭州匠人网络科技有限公司",
"text": "{{原承租方}}" # "text": "{{原承租方}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一社会信用代码或身份证-原承租方}}" # "text": "{{统一社会信用代码或身份证-原承租方}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{身份证-原承租方}}" # "text": "{{身份证-原承租方}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话-原承租方}}" # "text": "{{联系电话-原承租方}}"
}, # },
{ # {
"remark": "如:龙城广场2305", # "remark": "如:龙城广场2305",
"text": "{{通讯地址-原承租方}}" # "text": "{{通讯地址-原承租方}}"
} # }
] # ]
}, # },
{ # {
"name": "滞纳金条款", # "name": "滞纳金条款",
"value": [ # "value": [
{ # {
"remark": "如:0.5%/天", # "remark": "如:0.5%/天",
"text": "{{滞纳金比例}}" # "text": "{{滞纳金比例}}"
}, # },
{ # {
"remark": "如:20.00%", # "remark": "如:20.00%",
"text": "{{滞纳金上限}}" # "text": "{{滞纳金上限}}"
}, # },
{ # {
"remark": "如:0", # "remark": "如:0",
"text": "{{起算天数}}" # "text": "{{起算天数}}"
}, # },
{ # {
"remark": "如:计入账单收取、仅计算不收取", # "remark": "如:计入账单收取、仅计算不收取",
"text": "{{收取方式}}" # "text": "{{收取方式}}"
} # }
] # ]
}, # },
{ # {
"name": "诚意金", # "name": "诚意金",
"value": [ # "value": [
{ # {
"remark": "如:100.00元", # "remark": "如:100.00元",
"text": "{{诚意金金额(元)}}" # "text": "{{诚意金金额(元)}}"
}, # },
{ # {
"remark": "如:是", # "remark": "如:是",
"text": "{{诚意金是否支付}}" # "text": "{{诚意金是否支付}}"
}, # },
{ # {
"remark": "如:2020年1月1日", # "remark": "如:2020年1月1日",
"text": "{{诚意金支付时间}}" # "text": "{{诚意金支付时间}}"
}, # },
{ # {
"remark": "如:这里是备注", # "remark": "如:这里是备注",
"text": "{{备注}}" # "text": "{{备注}}"
} # }
] # ]
}, # },
{ # {
"name": "定金", # "name": "定金",
"value": [ # "value": [
{ # {
"remark": "如:100.00元", # "remark": "如:100.00元",
"text": "{{定金金额(元)}}" # "text": "{{定金金额(元)}}"
}, # },
{ # {
"remark": "如:是", # "remark": "如:是",
"text": "{{定金是否支付}}" # "text": "{{定金是否支付}}"
}, # },
{ # {
"remark": "如:2020年1月1日", # "remark": "如:2020年1月1日",
"text": "{{定金支付时间}}" # "text": "{{定金支付时间}}"
}, # },
{ # {
"remark": "如:这里是备注", # "remark": "如:这里是备注",
"text": "{{备注2}}" # "text": "{{备注2}}"
} # }
] # ]
}, # },
{ # {
"name": "出租方基本信息(高端商务办公)", # "name": "出租方基本信息(高端商务办公)",
"value": [ # "value": [
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{法定代表人-出租}}" # "text": "{{法定代表人-出租}}"
}, # },
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{项目账号信息-法人姓名}}" # "text": "{{项目账号信息-法人姓名}}"
}, # },
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{出租方}}" # "text": "{{出租方}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一社会信用代码或身份证-出租}}" # "text": "{{统一社会信用代码或身份证-出租}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区龙城广场", # "remark": "如:广东省深圳市龙岗区龙城广场",
"text": "{{通讯地址-出租}}" # "text": "{{通讯地址-出租}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区龙城广场", # "remark": "如:广东省深圳市龙岗区龙城广场",
"text": "{{送达地址-出租}}" # "text": "{{送达地址-出租}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话-出租}}" # "text": "{{联系电话-出租}}"
}, # },
{ # {
"remark": "如:xxx@dankal.cn", # "remark": "如:xxx@dankal.cn",
"text": "{{电子邮箱-出租}}" # "text": "{{电子邮箱-出租}}"
} # }
] # ]
}, # },
{ # {
"name": "出租方基本信息(创客空间)", # "name": "出租方基本信息(创客空间)",
"value": [ # "value": [
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{出租方-创客}}" # "text": "{{出租方-创客}}"
}, # },
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{项目账号信息-法人姓名}}" # "text": "{{项目账号信息-法人姓名}}"
}, # },
{ # {
"remark": "如:赵XX", # "remark": "如:赵XX",
"text": "{{法定代表人-创客}}" # "text": "{{法定代表人-创客}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一社会信用代码或身份证-创客}}" # "text": "{{统一社会信用代码或身份证-创客}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区****", # "remark": "如:广东省深圳市龙岗区****",
"text": "{{通讯地址-创客}}" # "text": "{{通讯地址-创客}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区龙城广场", # "remark": "如:广东省深圳市龙岗区龙城广场",
"text": "{{送达地址-创客}}" # "text": "{{送达地址-创客}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话-创客}}" # "text": "{{联系电话-创客}}"
}, # },
{ # {
"remark": "如:xxx@dankal.cn", # "remark": "如:xxx@dankal.cn",
"text": "{{电子邮箱-创客}}" # "text": "{{电子邮箱-创客}}"
} # }
] # ]
}, # },
{ # {
"name": "出租方信息-动态判断", # "name": "出租方信息-动态判断",
"value": [ # "value": [
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{出租方-动态判断}}" # "text": "{{出租方-动态判断}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一社会信用代码或身份证-动态判断}}" # "text": "{{统一社会信用代码或身份证-动态判断}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区****", # "remark": "如:广东省深圳市龙岗区****",
"text": "{{通讯地址-动态判断}}" # "text": "{{通讯地址-动态判断}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话-动态判断}}" # "text": "{{联系电话-动态判断}}"
}, # },
{ # {
"remark": "如:赵XX", # "remark": "如:赵XX",
"text": "{{法定代表人-动态判断 }}" # "text": "{{法定代表人-动态判断 }}"
} # }
] # ]
}, # },
{ # {
"name": "物业信息", # "name": "物业信息",
"value": [ # "value": [
{ # {
"remark": "如:金地物业", # "remark": "如:金地物业",
"text": "{{物业管理公司}}" # "text": "{{物业管理公司}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{物业服务热线}}" # "text": "{{物业服务热线}}"
}, # },
{ # {
"remark": "如:赵XX", # "remark": "如:赵XX",
"text": "{{法定代表人-创客}}" # "text": "{{法定代表人-创客}}"
} # }
] # ]
}, # },
{ # {
"name": "运营管理主体信息", # "name": "运营管理主体信息",
"value": [ # "value": [
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{物业管理费主体(甲方信息)}}" # "text": "{{物业管理费主体(甲方信息)}}"
}, # },
{ # {
"remark": "如:mfg科技有限公司", # "remark": "如:mfg科技有限公司",
"text": "{{物业管理费主体-法人姓名)}}" # "text": "{{物业管理费主体-法人姓名)}}"
}, # },
{ # {
"remark": "如:广东省深圳市龙岗区龙城广场", # "remark": "如:广东省深圳市龙岗区龙城广场",
"text": "{{通讯地址-运营}}" # "text": "{{通讯地址-运营}}"
}, # },
{ # {
"remark": "如:1298102910", # "remark": "如:1298102910",
"text": "{{统一信用代码或身份证号码-运营}}" # "text": "{{统一信用代码或身份证号码-运营}}"
}, # },
{ # {
"remark": "如:8008208820", # "remark": "如:8008208820",
"text": "{{联系电话-运营}}" # "text": "{{联系电话-运营}}"
}, # },
{ # {
"remark": "如:xxx@dankal.cn", # "remark": "如:xxx@dankal.cn",
"text": "{{电子邮箱-运营}}" # "text": "{{电子邮箱-运营}}"
} # }
] # ]
}, # },
{ # {
"name": "承租方发票信息", # "name": "承租方发票信息",
"value": [ # "value": [
{ # {
"remark": "如:modest", # "remark": "如:modest",
"text": "{{发票抬头}}" # "text": "{{发票抬头}}"
}, # },
{ # {
"remark": "如:012833f563", # "remark": "如:012833f563",
"text": "{{纳税人识别号}}" # "text": "{{纳税人识别号}}"
}, # },
{ # {
"remark": "如:深圳市龙岗区", # "remark": "如:深圳市龙岗区",
"text": "{{开票信息地址}}" # "text": "{{开票信息地址}}"
}, # },
{ # {
"remark": "如:13538541784", # "remark": "如:13538541784",
"text": "{{联系方式}}" # "text": "{{联系方式}}"
}, # },
{ # {
"remark": "如:中国网银", # "remark": "如:中国网银",
"text": "{{开户银行-承租方}}" # "text": "{{开户银行-承租方}}"
}, # },
{ # {
"remark": "如:6745739583958544464", # "remark": "如:6745739583958544464",
"text": "{{银行账号-承租方}}" # "text": "{{银行账号-承租方}}"
} # }
] # ]
} # }
] # ]
}, # },
{ # {
"name": "clause", # "name": "clause",
"value": [ # "value": [
{ # {
"name": "物业费和租金保证金", # "name": "物业费和租金保证金",
"value": [ # "value": [
{ # {
"remark": "如:10.00元", # "remark": "如:10.00元",
"text": "{{租赁保证金}}" # "text": "{{租赁保证金}}"
}, # },
{ # {
"remark": "如:壹佰圆 元", # "remark": "如:壹佰圆 元",
"text": "{{租赁保证金大写}}" # "text": "{{租赁保证金大写}}"
}, # },
{ # {
"remark": "如:10.00元", # "remark": "如:10.00元",
"text": "{{物业服务费保证金}}" # "text": "{{物业服务费保证金}}"
}, # },
{ # {
"remark": "如:10.00元", # "remark": "如:10.00元",
"text": "{{水电费保证金}}" # "text": "{{水电费保证金}}"
}, # },
{ # {
"remark": "如:10.00元/月", # "remark": "如:10.00元/月",
"text": "{{固定分摊水电费}}" # "text": "{{固定分摊水电费}}"
}, # },
{ # {
"remark": "如:1000.00元/月", # "remark": "如:1000.00元/月",
"text": "{{物业管理费}}" # "text": "{{物业管理费}}"
}, # },
{ # {
"remark": "所有保证金之和,如:30.00元", # "remark": "所有保证金之和,如:30.00元",
"text": "{{合计保证金}}" # "text": "{{合计保证金}}"
}, # },
{ # {
"remark": "如:3 ", # "remark": "如:3 ",
"text": "{{押金月数}}" # "text": "{{押金月数}}"
}, # },
{ # {
"remark": "如:叁 ", # "remark": "如:叁 ",
"text": "{{押金月数大写}}" # "text": "{{押金月数大写}}"
}, # },
{ # {
"remark": "如:因甲乙双方于2022年11月30日 签订了《房屋租赁合同书》(合同编号: HT-LSS-CSXM-DQCSSY-0290-202212-117, 以下简称“原合同”),乙方就原合同已缴纳给甲方的租赁保证金、物业服务费 保证金及水电费保证金共计人民币: 548,018.39元,自本协议签订之日起,其中的5,000.00元自动转 为本协议所需的保证金,同时甲方在本协议签订之日起三十个工作日内向乙方 无息退还原合同剩余的保证金共计543,018.39元(大写人民币:伍拾肆万叁仟零壹拾捌元叁角玖分)。 ", # "remark": "如:因甲乙双方于2022年11月30日 签订了《房屋租赁合同书》(合同编号: HT-LSS-CSXM-DQCSSY-0290-202212-117, 以下简称“原合同”),乙方就原合同已缴纳给甲方的租赁保证金、物业服务费 保证金及水电费保证金共计人民币: 548,018.39元,自本协议签订之日起,其中的5,000.00元自动转 为本协议所需的保证金,同时甲方在本协议签订之日起三十个工作日内向乙方 无息退还原合同剩余的保证金共计543,018.39元(大写人民币:伍拾肆万叁仟零壹拾捌元叁角玖分)。 ",
"text": "{{续租保证金说明}}" # "text": "{{续租保证金说明}}"
} # }
] # ]
}, # },
{ # {
"name": "费用条款", # "name": "费用条款",
"value": [ # "value": [
{ # {
"remark": "如:1", # "remark": "如:1",
"text": "{{合同租期}}" # "text": "{{合同租期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{租赁开始日期}}" # "text": "{{租赁开始日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{租赁截止日期}}" # "text": "{{租赁截止日期}}"
}, # },
{ # {
"remark": "如:1,200.00元", # "remark": "如:1,200.00元",
"text": "{{合同单价}}" # "text": "{{合同单价}}"
}, # },
{ # {
"remark": "如:壹仟伍佰元", # "remark": "如:壹仟伍佰元",
"text": "{{合同单价大写}}" # "text": "{{合同单价大写}}"
}, # },
{ # {
"remark": "如:1,200.00元", # "remark": "如:1,200.00元",
"text": "{{物业服务费}}" # "text": "{{物业服务费}}"
}, # },
{ # {
"remark": "如:壹仟伍佰元", # "remark": "如:壹仟伍佰元",
"text": "{{物业服务费大写}}" # "text": "{{物业服务费大写}}"
}, # },
{ # {
"remark": "首期月租金+首期物业管理费,如:4,426.03", # "remark": "首期月租金+首期物业管理费,如:4,426.03",
"text": "{{首期租金及物业服务费}}" # "text": "{{首期租金及物业服务费}}"
}, # },
{ # {
"remark": "如:肆仟肆佰贰拾陆元零叁分元", # "remark": "如:肆仟肆佰贰拾陆元零叁分元",
"text": "{{首期租金及物业服务费大写}}" # "text": "{{首期租金及物业服务费大写}}"
}, # },
{ # {
"remark": "首期物业管理费,如:4,426.03", # "remark": "首期物业管理费,如:4,426.03",
"text": "{{首期物业服务费}}" # "text": "{{首期物业服务费}}"
}, # },
{ # {
"remark": "如:肆仟肆佰贰拾陆元零叁分元", # "remark": "如:肆仟肆佰贰拾陆元零叁分元",
"text": "{{首期物业服务费大写}}" # "text": "{{首期物业服务费大写}}"
}, # },
{ # {
"remark": "第二期物业服务费,如:4,426.03", # "remark": "第二期物业服务费,如:4,426.03",
"text": "{{第二期物业服务费}}" # "text": "{{第二期物业服务费}}"
}, # },
{ # {
"remark": "如:肆仟肆佰贰拾陆元零叁分元", # "remark": "如:肆仟肆佰贰拾陆元零叁分元",
"text": "{{第二期物业服务费大写}}" # "text": "{{第二期物业服务费大写}}"
}, # },
{ # {
"remark": "第三期物业服务费,如:4,426.03", # "remark": "第三期物业服务费,如:4,426.03",
"text": "{{第三期物业服务费}}" # "text": "{{第三期物业服务费}}"
}, # },
{ # {
"remark": "如:肆仟肆佰贰拾陆元零叁分元", # "remark": "如:肆仟肆佰贰拾陆元零叁分元",
"text": "{{第三期物业服务费大写}}" # "text": "{{第三期物业服务费大写}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{首期付款日期}}" # "text": "{{首期付款日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{首期收费开始日期}}" # "text": "{{首期收费开始日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{首期收费截止日期}}" # "text": "{{首期收费截止日期}}"
}, # },
{ # {
"remark": "如:4,426.03", # "remark": "如:4,426.03",
"text": "{{第二期费用}}" # "text": "{{第二期费用}}"
}, # },
{ # {
"remark": "如:壹仟伍佰元", # "remark": "如:壹仟伍佰元",
"text": "{{第二期费用大写}}" # "text": "{{第二期费用大写}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第二期付款日期}}" # "text": "{{第二期付款日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第二期收费开始日期}}" # "text": "{{第二期收费开始日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第二期收费截止日期}}" # "text": "{{第二期收费截止日期}}"
}, # },
{ # {
"remark": "如:4,426.03", # "remark": "如:4,426.03",
"text": "{{第三期费用}}" # "text": "{{第三期费用}}"
}, # },
{ # {
"remark": "如:壹仟伍佰元", # "remark": "如:壹仟伍佰元",
"text": "{{第三期费用大写}}" # "text": "{{第三期费用大写}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第三期付款日期}}" # "text": "{{第三期付款日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第三期收费开始日期}}" # "text": "{{第三期收费开始日期}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{第三期收费截止日期}}" # "text": "{{第三期收费截止日期}}"
}, # },
{ # {
"remark": "如:100.00", # "remark": "如:100.00",
"text": "{{定金}}" # "text": "{{定金}}"
}, # },
{ # {
"remark": "如:100.00", # "remark": "如:100.00",
"text": "{{首期费用-定金}}" # "text": "{{首期费用-定金}}"
}, # },
{ # {
"remark": "如:100.00", # "remark": "如:100.00",
"text": "{{合同总费用-总保证金}}" # "text": "{{合同总费用-总保证金}}"
}, # },
{ # {
"remark": "如:壹佰圆整", # "remark": "如:壹佰圆整",
"text": "{{合同总费用-总保证金大写}}" # "text": "{{合同总费用-总保证金大写}}"
}, # },
{ # {
"remark": "如:100.00", # "remark": "如:100.00",
"text": "{{合同总费用}}" # "text": "{{合同总费用}}"
}, # },
{ # {
"remark": "如:壹佰圆整", # "remark": "如:壹佰圆整",
"text": "{{合同总费用大写}}" # "text": "{{合同总费用大写}}"
}, # },
{ # {
"remark": "三天", # "remark": "三天",
"text": "{{首期尾款支付天数}}" # "text": "{{首期尾款支付天数}}"
}, # },
{ # {
"remark": "支付方式: 每 X 月支付一次租金,即人民币 30000 元 ", # "remark": "支付方式: 每 X 月支付一次租金,即人民币 30000 元 ",
"text": "{{支付方式月}}" # "text": "{{支付方式月}}"
}, # },
{ # {
"remark": "支付方式: 每 3 月支付一次租金,即人民币 X(3*月租金) 元 ", # "remark": "支付方式: 每 3 月支付一次租金,即人民币 X(3*月租金) 元 ",
"text": "{{支付方式租金}}" # "text": "{{支付方式租金}}"
}, # },
{ # {
"remark": "如: ☑️月付", # "remark": "如: ☑️月付",
"text": "{{支付方式-月付}}" # "text": "{{支付方式-月付}}"
}, # },
{ # {
"remark": "如: ☑️季付", # "remark": "如: ☑️季付",
"text": "{{支付方式-季付}}" # "text": "{{支付方式-季付}}"
}, # },
{ # {
"remark": "如: ☑️年付", # "remark": "如: ☑️年付",
"text": "{{支付方式-年付}}" # "text": "{{支付方式-年付}}"
}, # },
{ # {
"remark": "如: 租金", # "remark": "如: 租金",
"text": "{{款项名称}}" # "text": "{{款项名称}}"
}, # },
{ # {
"remark": "如: 100", # "remark": "如: 100",
"text": "{{首期费用}}" # "text": "{{首期费用}}"
}, # },
{ # {
"remark": "如: 壹佰圆整", # "remark": "如: 壹佰圆整",
"text": "{{首期费用大写}}" # "text": "{{首期费用大写}}"
}, # },
{ # {
"remark": "如: (含免租期物业费 即 2022-12-08 至 2022-12-28)", # "remark": "如: (含免租期物业费 即 2022-12-08 至 2022-12-28)",
"text": "{{款项备注}}" # "text": "{{款项备注}}"
}, # },
{ # {
"remark": "如: 按月支付", # "remark": "如: 按月支付",
"text": "{{支付的方式}}" # "text": "{{支付的方式}}"
}, # },
{ # {
"remark": "如: 每月", # "remark": "如: 每月",
"text": "{{支付每几月}}" # "text": "{{支付每几月}}"
}, # },
{ # {
"remark": "如: 25", # "remark": "如: 25",
"text": "{{每期付款日}}" # "text": "{{每期付款日}}"
}, # },
{ # {
"remark": "如: 次月", # "remark": "如: 次月",
"text": "{{支付周期描述}}" # "text": "{{支付周期描述}}"
} # }
] # ]
}, # },
{ # {
"name": "租金递增条款", # "name": "租金递增条款",
"value": [ # "value": [
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{递增开始时间}}" # "text": "{{递增开始时间}}"
}, # },
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{递增第一年起始时间}}" # "text": "{{递增第一年起始时间}}"
}, # },
{ # {
"remark": "如:1", # "remark": "如:1",
"text": "{{租金递增第一年百分比}}" # "text": "{{租金递增第一年百分比}}"
}, # },
{ # {
"remark": "如:3,030.00", # "remark": "如:3,030.00",
"text": "{{递增第一年月租金}}" # "text": "{{递增第一年月租金}}"
}, # },
{ # {
"remark": "如:3,030.00", # "remark": "如:3,030.00",
"text": "{{递增第二年月租金}}" # "text": "{{递增第二年月租金}}"
}, # },
{ # {
"remark": "如:3,060.00", # "remark": "如:3,060.00",
"text": "{{递增第三年月租金}}" # "text": "{{递增第三年月租金}}"
}, # },
{ # {
"remark": "如:月租金自2024-10-31~2025-10-31递增3.00% ,即递增后人民币为 3467.32元/月,月租金自2026-10-31~2027-10-31递增4.00% ,即递增后人民币为 3606.01元/月,以此类推。", # "remark": "如:月租金自2024-10-31~2025-10-31递增3.00% ,即递增后人民币为 3467.32元/月,月租金自2026-10-31~2027-10-31递增4.00% ,即递增后人民币为 3606.01元/月,以此类推。",
"text": "{{递增条款详情}}" # "text": "{{递增条款详情}}"
} # }
] # ]
}, # },
{ # {
"name": "免租条款", # "name": "免租条款",
"value": [ # "value": [
{ # {
"remark": "如:2021年11月7日", # "remark": "如:2021年11月7日",
"text": "{{计租日}}" # "text": "{{计租日}}"
}, # },
{ # {
"remark": "如:7", # "remark": "如:7",
"text": "{{免租天数}}" # "text": "{{免租天数}}"
}, # },
{ # {
"remark": "如:免租期:15天,即自2022-11-15起至2022-11-21止(免租期间甲方仅免收乙方租金,其他\\n 费用应按实际产生金额由乙方支付。)\\n 2022-11-22起至2022-11-28止(免租期间甲方免收乙方租金及物业服务费,其他费用应按\\n 实际产生金额由乙方支付。)", # "remark": "如:免租期:15天,即自2022-11-15起至2022-11-21止(免租期间甲方仅免收乙方租金,其他\\n 费用应按实际产生金额由乙方支付。)\\n 2022-11-22起至2022-11-28止(免租期间甲方免收乙方租金及物业服务费,其他费用应按\\n 实际产生金额由乙方支付。)",
"text": "{{免租详情}}" # "text": "{{免租详情}}"
} # }
] # ]
}, # },
{ # {
"name": "银行账户(高端商务办公)", # "name": "银行账户(高端商务办公)",
"value": [ # "value": [
{ # {
"remark": "如:建设银行", # "remark": "如:建设银行",
"text": "{{开户银行}}" # "text": "{{开户银行}}"
}, # },
{ # {
"remark": "如:黄小慧", # "remark": "如:黄小慧",
"text": "{{收款人}}" # "text": "{{收款人}}"
}, # },
{ # {
"remark": "如:621 7002 93010 0298 221", # "remark": "如:621 7002 93010 0298 221",
"text": "{{银行账号}}" # "text": "{{银行账号}}"
} # }
] # ]
}, # },
{ # {
"name": "银行账户(创客空间)", # "name": "银行账户(创客空间)",
"value": [ # "value": [
{ # {
"remark": "如:建设银行", # "remark": "如:建设银行",
"text": "{{开户银行-创客}}" # "text": "{{开户银行-创客}}"
}, # },
{ # {
"remark": "如:黄XX", # "remark": "如:黄XX",
"text": "{{收款人-创客}}" # "text": "{{收款人-创客}}"
}, # },
{ # {
"remark": "如:621 7002 93010 0298 221", # "remark": "如:621 7002 93010 0298 221",
"text": "{{银行账号-创客}}" # "text": "{{银行账号-创客}}"
} # }
] # ]
}, # },
{ # {
"name": "银行账户(运营管理主体)", # "name": "银行账户(运营管理主体)",
"value": [ # "value": [
{ # {
"remark": "如:建设银行", # "remark": "如:建设银行",
"text": "{{开户银行-运营}}" # "text": "{{开户银行-运营}}"
}, # },
{ # {
"remark": "如:黄XX", # "remark": "如:黄XX",
"text": "{{收款人-运营}}" # "text": "{{收款人-运营}}"
}, # },
{ # {
"remark": "如:621 7002 93010 0298 221", # "remark": "如:621 7002 93010 0298 221",
"text": "{{银行账号-运营}}" # "text": "{{银行账号-运营}}"
} # }
] # ]
} # }
] # ]
} # }
]' WHERE t.uuid = 1; # ]' WHERE t.uuid = 1;
#
alter table project_floor_sub_item # alter table project_floor_sub_item
add unit_current_transaction_area decimal(10, 2) default 0.00 null comment '单元现成交面积'; # add unit_current_transaction_area decimal(10, 2) default 0.00 null comment '单元现成交面积';
#
alter table project_floor_sub_item # alter table project_floor_sub_item
add unit_current_transaction_rent decimal(10, 2) default 0.00 null comment '单元现成交月租金'; # add unit_current_transaction_rent decimal(10, 2) default 0.00 null comment '单元现成交月租金';
#
alter table project_floor_sub_item # alter table project_floor_sub_item
add area_coefficient decimal(6, 2) default 0 null comment '面积系数'; # add area_coefficient decimal(6, 2) default 0 null comment '面积系数';
#
alter table project_floor_sub_item # alter table project_floor_sub_item
add rent_coefficient decimal(6, 2) default 0 null comment '租金系数'; # add rent_coefficient decimal(6, 2) default 0 null comment '租金系数';
#
ALTER TABLE contract_unit # ALTER TABLE contract_unit
ADD column avg_area decimal(10, 2) null comment '前三任租客平均面积', # ADD column avg_area decimal(10, 2) null comment '前三任租客平均面积',
ADD column avg_rent decimal(10, 2) null comment '前三任租客的平均月租金单价', # ADD column avg_rent decimal(10, 2) null comment '前三任租客的平均月租金单价',
ADD column avg_rent_no_manage decimal(10, 2) null comment '不含管理费的月租单价', # ADD column avg_rent_no_manage decimal(10, 2) null comment '不含管理费的月租单价',
ADD column avg_rent_no_manage_total decimal(10, 2) null comment '不含管理费的月租总价', # ADD column avg_rent_no_manage_total decimal(10, 2) null comment '不含管理费的月租总价',
ADD column valid_rent_total decimal(10, 2) null comment '有效月租金总价'; # ADD column valid_rent_total decimal(10, 2) null comment '有效月租金总价';
#
alter table unit_rental_history # alter table unit_rental_history
modify lease_term_years varchar(15) null comment '租期(年)'; # modify lease_term_years varchar(15) null comment '租期(年)';
#
alter table unit_rental_history # alter table unit_rental_history
add record_type tinyint not null comment '记录类型 1:系统生成 2:用户导入'; # add record_type tinyint not null comment '记录类型 1:系统生成 2:用户导入';
#
alter table unit_rental_history # alter table unit_rental_history
add data_digest varchar(200) null comment '数据摘要 md5值,用户导入用于去重. #dateType=2时,此字段才有值'; # add data_digest varchar(200) null comment '数据摘要 md5值,用户导入用于去重. #dateType=2时,此字段才有值';
#
alter table unit_rental_history # alter table unit_rental_history
modify historical_order int null comment '历史排序 (如:第一任,第二任)'; # modify historical_order int null comment '历史排序 (如:第一任,第二任)';
#
# CREATE TABLE `historical_tenant`
# (
# `historical_tenant_uuid` BIGINT NOT NULL COMMENT '历史租户uuid',
# `serial_number` INT AUTO_INCREMENT COMMENT '序号',
# `company_uuid` VARCHAR(64) COMMENT '企业uuid',
# `company_name` VARCHAR(255) COMMENT '企业名称/个人名称',
# `region_uuid` VARCHAR(64) COMMENT 'region uuid',
# `region_name` VARCHAR(255) COMMENT '所属城市名',
# `project_uuid` VARCHAR(64) COMMENT '项目id',
# `project_name` VARCHAR(255) COMMENT '项目名字',
# `lease_start_date` DATETIME COMMENT '租赁起始日期',
# `lease_end_date` DATETIME COMMENT '租赁结束日期',
# `contract_lease_type` INT COMMENT '租赁类型: 1: 按套间租赁 2: 按面积租赁 3: 按工位租赁',
# `is_delete` TINYINT DEFAULT 0 COMMENT '是否删除 0:未删除 1:已删除',
# create_time DATETIME DEFAULT CURRENT_TIMESTAMP null comment '创建时间',
# update_time DATETIME DEFAULT CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
# `data_digest` VARCHAR(200) COMMENT '数据摘要 md5值用于去重',
# PRIMARY KEY (`historical_tenant_uuid`),
# UNIQUE `idx_serial_number` (`serial_number`)
# ) ENGINE = InnoDB
# DEFAULT CHARSET = utf8mb4 COMMENT ='历史租户表';
#
# ALTER TABLE historical_tenant
# ADD COLUMN contract_uuid BIGINT(20) COMMENT 'contract uuid';
#
# alter table historical_tenant
# modify serial_number int not null comment '序号';
#
# alter table historical_tenant
# drop key idx_serial_number;
#
# alter table historical_tenant
# add company_type tinyint null comment '企业类型 1:企业 2:个人';
# 执行时间: 2023-06-02 10:37:45
UPDATE project_floor_sub_item UPDATE project_floor_sub_item
...@@ -831,6 +831,47 @@ UPDATE mfg.project_unit_rental t ...@@ -831,6 +831,47 @@ UPDATE mfg.project_unit_rental t
SET t.delete_time = null SET t.delete_time = null
WHERE t.uuid LIKE 'b1d733973d654c158eb52efade7f0985' ESCAPE '#'; WHERE t.uuid LIKE 'b1d733973d654c158eb52efade7f0985' ESCAPE '#';
UPDATE mfg.contract_follow_admin t
SET t.user_uuid = '0574a13a123b46d6908a78a6dd26a31f',
t.name = '鞠阳阳'
WHERE t.uuid = 1663437379068297217;
UPDATE mfg.contract_follow_admin t
SET t.user_uuid = 'bfdf18fe23194caea64aa8928bace661',
t.name = '江曼-Miya'
WHERE t.uuid = 1635167075596103682;
UPDATE mfg.contract_follow_admin t
SET t.user_uuid = 'c3e439a96db94297abe225c19806597a',
t.name = '李诗婧'
WHERE t.uuid = 1663743429277450242;
# 恢复需收金额
UPDATE
bill_item
SET amount_completed=real_amount
WHERE contract_uuid = 1587087649771880450
AND is_delete = 0
AND real_amount >0;
# 恢复付款类型
UPDATE bill_item
SET type =1
WHERE contract_uuid = 1587087649771880450
AND is_delete = 0
AND (
fee_type IN ('租金', '固定水电费', '物业管理费', '电费')
OR is_guarantee=1
);
# 删除需收金额
UPDATE bill_item
SET need_amount=0.00
WHERE contract_uuid = 1587087649771880450
AND is_delete = 0
AND settlement_status !=4
AND should_amount=amount_completed;
......
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