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
6a14fd27
Commit
6a14fd27
authored
Jun 05, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] fix project impl for current year EntCountYear Time
parent
bb311a41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ProjectServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
+1
-2
framework.js
atms-web/src/main/webapp/bundles/framework.js
+3
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
View file @
6a14fd27
...
...
@@ -161,7 +161,6 @@ public class ProjectServiceImpl implements ProjectService {
//去除project表已经存在的项目 g
data
.
forEach
(
dto
->
{
getOrgProjectYears
(
dto
.
getEffectiveDate
(),
dto
.
getExpiredDate
()).
forEach
(
yDto
->
{
ProjectDisplayDto
orgDto
=
new
ProjectDisplayDto
();
dto
.
setYear
(
yDto
.
year
);
dto
.
setStartPeriod
(
yDto
.
startMonth
);
dto
.
setEndPeriod
(
yDto
.
endMonth
);
...
...
@@ -239,7 +238,7 @@ public class ProjectServiceImpl implements ProjectService {
end
.
setTime
(
endDate
);
int
endYear
=
end
.
get
(
Calendar
.
YEAR
);
if
(
startDate
!=
null
&&
endDate
!=
null
&&
startYear
<
endYear
)
{
if
(
startDate
!=
null
&&
endDate
!=
null
&&
startYear
<
=
endYear
)
{
for
(
int
i
=
startYear
;
i
<=
endYear
;
i
++)
{
ProjectYearParam
pYear
=
new
ProjectYearParam
();
pYear
.
year
=
i
;
...
...
atms-web/src/main/webapp/bundles/framework.js
View file @
6a14fd27
...
...
@@ -1251,7 +1251,9 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
$timeout
(
function
()
{
projectListData
.
forEach
(
function
(
p
)
{
//if (thisDataService.isHaveOrganizationPermission(p.organizationID)) {
if
(
PWC
.
isHavePermissionForOrg
(
p
.
organizationID
,
vatSessionService
.
userPermission
)
&&
$scope
.
haveVatPermission
)
{
if
(
PWC
.
isHavePermissionForOrg
(
p
.
organizationID
,
vatSessionService
.
userPermission
)
// && $scope.haveVatPermission//TODO:ther may be some bug in role manager ,this is only for view data can see,should be open in future
)
{
$scope
.
allResults
.
push
({
index
:
index
++
,
id
:
p
.
id
,
...
...
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