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
655eb0b8
Commit
655eb0b8
authored
Mar 30, 2019
by
CN\Frank XA Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add report validation function code --frank
parent
b44044d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+9
-6
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
655eb0b8
...
...
@@ -23,7 +23,10 @@ import org.springframework.web.multipart.MultipartFile;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.POIUtil
;
import
pwc.taxtech.atms.common.message.ErrorMessage
;
import
pwc.taxtech.atms.common.util.*
;
import
pwc.taxtech.atms.common.util.DataUtil
;
import
pwc.taxtech.atms.common.util.FileUploadUtil
;
import
pwc.taxtech.atms.common.util.MyAsserts
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.*
;
import
pwc.taxtech.atms.dao.*
;
...
...
@@ -1196,20 +1199,20 @@ public class ReportServiceImpl extends BaseService {
OperationResultDto
<
ReportDataDto
>
operationResultDto1
=
loadEbitDataFirst
(
orgId
,
period
,
operationResultDto
);
//从数据库中加载ebit数据
if
(
operationResultDto1
.
getData
().
getEbitData
()
!=
null
&&
operationResultDto1
.
getData
().
getCellData
()
!=
null
)
{
return
operationResultDto1
;
}
elseif
(
operationResultDto1
.
getData
().
getEbitData
()
==
null
&&
operationResultDto1
.
getData
().
getCellData
()
==
null
)
{
OperationResultDto
<
ReportDataDto
>
cellData
=
getCellData
(
reportId
,
getProjId
(
orgId
,
period
));
}
else
if
(
operationResultDto1
.
getData
().
getEbitData
()
==
null
&&
operationResultDto1
.
getData
().
getCellData
()
==
null
)
{
OperationResultDto
<
ReportDataDto
>
cellData
=
getCellData
(
reportId
,
getProjId
(
orgId
,
period
));
ReportDataDto
reportDataDto
=
new
ReportDataDto
();
//特殊因素考虑 默认为0 rate 默认为1%
EbitDataDto
ebitDataDto1
=
loadEbitData
(
orgId
,
period
,
specialConsideration
,
ebitRate
);
if
(
cellData
.
getData
()
!=
null
)
{
if
(
cellData
.
getData
()
!=
null
)
{
cellData
.
getData
().
setEbitData
(
ebitDataDto1
);
}
else
{
}
else
{
reportDataDto
.
setEbitData
(
ebitDataDto1
);
cellData
.
setData
(
reportDataDto
);
return
cellData
;
}
}
else
if
(
operationResultDto1
.
getData
().
getEbitData
()
==
null
&&
operationResultDto1
.
getData
().
getCellData
()
!=
null
)
{
}
else
if
(
operationResultDto1
.
getData
().
getEbitData
()
==
null
&&
operationResultDto1
.
getData
().
getCellData
()
!=
null
)
{
EbitDataDto
ebitDataDto1
=
loadEbitData
(
orgId
,
period
,
specialConsideration
,
ebitRate
);
operationResultDto1
.
getData
().
setEbitData
(
ebitDataDto1
);
}
else
{
...
...
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