Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
b6ba1fd7
Commit
b6ba1fd7
authored
Jul 17, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add table AssetGroupResult and AssetsList to script
parent
b3207384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
CreateProjectDB.sql
...main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
+48
-0
No files found.
atms-api/src/main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
View file @
b6ba1fd7
...
@@ -1124,6 +1124,54 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`modified_report_cell` (
...
@@ -1124,6 +1124,54 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`modified_report_cell` (
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`AssetsList`
(
`ID`
varchar
(
128
)
NOT
NULL
,
`AssetNumber`
varchar
(
100
)
NOT
NULL
,
`AssetGroupName`
varchar
(
100
)
NOT
NULL
,
`AssetDetailGroupID`
varchar
(
128
)
DEFAULT
NULL
,
`AssetDescription`
text
,
`BuyDate`
datetime
DEFAULT
NULL
,
`DepreciationDate`
datetime
DEFAULT
NULL
,
`DepreciationPeriod`
int
(
11
)
DEFAULT
NULL
,
`AcquisitionValue`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`AdjustmentValue`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`DisposedDate`
datetime
DEFAULT
NULL
,
`ResidualRate`
decimal
(
18
,
5
)
DEFAULT
NULL
,
`YearDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`YearAdjustmentAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`YearEndValue`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`Status`
int
(
11
)
DEFAULT
NULL
,
`AccountAcquisitionValue`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`AccountMonthDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'计算后每月折旧额'
,
`AccountYearDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'会计计算后年折旧额'
,
`AccountTotalepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'会计计算累计折旧额'
,
`TaxDepreciationPeriod`
int
(
11
)
DEFAULT
NULL
COMMENT
'税法折旧期限'
,
`TaxToLastYearDepreciationPeriod`
int
(
11
)
DEFAULT
NULL
COMMENT
'截止去年累计折旧期间'
,
`TaxToCurrentYearDepreciationPeriod`
int
(
11
)
DEFAULT
NULL
,
`TaxYearDepreciationPeriod`
int
(
11
)
DEFAULT
NULL
,
`TaxMonthDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'月折旧额'
,
`TaxToCurrentYearDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'截止本年累计折旧额'
,
`TaxCurrentYearDepreciationAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
COMMENT
'本年折旧额'
,
`TotalDifferenceAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`YearDifferenceAmount`
decimal
(
20
,
4
)
DEFAULT
NULL
,
`IsRetain`
int
(
11
)
DEFAULT
NULL
,
`CreateTime`
datetime
NOT
NULL
,
`UpdateTime`
datetime
NOT
NULL
,
`AssetType`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`ID`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
CREATE
TABLE
IF
NOT
EXISTS
`DBKeyword_ProjectDbName`
.
`AssetGroupResult`
(
`ID`
varchar
(
128
)
NOT
NULL
,
`AssetName`
varchar
(
200
)
NOT
NULL
,
`AssetGroupID`
varchar
(
128
)
NOT
NULL
,
`AssetDetailGroupID`
varchar
(
128
)
NOT
NULL
,
`TaxDepreciationPeriod`
int
(
11
)
DEFAULT
NULL
,
`CreateTime`
datetime
NOT
NULL
,
`UpdateTime`
datetime
NOT
NULL
,
PRIMARY
KEY
(
`ID`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
Insert
INTO
EnterpriseAccount
Insert
INTO
EnterpriseAccount
SELECT
SELECT
a
.
ID
,
a
.
ID
,
...
...
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