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
98c28f8d
Commit
98c28f8d
authored
Apr 18, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预提公式及EAM预览导出功能
parent
19c33697
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
5 deletions
+44
-5
CitPreviewDataServiceImpl.java
.../taxtech/atms/service/impl/CitPreviewDataServiceImpl.java
+36
-1
CitReportServiceImpl.java
...a/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
+1
-1
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+2
-2
YT.java
...wc/taxtech/atms/vat/service/impl/report/functions/YT.java
+5
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitPreviewDataServiceImpl.java
View file @
98c28f8d
...
...
@@ -134,7 +134,42 @@ public class CitPreviewDataServiceImpl extends BaseService {
//第二种导出方式
CitEAMAssetsDisposalExample
example
=
new
CitEAMAssetsDisposalExample
();
List
<
CitEAMAssetsDisposal
>
list
=
citEAMAssetsDisposalMapper
.
selectByCondition
(
citEAMAssetsDisposalDto
);
CitEAMAssetsDisposalExample
.
Criteria
criteria
=
example
.
createCriteria
();
Integer
periodStart
=
null
;
Integer
periodEnd
=
null
;
if
(
citEAMAssetsDisposalDto
.
getPeriodStart
()
!=
null
&&
!
""
.
equals
(
citEAMAssetsDisposalDto
.
getPeriodStart
())){
periodStart
=
Integer
.
parseInt
(
citEAMAssetsDisposalDto
.
getPeriodStart
());
}
if
(
citEAMAssetsDisposalDto
.
getPeriodEnd
()
!=
null
&&!
""
.
equals
(
citEAMAssetsDisposalDto
.
getPeriodEnd
())){
periodEnd
=
Integer
.
parseInt
(
citEAMAssetsDisposalDto
.
getPeriodEnd
());
}
if
(
citEAMAssetsDisposalDto
.
getAssetLabelNumber
()
!=
null
&&
!
""
.
equals
(
citEAMAssetsDisposalDto
.
getAssetLabelNumber
())){
criteria
.
andAssetLabelNumberEqualTo
(
citEAMAssetsDisposalDto
.
getAssetLabelNumber
());
}
if
(
citEAMAssetsDisposalDto
.
getCompensationSaleAmount
()
!=
null
&&
!
""
.
equals
(
citEAMAssetsDisposalDto
.
getCompensationSaleAmount
())){
criteria
.
andCompensationSaleAmountEqualTo
(
citEAMAssetsDisposalDto
.
getCompensationSaleAmount
());
}
if
(
periodEnd
!=
null
&&
periodStart
!=
null
){
criteria
.
andPeriodBetween
(
periodStart
,
periodEnd
);
}
if
(
periodStart
==
null
&&
periodEnd
!=
null
){
criteria
.
andPeriodLessThanOrEqualTo
(
periodEnd
);
}
if
(
periodStart
!=
null
&&
periodEnd
==
null
){
criteria
.
andPeriodGreaterThanOrEqualTo
(
periodStart
);
}
/*if(citEAMAssetsDisposalDto.getOrganizationId() != null){
criteria.andOrganizationIdEqualTo(citEAMAssetsDisposalDto.getOrganizationId());
}
*/
if
(
citEAMAssetsDisposalDto
.
getPeriod
()
!=
null
&&
!
""
.
equals
(
citEAMAssetsDisposalDto
.
getPeriod
())){
criteria
.
andPeriodEqualTo
(
citEAMAssetsDisposalDto
.
getPeriod
());
}
List
<
CitEAMAssetsDisposal
>
list
=
citEAMAssetsDisposalMapper
.
selectByExample
(
example
);
if
(
list
.
size
()==
0
){
return
0
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
View file @
98c28f8d
...
...
@@ -64,7 +64,7 @@ public class CitReportServiceImpl extends BaseService {
private
final
static
Logger
logger
=
LoggerFactory
.
getLogger
(
CitReportServiceImpl
.
class
);
//报表公式
private
final
static
String
[]
functions
=
{
"SGSR"
,
"FSJZ"
,
"ND"
,
"BB"
,
"XXFP"
,
"GZSD"
,
"PC"
,
"JXFPMX"
,
"JXFP"
,
"PSUM"
,
"DFFS"
,
"JFFS"
,
"WPSR"
,
"WPNAME"
,
"WPTYPE"
,
"SUM2"
,
"RSUMIF"
,
"QMYE"
,
"ZC"
};
"JXFP"
,
"PSUM"
,
"DFFS"
,
"JFFS"
,
"WPSR"
,
"WPNAME"
,
"WPTYPE"
,
"SUM2"
,
"RSUMIF"
,
"QMYE"
,
"ZC"
,
"YT"
};
//生成总分机构分配表时取营业收入时所要用的条件
private
final
static
String
[]
attributeArr
=
{
"主营业务收入-销售商品收入"
,
"主营业务收入-提供劳务收入"
,
"其他业务收入-其他"
};
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
98c28f8d
...
...
@@ -871,13 +871,13 @@ public class ReportGeneratorImpl {
new
BB
(
formulaContext
),
new
XXFP
(
formulaContext
),
new
GZSD
(
formulaContext
),
new
PC
(
formulaContext
)
,
new
JXFPMX
(
formulaContext
),
new
JXFP
(
formulaContext
),
new
PSUM
(
formulaContext
),
new
DFFS
(
formulaContext
),
new
JFFS
(
formulaContext
),
new
WPSR
(
formulaContext
),
new
WPNAME
(
formulaContext
),
new
WPTYPE
(
formulaContext
),
new
SUM2
(
formulaContext
),
new
RSUMIF
(
formulaContext
),
new
QMYE
(
formulaContext
),
new
ZC
(
formulaContext
)};
//为CIT复制的一份注册自定义公式
new
SUM2
(
formulaContext
),
new
RSUMIF
(
formulaContext
),
new
QMYE
(
formulaContext
),
new
ZC
(
formulaContext
)
,
new
YT
(
formulaContext
)
};
//为CIT复制的一份注册自定义公式
}
else
{
functionImpls
=
new
FreeRefFunction
[]{
new
SGSR
(
formulaContext
),
new
FSJZ
(
formulaContext
),
new
ND
(
formulaContext
),
new
pwc
.
taxtech
.
atms
.
vat
.
service
.
impl
.
report
.
functions
.
validation
.
BB
(
formulaContext
),
new
XXFP
(
formulaContext
),
new
GZSD
(
formulaContext
),
new
PC
(
formulaContext
)
,
new
JXFPMX
(
formulaContext
),
new
JXFP
(
formulaContext
),
new
PSUM
(
formulaContext
),
new
DFFS
(
formulaContext
),
new
JFFS
(
formulaContext
),
new
WPSR
(
formulaContext
),
new
WPNAME
(
formulaContext
),
new
WPTYPE
(
formulaContext
),
new
SUM2
(
formulaContext
),
new
RSUMIF
(
formulaContext
),
new
QMYE
(
formulaContext
),
new
ZC
(
formulaContext
)};
//为CIT复制的一份注册自定义公式
new
SUM2
(
formulaContext
),
new
RSUMIF
(
formulaContext
),
new
QMYE
(
formulaContext
),
new
ZC
(
formulaContext
)
,
new
YT
(
formulaContext
)
};
//为CIT复制的一份注册自定义公式
}
//**************************** 为CIT复制的一份注册自定义公式 ****************************
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/YT.java
View file @
98c28f8d
...
...
@@ -39,7 +39,11 @@ public class YT extends FunctionBase implements FreeRefFunction {
FormulaDataSourceDetailType
.
AssetDetailDataSourceDto
,
value
,
formulaContext
.
getPeriod
(),
formulaContext
.
getReportTemplateGroupId
(),
formulaContext
.
getProjectId
());
saveFormulaBlock
(
0
,
ec
,
formulaExpression
,
value
,
dataSourceId
,
formulaContext
.
getProjectId
());
return
new
NumberEval
(
value
.
doubleValue
());
if
(
value
.
intValue
()>
0
){
return
new
NumberEval
(
value
.
doubleValue
());
}
else
{
return
new
NumberEval
(
0.00
);
}
}
catch
(
Exception
e
){
return
new
NumberEval
(
0.00
);
}
...
...
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