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
ac5d2336
Commit
ac5d2336
authored
Apr 10, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
8fccf9cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
5 deletions
+42
-5
2022.05.25 之后需要在线上数据执行的SQL.sql
2022.05.25 之后需要在线上数据执行的SQL.sql
+4
-1
常用SQL备份.sql
常用SQL备份.sql
+19
-3
线上数据修正SQL记录.sql
线上数据修正SQL记录.sql
+19
-1
No files found.
2022.05.25 之后需要在线上数据执行的SQL.sql
View file @
ac5d2336
#
#
2
022
.
05
.
25
#
#
2
022
.
05
.
25
...
...
@@ -5803,6 +5803,9 @@ create index company_region_uuid_index
alter
table
bill_item
modify
bill_tag
int
(
1
)
default
0
null
comment
'账单标签: 0:普通账单 1:退租合同账单快照(用于撤销退租之后的账单回退) 2:退租手动添加账单 (用于撤销退租之后删除退租时手动添加的账单) 3:账单金额已编辑(退租时编辑) 4:结清时生产的滞纳金 5:仅计算不收取的时候,不需要计算的被删除的滞纳金 6: 定时任务计算的滞纳金 default: 0'
;
alter
table
contract
modify
surrender_type
int
(
1
)
null
comment
'退租类型: 1:正常退租 2:提前退租(和平解约) 4:异常退租(跑路退租)'
;
常用SQL备份.sql
View file @
ac5d2336
###
到
访人数据查询
###
到
访人数据查询
...
...
@@ -29,4 +29,20 @@ WHERE ccprs.is_delete = 0
'8f906e20ce0f4d10b2b0d8c95436fe61'
)
GROUP
BY
c
.
uuid
HAVING
SUM
(
cu
.
rent
)
<>
`合同单价`
;
\ No newline at end of file
HAVING
SUM
(
cu
.
rent
)
<>
`合同单价`
;
SELECT
contract_code
AS
`合同编号`
,
bill_code
AS
`账单编号`
,
fee_type
AS
`费用类型`
,
should_amount
AS
`应收金额`
,
charging_start_date
AS
`计费开始日期`
,
charging_end_date
AS
`计费结束日期`
,
pay_date
AS
`付款日期`
,
create_time
AS
`创建时间`
,
bill_uuid
AS
`账单UUID`
,
add_bills_manually
,
is_delete
FROM
bill_item
WHERE
contract_code
=
'HT-CQS-GJZXT1-2705-07-202302-1368'
AND
fee_type
=
'滞纳金'
;
\ No newline at end of file
线上数据修正SQL记录.sql
View file @
ac5d2336
UPDAT
E
project_floor_sub_item
UPDAT
E
project_floor_sub_item
...
...
@@ -403,6 +403,24 @@ WHERE t.uuid = 1547787933098000386;
UPDATE
mfg
.
bill_item
t
SET
t
.
settlement_status
=
3
WHERE
t
.
uuid
=
1595763261380820994
;
UPDATE
mfg
.
bill
t
SET
t
.
settlement_status
=
3
WHERE
t
.
uuid
=
1595763261141745683
;
UPDATE
mfg
.
bill_item
t
SET
t
.
real_amount
=
0
.
00
WHERE
t
.
uuid
=
1595763261368238081
;
UPDATE
mfg
.
project_unit_rental
t
SET
t
.
delete_time
=
null
WHERE
t
.
uuid
LIKE
'443ed24ca2a449a18dd6ba8ab4435ea8'
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