Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git-hook
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
叶剑飞
git-hook
Commits
b987caed
Commit
b987caed
authored
Apr 18, 2018
by
叶剑飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
013b4523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
GitlabMergeRequestService.java
...java/com/chainself/service/GitlabMergeRequestService.java
+2
-6
No files found.
src/main/java/com/chainself/service/GitlabMergeRequestService.java
View file @
b987caed
...
...
@@ -56,10 +56,6 @@ public class GitlabMergeRequestService {
List
<
Long
>
mqidList
=
mqList
.
stream
().
map
(
GitlabMergeRequest:
:
getId
).
collect
(
Collectors
.
toList
());
if
(
mqidList
.
isEmpty
())
{
System
.
out
.
print
(
"mqidList 为空!"
);
return
;
}
List
<
Object
[]>
notes
=
gitlabMergeRequestDao
.
listNoteByMqid
(
mqidList
);
Map
<
Long
,
List
<
Object
[]>>
mapNotes
=
notes
.
stream
().
collect
(
Collectors
.
groupingBy
(
note
->
{
return
StringUtil
.
getNullLong
(
note
[
1
]);
...
...
@@ -105,7 +101,7 @@ public class GitlabMergeRequestService {
public
static
Long
getMaxMqid
()
{
String
url
=
"http://
10.10.10.61:9080/integ
test/githook/getmaxmqid"
;
String
url
=
"http://
weixt.spacetech.com.cn:9090/integra
test/githook/getmaxmqid"
;
try
{
Response
resp
=
FastHttpClient
.
get
().
url
(
url
).
build
().
execute
();
...
...
@@ -120,7 +116,7 @@ public class GitlabMergeRequestService {
public
static
void
postHttp
(
JSONObject
param
)
{
System
.
out
.
println
(
"往服务器同步违规信息:"
+
param
.
toJSONString
());
String
url
=
"http://
10.10.10.61:9080/integ
test/githook/savemq"
;
String
url
=
"http://
weixt.spacetech.com.cn:9090/integra
test/githook/savemq"
;
Map
<
String
,
String
>
paramMap
=
new
HashMap
<
String
,
String
>();
paramMap
.
put
(
"paramsStr"
,
param
.
toJSONString
());
try
{
...
...
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