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
e8d180c5
Commit
e8d180c5
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete formula service interface
parent
53bc8a3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
22 deletions
+3
-22
FormulaController.java
...n/java/pwc/taxtech/atms/controller/FormulaController.java
+2
-2
FormulaService.java
...rc/main/java/pwc/taxtech/atms/service/FormulaService.java
+0
-15
FormulaServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/FormulaServiceImpl.java
+1
-5
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/FormulaController.java
View file @
e8d180c5
...
@@ -7,14 +7,14 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -7,14 +7,14 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.service.
FormulaService
;
import
pwc.taxtech.atms.service.
impl.FormulaServiceImpl
;
@RestController
@RestController
@RequestMapping
(
"/api/v1/formula"
)
@RequestMapping
(
"/api/v1/formula"
)
public
class
FormulaController
extends
BaseController
{
public
class
FormulaController
extends
BaseController
{
@Autowired
@Autowired
FormulaService
formulaService
;
FormulaService
Impl
formulaService
;
@ResponseBody
@ResponseBody
@ApiOperation
(
value
=
""
)
@ApiOperation
(
value
=
""
)
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/FormulaService.java
deleted
100644 → 0
View file @
53bc8a3d
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.dto.formula.FormulaParamConfigDto
;
import
pwc.taxtech.atms.dto.formula.FormulaParamMappingDto
;
import
pwc.taxtech.atms.entity.FormulaConfig
;
import
java.util.List
;
public
interface
FormulaService
{
List
<
FormulaConfig
>
getAllFormulaList
();
List
<
FormulaParamConfigDto
>
getAllFormulaParamList
();
List
<
FormulaParamMappingDto
>
getAllFormulaParamMappingList
();
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/FormulaServiceImpl.java
View file @
e8d180c5
...
@@ -16,14 +16,13 @@ import pwc.taxtech.atms.entity.FormulaConfig;
...
@@ -16,14 +16,13 @@ import pwc.taxtech.atms.entity.FormulaConfig;
import
pwc.taxtech.atms.entity.FormulaParamConfig
;
import
pwc.taxtech.atms.entity.FormulaParamConfig
;
import
pwc.taxtech.atms.entity.FormulaParamMapping
;
import
pwc.taxtech.atms.entity.FormulaParamMapping
;
import
pwc.taxtech.atms.entity.FormulaParamOption
;
import
pwc.taxtech.atms.entity.FormulaParamOption
;
import
pwc.taxtech.atms.service.FormulaService
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
FormulaServiceImpl
extends
BaseService
implements
FormulaService
{
public
class
FormulaServiceImpl
extends
BaseService
{
@Autowired
@Autowired
FormulaConfigDao
formulaConfigDao
;
FormulaConfigDao
formulaConfigDao
;
...
@@ -34,12 +33,10 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
...
@@ -34,12 +33,10 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
@Autowired
@Autowired
FormulaParamMappingDao
paramMappingDao
;
FormulaParamMappingDao
paramMappingDao
;
@Override
public
List
<
FormulaConfig
>
getAllFormulaList
()
{
public
List
<
FormulaConfig
>
getAllFormulaList
()
{
return
formulaConfigDao
.
getAll
();
return
formulaConfigDao
.
getAll
();
}
}
@Override
public
List
<
FormulaParamConfigDto
>
getAllFormulaParamList
()
{
public
List
<
FormulaParamConfigDto
>
getAllFormulaParamList
()
{
List
<
FormulaParamOption
>
paramOpts
=
formulaParamOptionDao
.
getAll
();
List
<
FormulaParamOption
>
paramOpts
=
formulaParamOptionDao
.
getAll
();
List
<
FormulaParamOptionDto
>
paramOptions
=
paramOpts
.
stream
().
map
(
x
->
{
List
<
FormulaParamOptionDto
>
paramOptions
=
paramOpts
.
stream
().
map
(
x
->
{
...
@@ -63,7 +60,6 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
...
@@ -63,7 +60,6 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
return
list
;
return
list
;
}
}
@Override
public
List
<
FormulaParamMappingDto
>
getAllFormulaParamMappingList
()
{
public
List
<
FormulaParamMappingDto
>
getAllFormulaParamMappingList
()
{
List
<
FormulaParamMapping
>
paramMap
=
paramMappingDao
.
getAll
();
List
<
FormulaParamMapping
>
paramMap
=
paramMappingDao
.
getAll
();
return
paramMap
.
stream
().
map
(
x
->
{
return
paramMap
.
stream
().
map
(
x
->
{
...
...
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