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
02073fc3
Commit
02073fc3
authored
Sep 28, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] fix get project status list sql
parent
6952e4a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ProjectServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
+1
-1
ProjectMapper.java
...dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
+4
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
View file @
02073fc3
...
...
@@ -136,7 +136,7 @@ public class ProjectServiceImpl implements ProjectService {
List
<
ProjectDisplayDto
>
data
=
projectMapper
.
getProjectList
(
orgId
,
serviceId
,
projectYear
);
//获取每个项目的项目状态
data
.
forEach
(
p
->
{
List
<
ProjectStatusManage
>
manageStatus
=
projectMapper
.
get
ProjectSatusListByDbName
(
p
.
getId
());
List
<
ProjectStatusManage
>
manageStatus
=
projectMapper
.
get
StatusesByProjectId
(
p
.
getId
());
Map
<
Integer
,
Integer
>
dic
=
new
HashMap
<>();
manageStatus
.
forEach
(
m
->
{
dic
.
put
(
m
.
getPeriodId
(),
m
.
getStatus
());
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
View file @
02073fc3
...
...
@@ -165,13 +165,13 @@ public interface ProjectMapper extends MyMapper {
@Param
(
"projectYear"
)
Integer
projectYear
);
@Select
(
"SELECT "
+
" p.PERIOD_ID
, p.S
tatus "
+
" p.PERIOD_ID
AS periodId, p.STATUS AS s
tatus "
+
"FROM "
+
" PROJECT_STATUS_MANAGE p "
+
"WHERE "
+
" p.
DB_NAME = #{projectID
} "
+
"ORDER BY PERIOD_ID , S
tatus
"
)
List
<
ProjectStatusManage
>
get
ProjectSatusListByDbName
(
String
projectID
);
" p.
PROJECT_ID = #{projectId
} "
+
"ORDER BY PERIOD_ID , S
TATUS
"
)
List
<
ProjectStatusManage
>
get
StatusesByProjectId
(
String
projectId
);
@Select
(
"<script>"
+
"SELECT "
+
...
...
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