Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
96853642
Commit
96853642
authored
Nov 16, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提测列表倒序以及提测说明详情新增jiraProjectName
parent
56b84549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
QualityController.java
...va/cn/qg/holmes/controller/quality/QualityController.java
+13
-0
No files found.
src/main/java/cn/qg/holmes/controller/quality/QualityController.java
View file @
96853642
...
...
@@ -54,6 +54,7 @@ public class QualityController {
if
(!
StringUtils
.
isEmpty
(
jiraProjectKey
))
{
queryWrapper
.
like
(
"jira_project_key"
,
jiraProjectKey
);
}
queryWrapper
.
orderByDesc
(
"id"
);
IPage
<
SubmitTestInstruction
>
instructionIPage
=
new
Page
<>(
pageNum
,
pageSize
);
IPage
<
SubmitTestInstruction
>
page
=
instructionService
.
page
(
instructionIPage
,
queryWrapper
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
@@ -148,6 +149,18 @@ public class QualityController {
if
(
submitTestInstruction
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"所选项目不存在"
,
false
);
}
// 设置jiraProjectName
try
{
Iterable
<
BasicProject
>
projects
=
jiraService
.
getJiraProjectList
();
for
(
BasicProject
project:
projects
)
{
if
(
project
.
getKey
().
equals
(
submitTestInstruction
.
getJiraProjectKey
()))
{
submitTestInstruction
.
setJiraProjectName
(
project
.
getName
());
}
}
}
catch
(
Exception
e
)
{
log
.
info
(
"获取jira项目Map失败."
);
e
.
printStackTrace
();
}
return
JsonResult
.
buildSuccessResult
(
submitTestInstruction
);
}
}
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