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
aab7a0f8
Commit
aab7a0f8
authored
Apr 03, 2020
by
dingkai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.9.17-Exception-20200325-dingkai'
# Conflicts: # order-application-service/pom.xml
parents
7140b959
9d7c9428
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
22 deletions
+27
-22
assortment-ordercenter-sdk/pom.xml
+1
-1
assortment-ordercenter-sdk/readme.md
+3
-2
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+5
-1
call-back-service/pom.xml
+1
-1
order-application-service/pom.xml
+1
-1
order-application-service/src/main/java/cn/freemud/utils/LogUtil.java
+8
-8
shopping-cart-application-service/src/main/java/cn/freemud/utils/LogUtil.java
+8
-8
No files found.
assortment-ordercenter-sdk/pom.xml
View file @
aab7a0f8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
1.2.
6
.RELEASE
</version>
<version>
1.2.
7
.RELEASE
</version>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
assortment-ordercenter-sdk/readme.md
View file @
aab7a0f8
...
@@ -20,4 +20,5 @@
...
@@ -20,4 +20,5 @@
| 1.2.3.RELEASE | 预约单升级RELEASE | wuping | 2020-03-18 |
| 1.2.3.RELEASE | 预约单升级RELEASE | wuping | 2020-03-18 |
| 1.2.4.RELEASE | 紧急需求 增加骑手电话 | 海波 | 2020-03-19 |
| 1.2.4.RELEASE | 紧急需求 增加骑手电话 | 海波 | 2020-03-19 |
| 1.2.5.RELEASE | 满额减配送费 | dingkai | 2020-03-26 |
| 1.2.5.RELEASE | 满额减配送费 | dingkai | 2020-03-26 |
| 1.2.5.RELEASE | 满额减配送费 | 海波 | 2020-03-26 |
| 1.2.5.RELEASE | 满额减配送费 | 海波 | 2020-03-26 |
\ No newline at end of file
| 1.2.7.RELEASE | 判断优化 | 丁凯 | 2020-04-03 |
\ No newline at end of file
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
aab7a0f8
...
@@ -474,7 +474,11 @@ public class OrderSdkAdapter {
...
@@ -474,7 +474,11 @@ public class OrderSdkAdapter {
CreateOrderResponse
response
=
new
CreateOrderResponse
();
CreateOrderResponse
response
=
new
CreateOrderResponse
();
response
.
setErrcode
(
Integer
.
parseInt
(
result
.
getCode
()));
response
.
setErrcode
(
Integer
.
parseInt
(
result
.
getCode
()));
response
.
setErrmsg
(
result
.
getMessage
());
response
.
setErrmsg
(
result
.
getMessage
());
if
(
result
.
getResult
().
equals
(
new
OrderInfoReqs
()))
{
/**
* 为什么做这样的判断result.getResult().equals(new OrderInfoReqs())?
* 我猜是因为基础服务异常返回的时候以前result返回了{}对象
*/
if
(
result
.
getResult
()
==
null
||
result
.
getResult
().
equals
(
new
OrderInfoReqs
()))
{
return
response
;
return
response
;
}
}
...
...
call-back-service/pom.xml
View file @
aab7a0f8
...
@@ -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/pom.xml
View file @
aab7a0f8
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
<groupId>
cn.freemud
</groupId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
1.2.
6
.RELEASE
</version>
<version>
1.2.
7
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
...
...
order-application-service/src/main/java/cn/freemud/utils/LogUtil.java
View file @
aab7a0f8
...
@@ -288,14 +288,14 @@ public class LogUtil {
...
@@ -288,14 +288,14 @@ 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
]
:
""
);
}
}
if
(
StringUtils
.
isEmpty
(
uri
))
{
if
(
StringUtils
.
isEmpty
(
uri
))
{
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
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/utils/LogUtil.java
View file @
aab7a0f8
...
@@ -297,14 +297,14 @@ public class LogUtil {
...
@@ -297,14 +297,14 @@ 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
]
:
""
);
}
}
if
(
StringUtils
.
isEmpty
(
uri
))
{
if
(
StringUtils
.
isEmpty
(
uri
))
{
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
);
...
...
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