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
8f02161c
Commit
8f02161c
authored
Jul 28, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
27d1671b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
8 deletions
+39
-8
01-同步SQL记录.sql
MFG/01-同步SQL记录.sql
+10
-4
常用SQL备份.sql
MFG/常用SQL备份.sql
+21
-3
线上数据修正SQL记录.sql
MFG/线上数据修正SQL记录.sql
+8
-1
No files found.
MFG/01-同步SQL记录.sql
View file @
8f02161c
alter
table
admin
#
alter
table
admin
alter
table
admin
add
disabled
tinyint
(
1
)
default
0
null
comment
'是否禁用 0:未禁用 1:已禁用 default: 0'
;
\ No newline at end of file
#
alter
table
admin
#
add
disabled
tinyint
(
1
)
default
0
null
comment
'是否禁用 0:未禁用 1:已禁用 default: 0'
;
#
#
alter
table
expand_data
#
modify
data_system_name
int
(
1
)
not
null
comment
'数据在系统内的名称. 1.改造复原 2:天花板 3:墙面 4:形象墙 5:地面 6:照明设施 7:门窗 8:配电设施 9:门禁 10:家私损坏 11:门锁 12:其他 13:打印费及其他费用 14:家私缺陷/清理费用 15:清洁费用 16:商务服务费 17:是否办妥以租赁单元为注册地址或营业地址的工商注销或变更手续 18:应交商务服务费用 19:应交滞纳金及违约金 20:应交总结金额 21:交楼单验收项目 22: 企业资料 23: 推荐入驻商务小程序二维码 24: 城市仲裁院信息 25:应交滞纳金及违约金(租赁主体) 26:应交滞纳金及违约金(运营管理主体) 在系统内是一个枚举'
;
#
#
执行时间
:
2023
年
7
月
28
号
14
:
23
\ No newline at end of file
MFG/常用SQL备份.sql
View file @
8f02161c
###
到
访人数据查询
###
到
访人数据查询
...
...
@@ -57,4 +57,22 @@ WHERE b.bill_code IN (
'ZD-CDS-CDLRZDGC-2608-202306-1338798'
)
AND
b
.
is_delete
=
0
AND
bi
.
is_delete
=
0
;
\ No newline at end of file
AND
bi
.
is_delete
=
0
;
SELECT
c
.
uuid
AS
`合同ID`
,
c
.
contract_code
AS
`合同编号`
,
c
.
project_name
AS
`项目名称`
,
c
.
leased_area
AS
`合同租赁面积`
,
l
.
uuid
AS
`意向书ID`
,
l
.
contract_code
AS
`意向书编号`
,
l
.
leased_area
AS
`意向书租赁面积`
FROM
contract
AS
c
INNER
JOIN
contract
AS
l
ON
c
.
associations_uuid
=
l
.
uuid
WHERE
c
.
is_delete
=
0
AND
c
.
is_draft
=
0
AND
c
.
contract_type
=
1
AND
c
.
associations_uuid
is
not
null
AND
l
.
is_delete
=
0
AND
l
.
is_draft
=
0
AND
l
.
contract_type
=
2
AND
c
.
leased_area
!=
l
.
leased_area
;
\ No newline at end of file
MFG/线上数据修正SQL记录.sql
View file @
8f02161c
UPDAT
E
project_floor_sub_item
UPDAT
E
project_floor_sub_item
...
...
@@ -1072,6 +1072,13 @@ UPDATE mfg.bill t
SET
t
.
type
=
1
WHERE
t
.
uuid
=
1595341300666269698
;
UPDATE
mfg
.
contract_company
t
SET
t
.
is_delete
=
1
WHERE
t
.
uuid
=
1682223097152339970
;
...
...
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