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
3c039c99
Commit
3c039c99
authored
Oct 20, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付有礼
parent
d2e9408b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
+2
-1
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/service/Orderservice.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+4
-2
No files found.
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
View file @
3c039c99
...
...
@@ -195,7 +195,8 @@ public class OrderController {
@ApiAnnotation
(
logMessage
=
"queryOrderById"
)
@PostMapping
(
"/queryOrderById"
)
public
BaseResponse
queryOrderById
(
@Validated
@LogParams
@RequestBody
QueryOrderVo
queryOrderVo
)
{
return
orderservice
.
queryOrderById
(
queryOrderVo
.
getOperation
(),
queryOrderVo
.
getSessionId
(),
queryOrderVo
.
getOid
(),
queryOrderVo
.
getPartnerId
(),
queryOrderVo
.
getChannelType
());
return
orderservice
.
queryOrderById
(
queryOrderVo
.
getOperation
(),
queryOrderVo
.
getSessionId
(),
queryOrderVo
.
getOid
(),
queryOrderVo
.
getPartnerId
(),
queryOrderVo
.
getChannelType
()
,
queryOrderVo
.
getIsQueryAfterPay
(),
queryOrderVo
.
getPayGiftVer
());
}
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/QueryOrderVo.java
View file @
3c039c99
...
...
@@ -100,4 +100,9 @@ public class QueryOrderVo {
*/
private
Boolean
needInvoice
;
/**
* 是否支付后查询 1:已支付 0:未支付
*/
private
Integer
isQueryAfterPay
=
0
;
}
order-application-service/src/main/java/cn/freemud/service/Orderservice.java
View file @
3c039c99
...
...
@@ -63,7 +63,7 @@ public interface Orderservice extends OrderFactoryService{
* @param oid 订单ID
* @return
*/
BaseResponse
queryOrderById
(
Integer
operation
,
String
sessionId
,
String
oid
,
String
partnerId
,
String
channel
);
BaseResponse
queryOrderById
(
Integer
operation
,
String
sessionId
,
String
oid
,
String
partnerId
,
String
channel
,
Integer
isQueryAfterPay
,
Integer
payGiftVer
);
BaseResponse
cancelPayOrder
(
DeleteOrderVo
deleteOrderVo
);
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
3c039c99
...
...
@@ -1168,7 +1168,7 @@ public class OrderServiceImpl implements Orderservice {
@Override
public
BaseResponse
queryCollageOrderById
(
Integer
operation
,
String
sessionId
,
String
oid
,
String
partnerId
,
String
channel
)
{
BaseResponse
orderInfoRes
=
this
.
queryOrderById
(
operation
,
sessionId
,
oid
,
partnerId
,
channel
);
BaseResponse
orderInfoRes
=
this
.
queryOrderById
(
operation
,
sessionId
,
oid
,
partnerId
,
channel
,
0
,
null
);
if
(
null
==
orderInfoRes
.
getResult
()
||
!
String
.
valueOf
(
RESPONSE_SUCCESS_CODE
).
equals
(
orderInfoRes
.
getCode
()))
{
return
orderInfoRes
;
...
...
@@ -1407,7 +1407,7 @@ public class OrderServiceImpl implements Orderservice {
}
@Override
public
BaseResponse
queryOrderById
(
Integer
operation
,
String
sessionId
,
String
oid
,
String
partnerId
,
String
channel
)
{
public
BaseResponse
queryOrderById
(
Integer
operation
,
String
sessionId
,
String
oid
,
String
partnerId
,
String
channel
,
Integer
isQueryAfterPay
,
Integer
payGiftVer
)
{
AssortmentCustomerInfoVo
userInfo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
userInfo
==
null
||
StringUtils
.
isEmpty
(
userInfo
.
getMemberId
()))
{
return
ResponseUtil
.
error
(
ResponseResult
.
NOT_LOGIN
);
...
...
@@ -1532,6 +1532,8 @@ public class OrderServiceImpl implements Orderservice {
// 目前只有coco在订单详情参加支付有礼,且不检查订单的状态
if
(
cocoPartnerId
.
contains
(
partnerId
))
{
joinPayGift
(
sessionId
,
queryOrderResponseVo
,
partnerId
,
null
);
}
else
if
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
().
equals
(
orderBean
.
getBizType
())
&&
Integer
.
valueOf
(
1
).
equals
(
isQueryAfterPay
))
{
joinPayGift
(
sessionId
,
queryOrderResponseVo
,
partnerId
,
payGiftVer
);
}
//拼团订单
...
...
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