Commit 81b7230d by 仲光辉

feat: add sql.

parent 2c348afb
# ## 变更协议 # ## 变更协议
...@@ -2460,6 +2460,37 @@ UPDATE mfg_dev_v1.text_data t SET t.value = '[ ...@@ -2460,6 +2460,37 @@ UPDATE mfg_dev_v1.text_data t SET t.value = '[
} }
]' WHERE t.uuid = 1; ]' WHERE t.uuid = 1;
alter table project_floor_sub_item
add unit_current_transaction_area decimal(10, 2) default 0.00 null comment '单元现成交面积';
alter table project_floor_sub_item
add unit_current_transaction_rent decimal(10, 2) default 0.00 null comment '单元现成交月租金';
alter table project_floor_sub_item
add area_coefficient decimal(6, 2) default 0 null comment '面积系数';
alter table project_floor_sub_item
add rent_coefficient decimal(6, 2) default 0 null comment '租金系数';
ALTER TABLE contract_unit
ADD column avg_area 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_total decimal(10, 2) null comment '不含管理费的月租总价',
ADD column valid_rent_total decimal(10, 2) null comment '有效月租金总价';
alter table unit_rental_history
modify lease_term_years varchar(15) null comment '租期(年)';
alter table unit_rental_history
add record_type tinyint not null comment '记录类型 1:系统生成 2:用户导入';
alter table unit_rental_history
add data_digest varchar(200) null comment '数据摘要 md5值,用户导入用于去重. #dateType=2时,此字段才有值';
alter table unit_rental_history
modify historical_order int null comment '历史排序 (如:第一任,第二任)';
......
UPDATE project_floor_sub_item UPDATE project_floor_sub_item
...@@ -814,6 +814,24 @@ SET t.throw_lease_time = null, ...@@ -814,6 +814,24 @@ SET t.throw_lease_time = null,
t.delete_time = null t.delete_time = null
WHERE t.uuid LIKE '6e6edc300e844c1ea78123a58e798c1e' ESCAPE '#'; WHERE t.uuid LIKE '6e6edc300e844c1ea78123a58e798c1e' ESCAPE '#';
UPDATE mfg.project_unit_rental t
SET t.delete_time = null
WHERE t.uuid LIKE 'b0addb80a6604dc38c82ca5ede8ced59' ESCAPE '#';
UPDATE mfg.project_unit_rental t
SET t.delete_time = null
WHERE t.uuid LIKE '92bea2ec2cce4590bb11e727a2678c59' ESCAPE '#';
UPDATE mfg.project_unit_rental t
SET t.delete_time = null
WHERE t.uuid LIKE 'ce0a3aae098448b7bf36f5a4ea2045c4' ESCAPE '#';
UPDATE mfg.project_unit_rental t
SET t.delete_time = null
WHERE t.uuid LIKE 'b1d733973d654c158eb52efade7f0985' ESCAPE '#';
......
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