Commit b6ba1fd7 authored by frank.xa.zhang's avatar frank.xa.zhang

add table AssetGroupResult and AssetsList to script

parent b3207384
......@@ -1124,6 +1124,54 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`modified_report_cell` (
PRIMARY KEY (`id`)
) 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
SELECT
a.ID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment