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
b282bcd5
Commit
b282bcd5
authored
Jun 06, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor accountmapper to customaccountmapper
parent
09acecda
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
CustomAccountMapper.java
...c/main/java/pwc/taxtech/atms/dao/CustomAccountMapper.java
+1
-1
AbstractService.java
...n/java/pwc/taxtech/atms/service/impl/AbstractService.java
+1
-1
AccountServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/AccountServiceImpl.java
+1
-1
EnterpriseAccountServiceImpl.java
...xtech/atms/service/impl/EnterpriseAccountServiceImpl.java
+1
-1
EnterpriseAccountServiceIT.java
...taxtech/atms/service/impl/EnterpriseAccountServiceIT.java
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dao/AccountMapper.java
→
atms-api/src/main/java/pwc/taxtech/atms/dao/
Custom
AccountMapper.java
View file @
b282bcd5
...
...
@@ -12,7 +12,7 @@ import pwc.taxtech.atms.MyMapper;
import
pwc.taxtech.atms.entitiy.EnterpriseAccount
;
@Mapper
public
interface
AccountMapper
extends
MyMapper
{
public
interface
Custom
AccountMapper
extends
MyMapper
{
@Select
(
"SELECT ea.ID,ea.Code,ea.Name,ea.ParentCode,ea.FullName,"
+
"CASE WHEN am.StandardAccountCode='0000' THEN am.StandardAccountCode ELSE sa.Code END StdCode,"
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AbstractService.java
View file @
b282bcd5
...
...
@@ -36,7 +36,7 @@ public class AbstractService {
@Autowired
protected
AccountMappingMapper
accountMappingMapper
;
@Autowired
protected
AccountMapper
a
ccountMapper
;
protected
CustomAccountMapper
customA
ccountMapper
;
@Autowired
protected
MailQueueMapper
mailQueueMapper
;
@Autowired
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AccountServiceImpl.java
View file @
b282bcd5
...
...
@@ -97,7 +97,7 @@ public class AccountServiceImpl extends AbstractService implements AccountServic
private
boolean
isStdExists
(
String
enterpriseAccountSetID
,
String
enterpirseAccountCode
,
String
industryID
,
String
organizationID
)
{
Long
stdAccountsCount
=
a
ccountMapper
.
countStandardAccounts
(
enterpriseAccountSetID
,
enterpirseAccountCode
,
industryID
,
organizationID
);
Long
stdAccountsCount
=
customA
ccountMapper
.
countStandardAccounts
(
enterpriseAccountSetID
,
enterpirseAccountCode
,
industryID
,
organizationID
);
return
stdAccountsCount
>=
1
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EnterpriseAccountServiceImpl.java
View file @
b282bcd5
...
...
@@ -1640,7 +1640,7 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
* @return
*/
private
List
<
EnterpriseAccount
>
getMappingResultByParentCode
(
String
parentCode
,
String
accountSetID
,
String
industryID
,
String
orgID
)
{
return
a
ccountMapper
.
getMappingResult
(
accountSetID
,
industryID
,
orgID
,
parentCode
);
return
customA
ccountMapper
.
getMappingResult
(
accountSetID
,
industryID
,
orgID
,
parentCode
);
}
private
void
addMapParentAccountResult
(
String
key
,
List
<
String
>
value
)
...
...
atms-api/src/test/java/pwc/taxtech/atms/service/impl/EnterpriseAccountServiceIT.java
View file @
b282bcd5
...
...
@@ -166,7 +166,7 @@ public class EnterpriseAccountServiceIT extends CommonIT {
String industryID = "0";
String orgID = "5d6a7685-4dd0-46b2-83af-6db1380f8fc6";
String parentCode = "1001";
List<EnterpriseAccount> epAccounts =
a
ccountMapper.getMappingResult(accountSetID, industryID, orgID, parentCode);
List<EnterpriseAccount> epAccounts =
customA
ccountMapper.getMappingResult(accountSetID, industryID, orgID, parentCode);
System.out.println(epAccounts);
}*/
...
...
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