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
2ea71e79
Commit
2ea71e79
authored
Oct 15, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fixe getallprojectlist bug
parent
b8342f16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
ProjectServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
+34
-11
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
View file @
2ea71e79
...
...
@@ -238,21 +238,44 @@ public class ProjectServiceImpl {
//去除project表已经存在的项目 g
data
.
forEach
(
dto
->
{
getOrgProjectYears
(
dto
.
getEffectiveDate
(),
dto
.
getExpiredDate
()).
forEach
(
yDto
->
{
dto
.
setYear
(
yDto
.
year
);
dto
.
setStartPeriod
(
yDto
.
startMonth
);
dto
.
setEndPeriod
(
yDto
.
endMonth
);
dto
.
setName
(
dto
.
getOrganizationName
()
+
"("
+
dto
.
getYear
()
+
")"
);
ProjectDisplayDto
orgDto
=
new
ProjectDisplayDto
();
orgDto
.
setCreateTime
(
dto
.
getCreateTime
());
orgDto
.
setActive
(
dto
.
getActive
());
orgDto
.
setOrganizationId
(
dto
.
getOrganizationId
());
orgDto
.
setCode
(
dto
.
getCode
());
orgDto
.
setId
(
dto
.
getId
());
orgDto
.
setIndustryId
(
dto
.
getIndustryId
());
orgDto
.
setRegionId
(
dto
.
getRegionId
());
orgDto
.
setRuleType
(
dto
.
getRuleType
());
orgDto
.
setServiceTypeId
(
dto
.
getServiceTypeId
());
orgDto
.
setUpDate
(
dto
.
getUpDate
());
orgDto
.
setServiceTypeName
(
dto
.
getServiceTypeName
());
orgDto
.
setOrganizationName
(
dto
.
getOrganizationName
());
orgDto
.
setIndustryName
(
dto
.
getIndustryName
());
orgDto
.
setTemplateGroupId
(
dto
.
getTemplateGroupId
());
orgDto
.
setTemplateGroupName
(
dto
.
getTemplateGroupName
());
orgDto
.
setClientCode
(
dto
.
getClientCode
());
orgDto
.
setDbName
(
dto
.
getDbName
());
orgDto
.
setHaveCreateProject
(
dto
.
getHaveCreateProject
());
orgDto
.
setEnterpriseAccountSetId
(
dto
.
getEnterpriseAccountSetId
());
orgDto
.
setEffectiveDate
(
dto
.
getEffectiveDate
());
orgDto
.
setExpiredDate
(
dto
.
getExpiredDate
());
orgDto
.
setRegionName
(
dto
.
getRegionName
());
orgDto
.
setYear
(
yDto
.
year
);
orgDto
.
setStartPeriod
(
yDto
.
startMonth
);
orgDto
.
setEndPeriod
(
yDto
.
endMonth
);
orgDto
.
setName
(
orgDto
.
getOrganizationName
()
+
"("
+
orgDto
.
getYear
()
+
")"
);
//判断是否已经创建过该项目
//对于VAT,只创建今年及之后年份的项目(2018.1.2经Michelle确定,已放开vat限制)
//if ((projectList != null && projectList.Count > 0) || (int.Parse(orgDto.ServiceTypeId) == 2 && orgDto.Year < DateTime.Now.Year))
if
(!
pList
.
stream
().
anyMatch
((
Predicate
<
ProjectDisplayDto
>)
t
->
t
.
getYear
().
equals
(
d
to
.
getYear
())
&&
t
.
getServiceTypeId
().
equals
(
d
to
.
getServiceTypeId
())
&&
t
.
getOrganizationId
().
equals
(
d
to
.
getOrganizationId
())
&&
t
.
getEnterpriseAccountSetId
().
equals
(
d
to
.
getEnterpriseAccountSetId
())
&&
t
.
getStartPeriod
().
equals
(
d
to
.
getStartPeriod
())
&&
t
.
getEndPeriod
().
equals
(
d
to
.
getEndPeriod
())))
{
list
.
add
(
d
to
);
if
(!
pList
.
stream
().
anyMatch
((
Predicate
<
ProjectDisplayDto
>)
t
->
t
.
getYear
().
equals
(
orgD
to
.
getYear
())
&&
t
.
getServiceTypeId
().
equals
(
orgD
to
.
getServiceTypeId
())
&&
t
.
getOrganizationId
().
equals
(
orgD
to
.
getOrganizationId
())
&&
t
.
getEnterpriseAccountSetId
().
equals
(
orgD
to
.
getEnterpriseAccountSetId
())
&&
t
.
getStartPeriod
().
equals
(
orgD
to
.
getStartPeriod
())
&&
t
.
getEndPeriod
().
equals
(
orgD
to
.
getEndPeriod
())))
{
list
.
add
(
orgD
to
);
}
});
});
...
...
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