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
e0ac49ad
Commit
e0ac49ad
authored
Aug 24, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed filling issues
parent
440ffbd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+7
-2
JXFPMX.java
...axtech/atms/vat/service/impl/report/functions/JXFPMX.java
+7
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
e0ac49ad
...
...
@@ -308,7 +308,8 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
ProjectServiceTypeExample
projectServiceTypeExample
=
new
ProjectServiceTypeExample
();
projectServiceTypeExample
.
createCriteria
().
andServiceTypeIDEqualTo
(
serviceTypeStr
).
andProjectIDEqualTo
(
projectId
);
Optional
<
Long
>
templateGroupID
=
projectServiceTypeMapper
.
selectByExample
(
projectServiceTypeExample
).
stream
().
map
(
ProjectServiceType:
:
getTemplateGroupID
).
findFirst
();
Optional
<
Long
>
templateGroupID
=
projectServiceTypeMapper
.
selectByExample
(
projectServiceTypeExample
).
stream
()
.
map
(
ProjectServiceType:
:
getTemplateGroupID
).
findFirst
();
if
(
templateGroupID
==
null
)
{
operationResultDto
.
setResultMsg
(
"TemplateGroupNotExist"
);
return
operationResultDto
;
...
...
@@ -317,7 +318,11 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
List
<
Long
>
templateIds
;
if
(
reportType
!=
null
)
{
PeriodTemplateExample
periodTemplateExample
=
new
PeriodTemplateExample
();
periodTemplateExample
.
createCriteria
().
andTemplateGroupIdEqualTo
(
templateGroupID
.
get
()).
andPeriodEqualTo
(
period
).
andIsActiveAssociationEqualTo
(
true
).
andReportTypeEqualTo
(
reportType
);
periodTemplateExample
.
createCriteria
()
.
andTemplateGroupIdEqualTo
(
templateGroupID
.
get
())
.
andPeriodEqualTo
(
period
)
.
andIsActiveAssociationEqualTo
(
true
)
.
andReportTypeEqualTo
(
reportType
);
templateIds
=
periodTemplateMapper
.
selectByExample
(
periodTemplateExample
).
stream
().
map
(
PeriodTemplate:
:
getId
).
collect
(
Collectors
.
toList
());
}
else
{
PeriodTemplateExample
periodTemplateExample
=
new
PeriodTemplateExample
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JXFPMX.java
View file @
e0ac49ad
...
...
@@ -28,10 +28,17 @@ import java.util.stream.Collectors;
/// <param name="period">会计期间——三种取值结果 “-1”指上期,“0”当期,“99”当前累计(从期初到目前)</param>
/// <returns></returns>
public
class
JXFPMX
extends
FunctionBase
implements
FreeRefFunction
{
//private Boolean isSave;
public
JXFPMX
(
FormulaContext
formulaContext
)
{
super
(
formulaContext
);
}
// public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec,Boolean isSave){
// this.isSave = isSave;
// evaluate( args, ec);
// }
@Override
public
ValueEval
evaluate
(
ValueEval
[]
args
,
OperationEvaluationContext
ec
)
{
if
(
args
.
length
<
4
)
{
...
...
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