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
order-group-application
order-group
Commits
51550825
Commit
51550825
authored
Jun 16, 2021
by
hanghang.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级sdk
parent
7058bd2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
order-application-service/src/main/java/cn/freemud/aop/LogIgnoreAspect.java
+1
-1
order-application-service/src/main/java/cn/freemud/aop/LogIgnoreFeignAspect.java
+1
-1
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeKeyConstant.java
+17
-1
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
+0
-0
order-application-service/src/main/java/cn/freemud/service/thirdparty/DeliveryFeiginClient.java
+10
-0
No files found.
order-application-service/src/main/java/cn/freemud/aop/LogIgnoreAspect.java
View file @
51550825
...
...
@@ -47,7 +47,7 @@ public class LogIgnoreAspect implements Ordered {
/**
* 是否打印响应报文日志,默认是false,若为true会覆盖注解里面的{@link LogIgnore}配置,输出响应报文里面所有的信息
*/
@Value
(
"${print-response-body-log-order-a
oo
lication-service:false}"
)
@Value
(
"${print-response-body-log-order-a
pp
lication-service:false}"
)
private
volatile
boolean
printResponseBodyLog
=
false
;
/**
...
...
order-application-service/src/main/java/cn/freemud/aop/LogIgnoreFeignAspect.java
View file @
51550825
...
...
@@ -35,7 +35,7 @@ public class LogIgnoreFeignAspect {
/**
* 是否打印响应报文日志,默认是false,若为true会覆盖注解里面的{@link LogIgnore}配置,输出响应报文里面所有的信息
*/
@Value
(
"${print-feign-response-body-log-order-a
oo
lication-service:true}"
)
@Value
(
"${print-feign-response-body-log-order-a
pp
lication-service:true}"
)
private
volatile
boolean
printFeignResponseBodyLog
=
true
;
@Pointcut
(
"execution(* cn.freemud.service.thirdparty..*.*(..))"
)
...
...
order-application-service/src/main/java/cn/freemud/constant/ResponseCodeKeyConstant.java
View file @
51550825
...
...
@@ -19,12 +19,28 @@ import java.util.HashSet;
import
java.util.Set
;
public
class
ResponseCodeKeyConstant
{
public
final
static
String
CODE
=
"code"
;
public
final
static
String
ERR_CODE
=
"errcod
e"
;
public
final
static
String
MESSAGE
=
"messag
e"
;
public
final
static
String
STATUS_CODE
=
"statusCode"
;
public
static
final
String
MEG
=
"meg"
;
public
static
final
String
MSG
=
"msg"
;
/**
* errcode名称来源根据 ProductInfosDto
*/
public
final
static
String
ERR_CODE
=
"errcode"
;
/**
* errmsg名称来源根据 ProductInfosDto
*/
public
static
final
String
ERR_MSG
=
"errmsg"
;
private
final
static
Set
<
String
>
responseCodeKeySet
=
new
HashSet
<>();
...
...
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
View file @
51550825
This diff is collapsed.
Click to expand it.
order-application-service/src/main/java/cn/freemud/service/thirdparty/DeliveryFeiginClient.java
View file @
51550825
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.LogIgnoreFeign
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.MCCafeDeliveryBaseResponse
;
import
cn.freemud.entities.dto.delivery.*
;
import
cn.freemud.entities.dto.delivery.QueryDeliveryAmountRequestDto
;
...
...
@@ -14,27 +16,35 @@ import org.springframework.web.bind.annotation.RequestBody;
public
interface
DeliveryFeiginClient
{
@PostMapping
(
"/deliveryLogisticsAmount/queryDeliveryAmount"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryDeliveryAmountResponseDto
queryDeliveryAmount
(
@RequestBody
QueryDeliveryAmountRequestDto
request
);
@PostMapping
(
"/delivery/orderRemind"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryDeliveryAmountResponseDto
orderRemind
(
@RequestBody
OrderRemindRequestDto
request
);
@PostMapping
(
"/delivery/listFreeRider"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
MCCafeDeliveryBaseResponse
<
ResRiderTrackDto
>
listFreeRider
(
@RequestBody
QueryLocusRiderTrackDto
request
);
@PostMapping
(
"/delivery/create"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
CreateDeliveryOrderResponseDto
deliveryOrderAdd
(
@RequestBody
CreateDeliveryVo
request
);
@PostMapping
(
"/delivery/getDeliveryStatusAndRiderPosition"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
DeliveryBaseResponse
<
DeliveryStatusAndRiderPositionDto
>
getDeliveryStatusAndRiderPosition
(
@RequestBody
QueryDeliveryBaseRequest
queryDeliveryBaseRequest
);
@PostMapping
(
"/delivery/getThirdDeliveryFlag"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
DeliveryBaseResponse
<
GetDeliveryFlagResponseDto
>
getThirdDeliveryFlag
(
@RequestBody
GetDeliveryFlagRequest
getDeliveryFlagRequest
);
@PostMapping
(
"/delivery/queryDeliveryTemplate"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryDeliveryTemplateResponse
queryDeliveryTemplate
(
@RequestBody
QueryDeliveryTemplateRequest
queryDeliveryTemplateRequest
);
@PostMapping
(
"/delivery/isFreightRefundSupported"
)
@LogIgnoreFeign
(
messageFieldName
=
ResponseCodeKeyConstant
.
MSG
)
QueryFreightRefundSupportedResponse
isFreightRefundSupported
(
@RequestBody
QueryFreightRefundSupportedVo
queryDeliveryTemplateVo
);
...
...
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