Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
ht_project_doc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4da9a348
authored
Jul 20, 2026
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.8.4
1 parent
f7e0688a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
27 deletions
21_v5.8.4_20260728/sql/DDL/dj_financial_ddl.sql
21_v5.8.4_20260728/sql/DDL/scrm组dj_smartcarlife_ddl.sql
21_v5.8.4_20260728/sql/DDL/dj_financial_ddl.sql
0 → 100644
View file @
4da9a34
CREATE
TABLE
`nb_cb_acc_detail_tag`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`name`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'标签名称'
,
`parent_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'父节点ID'
,
`level`
int
(
11
)
NOT
NULL
COMMENT
'标签层级'
,
`path`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'节点ID路径'
,
`path_name`
varchar
(
500
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'节点名称路径'
,
`financial_report_caliber`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'财务报表口径'
,
`sort_num`
int
(
11
)
DEFAULT
NULL
COMMENT
'排序值'
,
`status`
int
(
11
)
DEFAULT
'1'
COMMENT
'状态:1启用,0停用'
,
`remark`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'备注'
,
`created_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'创建人'
,
`updated_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标记:N未删除,D已删除'
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_parent_id`
(
`parent_id`
),
KEY
`idx_level`
(
`level`
),
KEY
`idx_path`
(
`path`
),
KEY
`idx_status_deleted_flag`
(
`status`
,
`deleted_flag`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'财资明细标签目录表'
;
ALTER
TABLE
`nb_cb_acc_detail`
ADD
COLUMN
`acc_detail_tag_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'财资三级标签ID'
AFTER
`label_value4`
,
ADD
KEY
`idx_acc_detail_tag_id`
(
`acc_detail_tag_id`
);
\ No newline at end of file
21_v5.8.4_20260728/sql/DDL/scrm组dj_smartcarlife_ddl.sql
View file @
4da9a34
...
...
@@ -375,33 +375,6 @@ CREATE TABLE `dj_car_life_abnormal_flow_approval_log` (
###
范富荣
-----------------end---------------------
###
林永健
-----------------start-------------------
CREATE
TABLE
`nb_cb_acc_detail_tag`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`name`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'标签名称'
,
`parent_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'父节点ID'
,
`level`
int
(
11
)
NOT
NULL
COMMENT
'标签层级'
,
`path`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'节点ID路径'
,
`path_name`
varchar
(
500
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'节点名称路径'
,
`financial_report_caliber`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'财务报表口径'
,
`sort_num`
int
(
11
)
DEFAULT
NULL
COMMENT
'排序值'
,
`status`
int
(
11
)
DEFAULT
'1'
COMMENT
'状态:1启用,0停用'
,
`remark`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'备注'
,
`created_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'创建人'
,
`updated_date`
datetime
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标记:N未删除,D已删除'
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_parent_id`
(
`parent_id`
),
KEY
`idx_level`
(
`level`
),
KEY
`idx_path`
(
`path`
),
KEY
`idx_status_deleted_flag`
(
`status`
,
`deleted_flag`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'财资明细标签目录表'
;
ALTER
TABLE
`nb_cb_acc_detail`
ADD
COLUMN
`acc_detail_tag_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'财资三级标签ID'
AFTER
`label_value4`
,
ADD
KEY
`idx_acc_detail_tag_id`
(
`acc_detail_tag_id`
);
ALTER
TABLE
`dj_car_life_merchant_store_info`
ADD
COLUMN
`personnel_cost_rate`
DECIMAL
(
8
,
4
)
DEFAULT
NULL
COMMENT
'人员成本占比 (%)'
AFTER
`other_cost`
,
ADD
COLUMN
`renovation_equipment_cost`
DECIMAL
(
12
,
2
)
DEFAULT
NULL
COMMENT
'装修、设备总投入'
AFTER
`personnel_cost_rate`
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment