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
0a860d94
Commit
0a860d94
authored
Jun 01, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the code for KeyValueConfiguration
parent
636009bb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
3 deletions
+42
-3
KeyValueReferenceMapper.java
...in/java/pwc/taxtech/atms/dao/KeyValueReferenceMapper.java
+10
-0
AnalyticsModelDetail.java
.../main/java/pwc/taxtech/atms/dto/AnalyticsModelDetail.java
+8
-0
KeyValueConfigServiceImpl.java
.../taxtech/atms/service/impl/KeyValueConfigServiceImpl.java
+24
-3
KeyValueReferenceMapper.xml
...esources/pwc/taxtech/atms/dao/KeyValueReferenceMapper.xml
+0
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dao/KeyValueReferenceMapper.java
View file @
0a860d94
...
...
@@ -6,6 +6,9 @@ import org.apache.ibatis.annotations.Param;
import
org.apache.ibatis.session.RowBounds
;
import
org.springframework.security.access.method.P
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.dto.AnalyticsModelDetail
;
import
pwc.taxtech.atms.dto.FinancialStatementDetail
;
import
pwc.taxtech.atms.dto.TaxReturnDetail
;
import
pwc.taxtech.atms.entitiy.KeyValueReference
;
import
pwc.taxtech.atms.entitiy.KeyValueReferenceExample
;
...
...
@@ -108,4 +111,10 @@ public interface KeyValueReferenceMapper extends MyMapper {
int
updateByPrimaryKey
(
KeyValueReference
record
);
int
deleteKeyValueReferenceByCellTemplate
(
@Param
(
"templateDbID"
)
String
templateDbID
);
List
<
FinancialStatementDetail
>
getFinancialStatementDetails
(
@Param
(
"configurationID"
)
String
configurationID
);
List
<
TaxReturnDetail
>
getTaxReturnDetails
(
@Param
(
"configurationID"
)
String
configurationID
);
List
<
AnalyticsModelDetail
>
getAnalyticsModelDetails
(
@Param
(
"configurationID"
)
String
configurationID
);
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/dto/AnalyticsModelDetail.java
View file @
0a860d94
...
...
@@ -59,4 +59,12 @@ public class AnalyticsModelDetail {
public
void
setIndustry
(
String
industry
)
{
this
.
industry
=
industry
;
}
public
String
getEntityID
()
{
return
entityID
;
}
public
void
setEntityID
(
String
entityID
)
{
this
.
entityID
=
entityID
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/KeyValueConfigServiceImpl.java
View file @
0a860d94
...
...
@@ -72,17 +72,38 @@ public class KeyValueConfigServiceImpl extends AbstractService implements KeyVal
@Override
public
List
<
FinancialStatementDetail
>
getFinacialStatement
(
String
configurationID
)
{
return
null
;
Map
<
String
,
String
>
jointObjectMap
=
new
HashMap
<>();
industryMapper
.
selectByExample
(
new
IndustryExample
()).
forEach
(
a
->
jointObjectMap
.
put
(
a
.
getID
(),
a
.
getName
()));
List
<
FinancialStatementDetail
>
referenceFinance
=
keyValueReferenceMapper
.
getFinancialStatementDetails
(
configurationID
);
for
(
FinancialStatementDetail
item
:
referenceFinance
)
{
item
.
setIndustry
(
getNamesByIDs
(
item
.
getIndustry
(),
jointObjectMap
));
}
return
referenceFinance
;
}
@Override
public
List
<
TaxReturnDetail
>
getTaxReturn
(
String
configurationID
)
{
return
null
;
Map
<
String
,
String
>
jointObjectMap
=
new
HashMap
<>();
industryMapper
.
selectByExample
(
new
IndustryExample
()).
forEach
(
a
->
jointObjectMap
.
put
(
a
.
getID
(),
a
.
getName
()));
List
<
TaxReturnDetail
>
referenceTax
=
keyValueReferenceMapper
.
getTaxReturnDetails
(
configurationID
);
for
(
TaxReturnDetail
item
:
referenceTax
)
{
item
.
setIndustry
(
getNamesByIDs
(
item
.
getIndustry
(),
jointObjectMap
));
}
return
referenceTax
;
}
@Override
public
List
<
AnalyticsModelDetail
>
getAnalyticsModel
(
String
configurationID
)
{
return
null
;
Map
<
String
,
String
>
industryList
=
new
HashMap
<>();
industryMapper
.
selectByExample
(
new
IndustryExample
()).
forEach
(
a
->
industryList
.
put
(
a
.
getID
(),
a
.
getName
()));
Map
<
String
,
String
>
organization
=
new
HashMap
<>();
organizationMapper
.
selectByExample
(
new
OrganizationExample
()).
forEach
(
a
->
organization
.
put
(
a
.
getID
(),
a
.
getName
()));
List
<
AnalyticsModelDetail
>
referenceModel
=
keyValueReferenceMapper
.
getAnalyticsModelDetails
(
configurationID
);
for
(
AnalyticsModelDetail
analyticsModelDetail
:
referenceModel
)
{
analyticsModelDetail
.
setIndustry
(
getNamesByIDs
(
analyticsModelDetail
.
getIndustry
(),
industryList
));
analyticsModelDetail
.
setEntityName
(
getNamesByIDs
(
analyticsModelDetail
.
getEntityID
(),
organization
));
}
return
referenceModel
;
}
@Override
...
...
atms-api/src/main/resources/pwc/taxtech/atms/dao/KeyValueReferenceMapper.xml
View file @
0a860d94
This diff is collapsed.
Click to expand it.
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