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
a390cfd0
Commit
a390cfd0
authored
Apr 04, 2019
by
Cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Orange Heap
parent
5da704a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
1 deletion
+123
-1
OrangeHeapController.java
...pwc/taxtech/atms/web/controller/OrangeHeapController.java
+62
-0
OrangeHeapService.java
.../java/pwc/taxtech/atms/web/service/OrangeHeapService.java
+61
-1
No files found.
atms-web/src/main/java/pwc/taxtech/atms/web/controller/OrangeHeapController.java
View file @
a390cfd0
...
...
@@ -26,4 +26,66 @@ public class OrangeHeapController {
return
ApiResultDto
.
success
(
tableauService
.
getUnreturnedTax
().
orElse
(
StringUtils
.
EMPTY
));
}
//以上是示范代码
//TODO 加入其他图表
@ResponseBody
@GetMapping
(
"taxComparison"
)
public
ApiResultDto
getTaxComparison
()
{
return
ApiResultDto
.
success
(
tableauService
.
getTaxComparison
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"otherCountries"
)
public
ApiResultDto
getOtherCountries
()
{
return
ApiResultDto
.
success
(
tableauService
.
getOtherCountries
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"costAnalysis"
)
public
ApiResultDto
getCostAnalysis
()
{
return
ApiResultDto
.
success
(
tableauService
.
getCostAnalysis
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"profitAndLoss"
)
public
ApiResultDto
getProfitAndLoss
()
{
return
ApiResultDto
.
success
(
tableauService
.
getProfitAndLoss
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"otherDomesticData"
)
public
ApiResultDto
getOtherDomesticData
()
{
return
ApiResultDto
.
success
(
tableauService
.
getOtherDomesticData
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"docSituation"
)
public
ApiResultDto
getDocSituation
()
{
return
ApiResultDto
.
success
(
tableauService
.
getDocSituation
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"globalOverview"
)
public
ApiResultDto
getGlobalOverview
()
{
return
ApiResultDto
.
success
(
tableauService
.
getGlobalOverview
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"mexicanTax"
)
public
ApiResultDto
getMexicanTax
()
{
return
ApiResultDto
.
success
(
tableauService
.
getMexicanTax
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"australianTax"
)
public
ApiResultDto
getAustralianTax
()
{
return
ApiResultDto
.
success
(
tableauService
.
getAustralianTax
().
orElse
(
StringUtils
.
EMPTY
));
}
@ResponseBody
@GetMapping
(
"brazilianTax"
)
public
ApiResultDto
getBrazilianTax
()
{
return
ApiResultDto
.
success
(
tableauService
.
getBrazilianTax
().
orElse
(
StringUtils
.
EMPTY
));
}
}
atms-web/src/main/java/pwc/taxtech/atms/web/service/OrangeHeapService.java
View file @
a390cfd0
...
...
@@ -47,12 +47,72 @@ public class OrangeHeapService {
}
public
Optional
<
String
>
getUnreturnedTax
()
{
//
Optional<String> optional = authUserHelper.getCurrentAuditor(
);
//
Optional<String> optional = Optional.of("admin"
);
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauUnreturnedTax
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
//TODO 加入其他图表
public
Optional
<
String
>
getTaxComparison
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauTaxComparison
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getOtherCountries
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauOtherCountries
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getCostAnalysis
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauCostAnalysis
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getProfitAndLoss
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauProfitAndLoss
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getOtherDomesticData
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauOtherDomesticData
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getDocSituation
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauDocSituation
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getGlobalOverview
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauGlobalOverview
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getMexicanTax
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauMexicanTax
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getAustralianTax
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauAustralianTax
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
public
Optional
<
String
>
getBrazilianTax
()
{
Optional
<
String
>
optional
=
Optional
.
of
(
"admin"
);
return
optional
.
map
(
s
->
String
.
format
(
systemConfig
.
getTableauBrazilianTax
(),
getTicket
(
s
).
orElse
(
StringUtils
.
EMPTY
)));
}
}
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