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
80dbac5d
Commit
80dbac5d
authored
Apr 18, 2019
by
chase
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
fdb2efd9
695ef748
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
ZC.java
...wc/taxtech/atms/vat/service/impl/report/functions/ZC.java
+1
-7
CitAssetsListMapper.java
...c/main/java/pwc/taxtech/atms/dao/CitAssetsListMapper.java
+3
-1
CitAssetsListExtendsMapper.xml
...c/taxtech/atms/dao/extends/CitAssetsListExtendsMapper.xml
+2
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/ZC.java
View file @
80dbac5d
...
...
@@ -60,16 +60,13 @@ public class ZC extends FunctionBase implements FreeRefFunction {
BigDecimal
totalData
=
new
BigDecimal
(
"0"
);
try
{
List
<
CitAssetDetailResultDto
>
assetDetailResultDtos
=
SpringContextUtil
.
assetsListMapper
.
getCitAssetDetialResult
(
assetType
,
assetDetailType
);
SpringContextUtil
.
assetsListMapper
.
getCitAssetDetialResult
(
assetType
,
assetDetailType
,
formulaContext
.
getProjectId
()
);
if
(
assetDetailResultDtos
!=
null
&&
assetDetailResultDtos
.
size
()>
0
){
System
.
out
.
println
(
assetDetailResultDtos
.
size
());
}
for
(
CitAssetDetailResultDto
x
:
assetDetailResultDtos
)
{
AssetDetailDataSourceDto
assetDetailDataSourceDto
=
new
AssetDetailDataSourceDto
();
assetDetailDataSourceDto
.
setResultType
(
KeyValueConfigResultType
.
Accounting
.
getCode
());
assetDetailDataSourceDto
.
setAssetNumber
(
x
.
getAssetsList
().
getAssetGroupName
());
assetDetailDataSourceDto
.
setAssetGroupName
(
x
.
getAssetDetailGroup
().
getDetailGroupName
());
assetDetailDataSourceDto
.
setAssetDetailGroupName
(
x
.
getAssetDetailGroup
().
getDetailGroupName
());
assetDetailDataSourceDto
.
setAccountAcquisitionValue
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getAccountAcquisitionValue
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
assetDetailDataSourceDto
.
setAccountMonthDepreciationAmount
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getAccountMonthDepreciationAmount
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
assetDetailDataSourceDto
.
setAccountYearDepreciationAmount
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getYearDepreciationAmount
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
...
...
@@ -80,9 +77,6 @@ if(assetDetailResultDtos != null&&assetDetailResultDtos.size()>0){
assetDetailDataSourceDto
.
setTaxCurrentYearDepreciationAmount
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getTaxCurrentYearDepreciationAmount
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
assetDetailDataSourceDto
.
setTotalDifferenceAmount
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getTotalDifferenceAmount
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
assetDetailDataSourceDto
.
setYearDifferenceAmount
(
FormulaHelper
.
roundValue
(
x
.
getAssetsList
().
getYearDifferenceAmount
(),
KeyValueConfigResultType
.
Accounting
,
null
,
formulaContext
));
assetDetailDataSourceDto
.
setDepreciationPeriod
(
x
.
getAssetsList
().
getDepreciationPeriod
());
assetDetailDataSourceDto
.
setTaxDepreciationPeriod
(
x
.
getAssetsList
().
getTaxDepreciationPeriod
());
assetDetailDataSourceDto
.
setIsRetain
(
x
.
getAssetsList
().
getIsRetain
()==
0
?
false
:
true
);
assetDetailDataSourceDto
.
setDataType
(
dataType
);
assetDetailDataSourceDto
.
setName
(
Constant
.
DataSourceName
.
AssetListDataSource
);
assetDetailDataSourceDto
.
setOperationType
(
EnumOperationType
.
Single
.
getCode
());
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/CitAssetsListMapper.java
View file @
80dbac5d
...
...
@@ -120,7 +120,8 @@ public interface CitAssetsListMapper extends MyMapper {
List
<
CitAssetEamMapping
>
getAssetEamMapping
(
CitAssetsList
citAsset
);
List
<
CitAssetDetailResultDto
>
getCitAssetDetialResult
(
@Param
(
"assetType"
)
Integer
assetType
,
@Param
(
"assetDetailType"
)
Integer
assetDetailType
);
@Param
(
"assetDetailType"
)
Integer
assetDetailType
,
@Param
(
"projectId"
)
String
projectId
);
CitAssetSumDataDto
getSumData
(
@Param
(
"projectId"
)
String
projectId
);
}
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitAssetsListExtendsMapper.xml
View file @
80dbac5d
...
...
@@ -282,6 +282,7 @@
<select
id=
"getCitAssetDetialResult"
resultMap=
"citAssetDetailResultDto"
>
SELECT
sum(acquisition_value) as acquisition_value,
sum(account_acquisition_value) as account_acquisition_value,
sum(account_year_depreciation_amount) as account_year_depreciation_amount,
sum(account_total_depreciation_amount) as account_total_depreciation_amount,
sum(account_month_depreciation_amount) as account_month_depreciation_amount,
...
...
@@ -298,7 +299,7 @@
ON
assets_list.asset_detail_group_id = asset_detail_group.id
WHERE
assets_list.asset_detail_group_id IS NOT NULL
assets_list.asset_detail_group_id IS NOT NULL
and project_id=#{projectId,jdbcType=VARVHAR}
AND assets_list.asset_type = #{assetType,jdbcType=INTEGER}
AND asset_detail_group.asset_group_type = #{assetType,jdbcType=INTEGER}
AND asset_detail_group.detail_group_type = #{assetDetailType,jdbcType=INTEGER}
...
...
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