Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
order-group
Commits
b2b597be
Commit
b2b597be
authored
Mar 25, 2020
by
dingkai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.9.17-Exception-20200325-dingkai' into qa
parents
7c317dd4
6204a0cb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
call-back-service/pom.xml
+1
-1
order-application-service/src/main/java/cn/freemud/utils/LogUtil.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/utils/LogUtil.java
+1
-1
No files found.
call-back-service/pom.xml
View file @
b2b597be
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
sdk-common-base
</artifactId>
<artifactId>
sdk-common-base
</artifactId>
<version>
1.
3.9-SNAPSHOT
</version>
<version>
1.
4.1.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
order-application-service/src/main/java/cn/freemud/utils/LogUtil.java
View file @
b2b597be
...
@@ -288,7 +288,6 @@ public class LogUtil {
...
@@ -288,7 +288,6 @@ public class LogUtil {
if
(
StringUtils
.
isEmpty
(
uri
)
&&
method
!=
null
)
{
if
(
StringUtils
.
isEmpty
(
uri
)
&&
method
!=
null
)
{
PostMapping
postMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
PostMapping
.
class
);
PostMapping
postMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
PostMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
postMapping
,
null
)
&&
!
Objects
.
equals
(
postMapping
.
path
(),
null
)
&&
postMapping
.
path
().
length
>
0
?
postMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
postMapping
,
null
)
&&
!
Objects
.
equals
(
postMapping
.
path
(),
null
)
&&
postMapping
.
path
().
length
>
0
?
postMapping
.
path
()[
0
]
:
""
);
}
if
(
StringUtils
.
isEmpty
(
uri
))
{
if
(
StringUtils
.
isEmpty
(
uri
))
{
GetMapping
getMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
GetMapping
.
class
);
GetMapping
getMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
GetMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
getMapping
,
null
)
&&
!
Objects
.
equals
(
getMapping
.
path
(),
null
)
&&
getMapping
.
path
().
length
>
0
?
getMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
getMapping
,
null
)
&&
!
Objects
.
equals
(
getMapping
.
path
(),
null
)
&&
getMapping
.
path
().
length
>
0
?
getMapping
.
path
()[
0
]
:
""
);
...
@@ -297,6 +296,7 @@ public class LogUtil {
...
@@ -297,6 +296,7 @@ public class LogUtil {
RequestMapping
methodRequestMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
RequestMapping
.
class
);
RequestMapping
methodRequestMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
RequestMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
methodRequestMapping
,
null
)
&&
!
Objects
.
equals
(
methodRequestMapping
.
path
(),
null
)
&&
methodRequestMapping
.
path
().
length
>
0
?
methodRequestMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
methodRequestMapping
,
null
)
&&
!
Objects
.
equals
(
methodRequestMapping
.
path
(),
null
)
&&
methodRequestMapping
.
path
().
length
>
0
?
methodRequestMapping
.
path
()[
0
]
:
""
);
}
}
}
ThirdPartLogVo
thirdPartLogVo
=
new
ThirdPartLogVo
();
ThirdPartLogVo
thirdPartLogVo
=
new
ThirdPartLogVo
();
thirdPartLogVo
.
setThirdPartName
(
serviceName
);
thirdPartLogVo
.
setThirdPartName
(
serviceName
);
thirdPartLogVo
.
setUri
(
uri
);
thirdPartLogVo
.
setUri
(
uri
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/utils/LogUtil.java
View file @
b2b597be
...
@@ -297,7 +297,6 @@ public class LogUtil {
...
@@ -297,7 +297,6 @@ public class LogUtil {
if
(
method
!=
null
)
{
if
(
method
!=
null
)
{
PostMapping
postMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
PostMapping
.
class
);
PostMapping
postMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
PostMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
postMapping
,
null
)
&&
postMapping
.
path
().
length
>
0
?
postMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
postMapping
,
null
)
&&
postMapping
.
path
().
length
>
0
?
postMapping
.
path
()[
0
]
:
""
);
}
if
(
StringUtils
.
isEmpty
(
uri
))
{
if
(
StringUtils
.
isEmpty
(
uri
))
{
GetMapping
getMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
GetMapping
.
class
);
GetMapping
getMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
GetMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
getMapping
,
null
)
&&
getMapping
.
path
().
length
>
0
?
getMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
getMapping
,
null
)
&&
getMapping
.
path
().
length
>
0
?
getMapping
.
path
()[
0
]
:
""
);
...
@@ -306,6 +305,7 @@ public class LogUtil {
...
@@ -306,6 +305,7 @@ public class LogUtil {
RequestMapping
methodRequestMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
RequestMapping
.
class
);
RequestMapping
methodRequestMapping
=
AnnotationUtils
.
getAnnotation
(
method
,
RequestMapping
.
class
);
uri
=
uriPre
+
(!
Objects
.
equals
(
methodRequestMapping
,
null
)
&&
methodRequestMapping
.
path
().
length
>
0
?
methodRequestMapping
.
path
()[
0
]
:
""
);
uri
=
uriPre
+
(!
Objects
.
equals
(
methodRequestMapping
,
null
)
&&
methodRequestMapping
.
path
().
length
>
0
?
methodRequestMapping
.
path
()[
0
]
:
""
);
}
}
}
ThirdPartLogVo
thirdPartLogVo
=
new
ThirdPartLogVo
();
ThirdPartLogVo
thirdPartLogVo
=
new
ThirdPartLogVo
();
thirdPartLogVo
.
setThirdPartName
(
serviceName
);
thirdPartLogVo
.
setThirdPartName
(
serviceName
);
thirdPartLogVo
.
setUri
(
uri
);
thirdPartLogVo
.
setUri
(
uri
);
...
...
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