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
50f27a31
Commit
50f27a31
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete std accounts service interface
parent
269461ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
28 deletions
+14
-28
StdAccountController.java
...ava/pwc/taxtech/atms/controller/StdAccountController.java
+10
-5
StdAccountService.java
...main/java/pwc/taxtech/atms/service/StdAccountService.java
+0
-15
StdAccountServiceImpl.java
.../pwc/taxtech/atms/service/impl/StdAccountServiceImpl.java
+4
-8
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/StdAccountController.java
View file @
50f27a31
...
...
@@ -4,10 +4,15 @@ import io.swagger.annotations.ApiOperation;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.stdaccount.StandardAccountDto
;
import
pwc.taxtech.atms.dto.stdaccount.StdAccountFancyTreeDto
;
import
pwc.taxtech.atms.service.
StdAccountService
;
import
pwc.taxtech.atms.service.
impl.StdAccountServiceImpl
;
import
java.util.Collections
;
import
java.util.List
;
...
...
@@ -17,12 +22,12 @@ import java.util.List;
public
class
StdAccountController
extends
BaseController
{
@Autowired
private
StdAccountService
stdAccountService
;
private
StdAccountService
Impl
stdAccountService
;
@ResponseBody
@ApiOperation
(
value
=
"获取科目层级"
)
@RequestMapping
(
value
=
"stdAccountHierarchy"
,
method
=
RequestMethod
.
GET
)
public
List
<
StdAccountFancyTreeDto
>
getStdAccountHierarchy
(
@RequestParam
(
name
=
"orgID"
)
String
orgId
)
{
public
List
<
StdAccountFancyTreeDto
>
getStdAccountHierarchy
(
@RequestParam
(
name
=
"orgID"
)
String
orgId
)
{
if
(
StringUtils
.
isBlank
(
orgId
))
{
return
Collections
.
emptyList
();
}
...
...
@@ -64,6 +69,6 @@ public class StdAccountController extends BaseController {
}
catch
(
Exception
e
)
{
logger
.
error
(
"GetStdAccountByIndustry error."
,
e
);
}
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/StdAccountService.java
deleted
100644 → 0
View file @
269461ff
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.dto.stdaccount.StandardAccountDto
;
import
pwc.taxtech.atms.dto.stdaccount.StdAccountFancyTreeDto
;
import
java.util.List
;
public
interface
StdAccountService
{
List
<
StdAccountFancyTreeDto
>
getStdAccountHierarchy
(
String
orgId
)
throws
ServiceException
;
List
<
StandardAccountDto
>
GetStdAccountLinkEtsAccount
(
String
orgId
,
String
accountSetId
);
List
<
StandardAccountDto
>
getStdAccountByIndustry
(
String
industryId
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/StdAccountServiceImpl.java
View file @
50f27a31
...
...
@@ -6,19 +6,18 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.constant.ActiveStatus
;
import
pwc.taxtech.atms.constant.StandAccountConstant
;
import
pwc.taxtech.atms.constant.enums.StdAccountEnum
;
import
pwc.taxtech.atms.dao.OrganizationMapper
;
import
pwc.taxtech.atms.dao.StandardAccountMapper
;
import
pwc.taxtech.atms.dao.StandardAccountDao
;
import
pwc.taxtech.atms.dao.StandardAccountMapper
;
import
pwc.taxtech.atms.dto.stdaccount.StandardAccountDto
;
import
pwc.taxtech.atms.dto.stdaccount.StdAccountFancyTreeDto
;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.entity.StandardAccount
;
import
pwc.taxtech.atms.entity.StandardAccountExample
;
import
pwc.taxtech.atms.
service.StdAccountService
;
import
pwc.taxtech.atms.
exception.ServiceException
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
@@ -27,7 +26,7 @@ import java.util.Map;
import
java.util.stream.Collectors
;
@Service
public
class
StdAccountServiceImpl
extends
BaseService
implements
StdAccountService
{
public
class
StdAccountServiceImpl
extends
BaseService
{
@Autowired
private
StandardAccountMapper
standardAccountMapper
;
...
...
@@ -37,7 +36,6 @@ public class StdAccountServiceImpl extends BaseService implements StdAccountServ
@Autowired
private
StandardAccountDao
standardAccountDao
;
@Override
public
List
<
StdAccountFancyTreeDto
>
getStdAccountHierarchy
(
String
orgId
)
throws
ServiceException
{
List
<
StdAccountFancyTreeDto
>
resultList
;
try
{
...
...
@@ -79,7 +77,6 @@ public class StdAccountServiceImpl extends BaseService implements StdAccountServ
return
resultList
;
}
@Override
public
List
<
StandardAccountDto
>
GetStdAccountLinkEtsAccount
(
String
orgId
,
String
accountSetId
)
{
if
(
StringUtils
.
isBlank
(
orgId
))
{
return
Collections
.
emptyList
();
...
...
@@ -101,10 +98,9 @@ public class StdAccountServiceImpl extends BaseService implements StdAccountServ
return
Collections
.
emptyList
();
}
@Override
public
List
<
StandardAccountDto
>
getStdAccountByIndustry
(
String
industryId
)
{
StandardAccountExample
example
=
new
StandardAccountExample
();
example
.
createCriteria
().
andRuleTypeEqualTo
((
int
)
StandAccountConstant
.
TWO
).
andIsActiveEqualTo
(
ActiveStatus
.
Active
).
andIndustryIdEqualTo
(
industryId
);
example
.
createCriteria
().
andRuleTypeEqualTo
((
int
)
StandAccountConstant
.
TWO
).
andIsActiveEqualTo
(
ActiveStatus
.
Active
).
andIndustryIdEqualTo
(
industryId
);
example
.
setOrderByClause
(
"Code"
);
...
...
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