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
8622b313
Commit
8622b313
authored
May 29, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed no data issue
parent
d9a72b6c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
20 deletions
+29
-20
TaxRuleSettingMapper.java
.../main/java/pwc/taxtech/atms/dao/TaxRuleSettingMapper.java
+1
-1
TaxPayerReportRuleDto.java
...main/java/pwc/taxtech/atms/dto/TaxPayerReportRuleDto.java
+12
-12
KeyValueConfigServiceImpl.java
.../taxtech/atms/service/impl/KeyValueConfigServiceImpl.java
+7
-7
RuleEngineeConfigServiceImpl.java
...xtech/atms/service/impl/RuleEngineeConfigServiceImpl.java
+9
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dao/TaxRuleSettingMapper.java
View file @
8622b313
...
...
@@ -146,7 +146,7 @@ public interface TaxRuleSettingMapper extends MyMapper {
@Select
(
"select trs.GroupName,trs.ID,trs.IsDefault,trs.Name,trs.TaxBase,trs.TaxRate*100 as TaxRate,trso.OrganizationID"
+
" from TaxRuleSetting trs "
+
"join TaxRuleSettingOrganization trso on trs.ID=trso.TaxSettingID"
)
+
"
left
join TaxRuleSettingOrganization trso on trs.ID=trso.TaxSettingID"
)
@Results
({
@Result
(
id
=
true
,
column
=
"ID"
,
property
=
"ID"
),
@Result
(
column
=
"GroupName"
,
property
=
"GroupName"
),
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/TaxPayerReportRuleDto.java
View file @
8622b313
...
...
@@ -4,10 +4,10 @@ import java.util.List;
public
class
TaxPayerReportRuleDto
{
private
String
ID
;
private
int
I
sDefault
;
private
int
T
axPayerType
;
private
String
T
emplateGroupID
;
private
List
<
String
>
O
rgs
;
private
int
i
sDefault
;
private
int
t
axPayerType
;
private
String
t
emplateGroupID
;
private
List
<
String
>
o
rgs
;
public
String
getID
()
{
return
ID
;
...
...
@@ -18,34 +18,34 @@ public class TaxPayerReportRuleDto {
}
public
int
getIsDefault
()
{
return
I
sDefault
;
return
i
sDefault
;
}
public
void
setIsDefault
(
int
isDefault
)
{
this
.
I
sDefault
=
isDefault
;
this
.
i
sDefault
=
isDefault
;
}
public
int
getTaxPayerType
()
{
return
T
axPayerType
;
return
t
axPayerType
;
}
public
void
setTaxPayerType
(
int
taxPayerType
)
{
this
.
T
axPayerType
=
taxPayerType
;
this
.
t
axPayerType
=
taxPayerType
;
}
public
String
getTemplateGroupID
()
{
return
T
emplateGroupID
;
return
t
emplateGroupID
;
}
public
void
setTemplateGroupID
(
String
templateGroupID
)
{
this
.
T
emplateGroupID
=
templateGroupID
;
this
.
t
emplateGroupID
=
templateGroupID
;
}
public
List
<
String
>
getOrgs
()
{
return
O
rgs
;
return
o
rgs
;
}
public
void
setOrgs
(
List
<
String
>
orgs
)
{
this
.
O
rgs
=
orgs
;
this
.
o
rgs
=
orgs
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/KeyValueConfigServiceImpl.java
View file @
8622b313
...
...
@@ -31,12 +31,12 @@ public class KeyValueConfigServiceImpl extends AbstractService implements KeyVal
@Override
public
List
<
KeyValueConfigDisplayDto
>
Get
()
{
List
<
KeyValueConfig
>
list
=
keyValueConfigMapper
.
SelectKeyValueConfigsByOrderByCreateTime
();
List
<
KeyValueConfigDisplayDto
>
result
=
new
ArrayList
<
KeyValueConfigDisplayDto
>();
List
<
KeyValueConfigDisplayDto
>
result
=
new
ArrayList
<>();
if
(
list
.
size
()
>
0
)
{
Map
<
String
,
String
>
industryList
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
industryList
=
new
HashMap
<>();
industryMapper
.
selectByExample
(
new
IndustryExample
()).
stream
()
.
map
(
item
->
industryList
.
put
(
item
.
getID
(),
item
.
getName
())).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
serviceType
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
serviceType
=
new
HashMap
<>();
serviceTypeMapper
.
selectByExample
(
new
ServiceTypeExample
()).
stream
()
.
map
(
item
->
serviceType
.
put
(
item
.
getID
(),
item
.
getName
())).
collect
(
Collectors
.
toList
());
List
<
KeyValueReference
>
scopes
=
keyValueReferenceMapper
.
selectByExample
(
new
KeyValueReferenceExample
());
...
...
@@ -48,13 +48,13 @@ public class KeyValueConfigServiceImpl extends AbstractService implements KeyVal
dtoObj
.
setIndustryIds
(
Arrays
.
asList
(
keyValueConfig
.
getIndustryIDs
().
split
(
","
)));
dtoObj
.
setServiceTypeIds
(
Arrays
.
asList
(
keyValueConfig
.
getServiceTypeIDs
().
split
(
","
)));
List
<
KeyValueReference
>
selectScopeList
=
scopes
.
stream
()
.
filter
(
item
->
item
.
getKeyValueConfigID
()
==
item
.
getID
(
)).
collect
(
Collectors
.
toList
());
.
filter
(
item
->
item
.
getKeyValueConfigID
()
.
equals
(
item
.
getID
()
)).
collect
(
Collectors
.
toList
());
List
<
Integer
>
selectScopes
=
selectScopeList
.
stream
().
map
(
item
->
item
.
getScope
()).
distinct
()
.
collect
(
Collectors
.
toList
());
Map
<
Integer
,
Integer
>
scopeCount
=
new
HashMap
<
Integer
,
Integer
>();
Map
<
Integer
,
Integer
>
scopeCount
=
new
HashMap
<>();
if
(
selectScopeList
!=
null
&&
selectScopeList
.
size
()>
0
)
{
for
(
Integer
selectScope
:
selectScopes
)
{
Integer
count
=
(
int
)(
selectScopeList
.
stream
().
filter
(
a
->
a
.
getScope
()==
selectScope
).
count
());
Integer
count
=
(
int
)(
selectScopeList
.
stream
().
filter
(
a
->
a
.
getScope
().
equals
(
selectScope
)
).
count
());
scopeCount
.
put
(
selectScope
,
count
);
}
}
...
...
@@ -79,7 +79,7 @@ public class KeyValueConfigServiceImpl extends AbstractService implements KeyVal
return
source
;
}
String
[]
sArray
=
source
.
split
(
","
);
List
<
String
>
sName
=
new
ArrayList
<
String
>();
List
<
String
>
sName
=
new
ArrayList
<>();
for
(
String
s
:
sArray
)
{
if
(
queryList
.
containsKey
(
s
))
{
sName
.
add
(
queryList
.
get
(
s
));
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RuleEngineeConfigServiceImpl.java
View file @
8622b313
...
...
@@ -65,6 +65,7 @@ public class RuleEngineeConfigServiceImpl extends AbstractService implements Rul
for
(
TaxPayerReportRule
rule
:
filterRules
)
{
TaxPayerReportRuleDto
ruleDto
=
new
TaxPayerReportRuleDto
();
CommonUtils
.
copyProperties
(
rule
,
ruleDto
);
ruleDto
.
setOrgs
(
new
ArrayList
<>(
Arrays
.
asList
(
rule
.
getOrganizationID
().
split
(
","
))));
dtoList
.
add
(
ruleDto
);
}
return
dtoList
;
...
...
@@ -87,6 +88,7 @@ public class RuleEngineeConfigServiceImpl extends AbstractService implements Rul
for
(
TaxRuleSettingOperation
trso
:
batchUpdateTaxRule
.
getTaxRuleSettingOperations
())
{
TaxRuleSetting
taxRuleSetting
=
new
TaxRuleSetting
();
CommonUtils
.
copyProperties
(
trso
.
getTaxRuleSetting
(),
taxRuleSetting
);
taxRuleSetting
.
setTaxBase
(
String
.
valueOf
(
Integer
.
parseInt
(
trso
.
getTaxRuleSetting
().
getTaxBase
())/
100
));
taxRuleSetting
.
setCreateTime
(
new
Date
());
taxRuleSetting
.
setUpdateTime
(
new
Date
());
...
...
@@ -123,6 +125,12 @@ public class RuleEngineeConfigServiceImpl extends AbstractService implements Rul
TaxPayerReportRuleDto
reportDto
=
tprrdo
.
getTaxPayerReportRule
();
TaxPayerReportRule
taxPayerReportRule
=
new
TaxPayerReportRule
();
CommonUtils
.
copyProperties
(
reportDto
,
taxPayerReportRule
);
StringBuilder
sb
=
new
StringBuilder
();
for
(
String
s:
reportDto
.
getOrgs
()){
sb
.
append
(
s
+
","
);
}
String
tempStr
=
sb
.
toString
();
taxPayerReportRule
.
setOrganizationID
(
tempStr
.
substring
(
0
,
tempStr
.
length
()-
2
));
taxPayerReportRule
.
setCreateTime
(
new
Date
());
taxPayerReportRule
.
setUpdateTime
(
new
Date
());
SaveOrganizationServiceTemplateGroup
(
taxPayerReportRule
,
tprrdo
.
getAction
());
...
...
@@ -135,6 +143,7 @@ public class RuleEngineeConfigServiceImpl extends AbstractService implements Rul
TaxPayerReportRule
old
=
taxPayerReportRuleMapper
.
selectByPrimaryKey
(
reportDto
.
getID
());
TaxPayerReportRule
original
=
new
TaxPayerReportRule
();
CommonUtils
.
copyProperties
(
old
,
original
);
old
.
setIsDefault
(
taxPayerReportRule
.
getIsDefault
());
old
.
setOrganizationID
(
taxPayerReportRule
.
getOrganizationID
());
old
.
setTaxPayerType
(
taxPayerReportRule
.
getTaxPayerType
());
...
...
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