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
fcf5dca7
Commit
fcf5dca7
authored
Jun 25, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
7962dbe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
4 deletions
+44
-4
常用SQL备份.sql
常用SQL备份.sql
+15
-3
线上数据修正SQL记录.sql
线上数据修正SQL记录.sql
+29
-1
No files found.
常用SQL备份.sql
View file @
fcf5dca7
###
到
访人数据查询
###
到
访人数据查询
...
...
@@ -45,4 +45,16 @@ SELECT
is_delete
FROM
bill_item
WHERE
contract_code
=
'HT-CQS-GJZXT1-2705-07-202302-1368'
AND
fee_type
=
'滞纳金'
;
\ No newline at end of file
AND
fee_type
=
'滞纳金'
;
#
关闭账单
UPDATE
bill
AS
b
INNER
JOIN
bill_item
AS
bi
ON
b
.
uuid
=
bi
.
bill_uuid
SET
b
.
settlement_status
=
4
,
bi
.
settlement_status
=
4
WHERE
b
.
bill_code
IN
(
'ZD-CDS-CDLRZDGC-2608-202306-1338799'
,
'ZD-CDS-CDLRZDGC-2608-202306-1338798'
)
AND
b
.
is_delete
=
0
AND
bi
.
is_delete
=
0
;
\ No newline at end of file
线上数据修正SQL记录.sql
View file @
fcf5dca7
UPDAT
E
project_floor_sub_item
UPDAT
E
project_floor_sub_item
...
...
@@ -963,6 +963,34 @@ SET t.delete_time = null
WHERE
t
.
uuid
LIKE
'9d83bfaf545748b8a1049b50fa3c167b'
ESCAPE
'#'
;
#
恢复需收金额
UPDATE
bill_item
SET
amount_completed
=
real_amount
WHERE
contract_uuid
=
1587349084729110529
AND
is_delete
=
0
AND
real_amount
>
0
;
#
删除需收金额
UPDATE
bill_item
SET
need_amount
=
0
.
00
WHERE
contract_uuid
=
1587349084729110529
AND
is_delete
=
0
AND
settlement_status
!=
4
AND
should_amount
=
amount_completed
;
#
关闭账单
UPDATE
bill
AS
b
INNER
JOIN
bill_item
AS
bi
ON
b
.
uuid
=
bi
.
bill_uuid
SET
b
.
settlement_status
=
4
,
bi
.
settlement_status
=
4
WHERE
b
.
bill_code
IN
(
'ZD-CDS-CDLRZDGC-2608-202306-1338799'
,
'ZD-CDS-CDLRZDGC-2608-202306-1338798'
)
AND
b
.
is_delete
=
0
AND
bi
.
is_delete
=
0
;
...
...
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