Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
仲光辉
dankal-data-view
Commits
81b7230d
Commit
81b7230d
authored
May 25, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
2c348afb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
2023年5月13之后需要执行到线上数据库的SQL.sql
2023年5月13之后需要执行到线上数据库的SQL.sql
+32
-1
线上数据修正SQL记录.sql
线上数据修正SQL记录.sql
+19
-1
No files found.
2023年5月13之后需要执行到线上数据库的SQL.sql
View file @
81b7230d
#
##
变更协议
#
##
变更协议
...
...
@@ -2460,6 +2460,37 @@ UPDATE mfg_dev_v1.text_data t SET t.value = '[
}
]'
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
'历史排序 (如:第一任,第二任)'
;
...
...
线上数据修正SQL记录.sql
View file @
81b7230d
UPDAT
E
project_floor_sub_item
UPDAT
E
project_floor_sub_item
...
...
@@ -814,6 +814,24 @@ SET t.throw_lease_time = null,
t
.
delete_time
=
null
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
'#'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment