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
a803d572
Commit
a803d572
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete enterprise account service interface
parent
2d4ffbb9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
141 deletions
+11
-141
EnterpriseAccountManagerController.java
...h/atms/controller/EnterpriseAccountManagerController.java
+2
-2
EnterpriseAccountService.java
...va/pwc/taxtech/atms/service/EnterpriseAccountService.java
+0
-113
AccountServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/AccountServiceImpl.java
+8
-8
EnterpriseAccountServiceImpl.java
...xtech/atms/service/impl/EnterpriseAccountServiceImpl.java
+1
-18
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/EnterpriseAccountManagerController.java
View file @
a803d572
...
...
@@ -29,7 +29,7 @@ import pwc.taxtech.atms.dto.epaccount.EnterpriseAccountAndValidateInfo;
import
pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetDto
;
import
pwc.taxtech.atms.dto.epaccount.EnterpriseAccountUploadDto
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.
EnterpriseAccountService
;
import
pwc.taxtech.atms.service.
impl.EnterpriseAccountServiceImpl
;
import
pwc.taxtech.atms.service.impl.EnterpriseAccountSetServiceImpl
;
import
pwc.taxtech.atms.service.impl.FileService
;
...
...
@@ -51,7 +51,7 @@ public class EnterpriseAccountManagerController {
@Autowired
private
EnterpriseAccountSetServiceImpl
enterpriseAccountSetService
;
@Autowired
private
EnterpriseAccountService
enterpriseAccountService
;
private
EnterpriseAccountService
Impl
enterpriseAccountService
;
@Autowired
private
FileService
fileService
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/EnterpriseAccountService.java
deleted
100644 → 0
View file @
2d4ffbb9
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
pwc.taxtech.atms.dpo.EnterpriseAccountDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.epaccount.AccountMapDto
;
import
pwc.taxtech.atms.dto.epaccount.AccountMappingDto
;
import
pwc.taxtech.atms.dto.epaccount.EnterpriseAccountAndValidateInfo
;
import
pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetDto
;
import
pwc.taxtech.atms.entity.EnterpriseAccount
;
public
interface
EnterpriseAccountService
{
/**
* Get EnterpriseAccount
* @param enterpriseAccountCode
* @param accountSetId
* @return EnterpriseAccount
*/
EnterpriseAccount
getEnterpriseAccount
(
String
enterpriseAccountCode
,
String
enterpriseAccountSetId
);
/**
* 获取标准科目列表
* @param enterpriseAccountSetId
* @return EnterpriseAccountAndValidateInfo
*/
EnterpriseAccountAndValidateInfo
getListByEnterpriseAccountSetId
(
String
enterpriseAccountSetId
);
/**
* 根据企业科目Id获取企业科目信息
* @param enterpriseAccountId
* @return The identifier.
*/
EnterpriseAccountDto
getEnterpriseAccount
(
String
enterpriseAccountId
);
/**
* 新增企业科目
* @param enterpriseAccountDto
* @return OperationResultDto<List<EnterpriseAccountDto>>
*/
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
addEnterpriseAccount
(
EnterpriseAccountDto
enterpriseAccountDto
);
/**
* 更新企业科目
* @param enterpriseAccountDto
* @return OperationResultDto<List<EnterpriseAccountDto>>
*/
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
updateEnterpriseAccount
(
EnterpriseAccountDto
enterpriseAccountDto
);
/**
* 手动对应或者取消的时候更新父级以及以上的状态, 对应父级科目
* @param enterpriseAccountCodeList - 当前操作的企业科目代码的列表
* @param enterpriseAccountSetId - 当前企业科目所在的企业账套Id
* @param industryId - 机构下的行业,主要用于区分标准科目
* @param orgId - 机构Id
* @param isToUpdateEvenExists - 是否覆盖
*/
void
mapAccountUpdateParent
(
List
<
String
>
enterpriseAccountCodeList
,
String
enterpriseAccountSetId
,
String
industryId
,
String
orgId
,
Boolean
isToUpdateEvenExists
);
/**
* validate import excel format, data
* @param filePath
* @return
*/
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
validateImportEnterpriseAccount
(
String
filePath
);
/**
* create enterprise account set and import list of enterprise accounts
* @param enterpriseAccountSetName - Name of the enterprise account set
* @param enterpriseAccountSetCode - Code of the enterprise account set
* @param importData
* @return
*/
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
addEnterpriseAccountSetAndImportData
(
String
enterpriseAccountSetName
,
String
enterpriseAccountSetCode
,
List
<
EnterpriseAccountDto
>
importData
);
/**
* Import enterprise accounts
* @param enterpriseAccountSetDto
* @param importData
* @return OperationResultDto
*/
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
repeatImportEnterpriseAccountSet
(
EnterpriseAccountSetDto
enterpriseAccountSetDto
,
List
<
EnterpriseAccountDto
>
importData
);
/**
* 删除重复企业科目
* @param enterpriseAccountSetDto
* @return
*/
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
clearRepeatEnterpriseAccountList
(
EnterpriseAccountSetDto
enterpriseAccountSetDto
);
List
<
AccountMappingDto
>
getAccountMappingOrg
(
String
organizationId
);
List
<
EnterpriseAccountSetDto
>
getEnterpriseAccountSetListByOrgId
(
String
orgId
);
List
<
EnterpriseAccountDto
>
getList
(
String
epAccountSetId
,
String
orgId
,
String
filterType
);
OperationResultDto
autoMap
(
String
orgId
,
String
accountSetId
);
OperationResultDto
mapAccount
(
AccountMapDto
accountMapDto
);
OperationResultDto
clearMap
(
String
[]
epAccountIds
,
String
orgId
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AccountServiceImpl.java
View file @
a803d572
...
...
@@ -7,23 +7,23 @@ import pwc.taxtech.atms.common.CommonUtils;
import
pwc.taxtech.atms.entity.AccountMapping
;
import
pwc.taxtech.atms.entity.AccountMappingExample
;
import
pwc.taxtech.atms.entity.EnterpriseAccount
;
import
pwc.taxtech.atms.service.EnterpriseAccountService
;
@Service
public
class
AccountServiceImpl
extends
AbstractService
{
@Autowired
EnterpriseAccountService
enterpriseAccountService
;
EnterpriseAccountService
Impl
enterpriseAccountService
;
/**
* 匹配标准科目到企业科目(按科目编码)
*
* @param enterpriseAccountSetId - 账套Id
* @param stdAccountCode - 标准科目编码
* @param epAccountCode - 企业科目编码
* @param industryId - 行业Id
* @param organizationId - 机构Id
* @param bOverwrite - 是否覆盖已有对应
* @param acctLevel - 科目级别
* @param stdAccountCode
- 标准科目编码
* @param epAccountCode
- 企业科目编码
* @param industryId
- 行业Id
* @param organizationId
- 机构Id
* @param bOverwrite
- 是否覆盖已有对应
* @param acctLevel
- 科目级别
*/
public
void
mapStdAccountByCode
(
String
enterpriseAccountSetId
,
String
stdAccountCode
,
String
epAccountCode
,
String
industryId
,
String
organizationId
,
Boolean
bOverwrite
,
Integer
acctLevel
)
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EnterpriseAccountServiceImpl.java
View file @
a803d572
...
...
@@ -41,14 +41,13 @@ import pwc.taxtech.atms.dto.epaccount.EnterpriseAccountAndValidateInfo;
import
pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetDto
;
import
pwc.taxtech.atms.dto.stdaccount.StandardAccountDto
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.service.EnterpriseAccountService
;
import
java.io.InputStream
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
public
class
EnterpriseAccountServiceImpl
extends
AbstractService
implements
EnterpriseAccountService
{
public
class
EnterpriseAccountServiceImpl
extends
AbstractService
{
@Autowired
private
AccountServiceImpl
accountService
;
...
...
@@ -77,7 +76,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#getEnterpriseAccount(java.lang.String, java.lang.String)
*/
@Override
public
EnterpriseAccount
getEnterpriseAccount
(
String
enterpriseAccountCode
,
String
enterpriseAccountSetId
)
{
EnterpriseAccountExample
example
=
new
EnterpriseAccountExample
();
example
.
createCriteria
().
andCodeEqualTo
(
enterpriseAccountCode
).
andEnterpriseAccountSetIdEqualTo
(
enterpriseAccountSetId
);
...
...
@@ -92,7 +90,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
* @see pwc.taxtech.atms.service.EnterpriseAccountService#
* getListByEnterpriseAccountSetId(java.lang.String)
*/
@Override
public
EnterpriseAccountAndValidateInfo
getListByEnterpriseAccountSetId
(
String
enterpriseAccountSetId
)
{
EnterpriseAccountExample
enterpriseAccountExample
=
new
EnterpriseAccountExample
();
...
...
@@ -158,7 +155,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#getEnterpriseAccount(java.lang.String)
*/
@Override
public
EnterpriseAccountDto
getEnterpriseAccount
(
String
enterpriseAccountId
)
{
EnterpriseAccount
enterpriseAccount
=
enterpriseAccountMapper
.
selectByPrimaryKey
(
enterpriseAccountId
);
...
...
@@ -195,7 +191,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#addEnterpriseAccount(pwc.taxtech.atms.service.dto.EnterpriseAccountDto)
*/
@Override
@Transactional
public
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
addEnterpriseAccount
(
EnterpriseAccountDto
enterpriseAccountDto
)
{
...
...
@@ -257,7 +252,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#updateEnterpriseAccount(pwc.taxtech.atms.service.dto.EnterpriseAccountDto)
*/
@Override
@Transactional
public
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
updateEnterpriseAccount
(
EnterpriseAccountDto
enterpriseAccountDto
)
{
...
...
@@ -370,7 +364,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#mapAccountUpdateParent(java.util.List, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)
*/
@Override
public
void
mapAccountUpdateParent
(
List
<
String
>
enterpriseAccountCodeList
,
String
enterpriseAccountSetId
,
String
industryId
,
String
orgId
,
Boolean
isToUpdateEvenExists
)
{
...
...
@@ -500,7 +493,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
* @see pwc.taxtech.atms.service.EnterpriseAccountService#createEnterpriseAccountSetAndimportEnterpriseAccount(java.lang.String, java.lang.String, java.util.List)
*/
@SuppressWarnings
(
"rawtypes"
)
@Override
@Transactional
public
OperationResultDto
addEnterpriseAccountSetAndImportData
(
String
enterpriseAccountSetName
,
String
enterpriseAccountSetCode
,
List
<
EnterpriseAccountDto
>
importData
)
{
...
...
@@ -557,7 +549,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
* @see pwc.taxtech.atms.service.EnterpriseAccountService#repeatImportEnterpriseAccountSet(pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetDto, java.util.List)
*/
@SuppressWarnings
(
"rawtypes"
)
@Override
@Transactional
public
OperationResultDto
repeatImportEnterpriseAccountSet
(
EnterpriseAccountSetDto
enterpriseAccountSetDto
,
List
<
EnterpriseAccountDto
>
importData
)
{
...
...
@@ -570,7 +561,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
* @see pwc.taxtech.atms.service.EnterpriseAccountService#clearRepeatEnterpriseAccountList(pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetDto)
*/
@SuppressWarnings
(
"rawtypes"
)
@Override
public
OperationResultDto
clearRepeatEnterpriseAccountList
(
EnterpriseAccountSetDto
enterpriseAccountSetDto
)
{
EnterpriseAccountExample
enterpriseAccountExample
=
new
EnterpriseAccountExample
();
...
...
@@ -629,7 +619,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#getAccountMappingOrg(java.lang.String)
*/
@Override
public
List
<
AccountMappingDto
>
getAccountMappingOrg
(
String
organizationId
)
{
AccountMappingExample
accountMappingExample
=
new
AccountMappingExample
();
...
...
@@ -647,7 +636,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
return
accountMappingDtoList
;
}
@Override
public
List
<
EnterpriseAccountSetDto
>
getEnterpriseAccountSetListByOrgId
(
String
orgId
)
{
if
(
StringUtils
.
isBlank
(
orgId
))
{
return
Collections
.
emptyList
();
...
...
@@ -656,7 +644,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
.
map
(
this
::
toAccountSetDto
).
collect
(
Collectors
.
toList
());
}
@Override
public
List
<
EnterpriseAccountDto
>
getList
(
String
epAccountSetId
,
String
orgId
,
String
filterType
)
{
if
(
StringUtils
.
isAnyBlank
(
epAccountSetId
,
orgId
))
{
return
Collections
.
emptyList
();
...
...
@@ -708,7 +695,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
}
@Transactional
@Override
public
OperationResultDto
autoMap
(
String
orgId
,
String
accountSetId
)
{
//region 基础数据获取
Optional
<
EnterpriseAccountSetOrg
>
optional
=
epAccountSetOrgDao
.
getByOrgIdAndAccountSetId
(
orgId
,
accountSetId
)
...
...
@@ -939,7 +925,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
}
@Transactional
@Override
public
OperationResultDto
mapAccount
(
AccountMapDto
accountMapDto
)
{
//region 获取相关的机构对象,标准科目对象, 账套对象
Organization
organization
=
organizationMapper
.
selectByPrimaryKey
(
accountMapDto
.
getOrgId
());
...
...
@@ -1033,7 +1018,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
return
OperationResultDto
.
success
(
mapDto
);
}
@Override
public
OperationResultDto
clearMap
(
String
[]
epAccountIds
,
String
orgId
)
{
if
(
epAccountIds
!=
null
&&
StringUtils
.
isNotBlank
(
orgId
))
{
boolean
isToClearAllMapping
=
false
;
...
...
@@ -1724,7 +1708,6 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
/* (non-Javadoc)
* @see pwc.taxtech.atms.service.EnterpriseAccountService#validateImportEnterpriseAccount(java.io.InputStream, java.lang.String)
*/
@Override
public
OperationResultDto
<
List
<
EnterpriseAccountDto
>>
validateImportEnterpriseAccount
(
String
filePath
)
{
//validate header
...
...
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