Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e20aa32f
authored
Oct 23, 2017
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify the return inventory
parent
86226760
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
src/main/java/com/ctrip/fun/golf/service/order/EventActivityOrderService.java
src/main/resources/debug/payment.properties
src/main/java/com/ctrip/fun/golf/service/order/EventActivityOrderService.java
View file @
e20aa32f
...
@@ -1253,20 +1253,20 @@ public class EventActivityOrderService extends
...
@@ -1253,20 +1253,20 @@ public class EventActivityOrderService extends
}
else
{
}
else
{
//返还库存
//返还库存
//继续预订的情况下,前台只占了一个库存, 但是job是开了很多, 所以job会返多次库存, 所以继续预订只需要返一次就行, 这种情况只针对非实时teetime, 因为实时teetime前台不是走的继续预订
//继续预订的情况下,前台只占了一个库存, 但是job是开了很多, 所以job会返多次库存, 所以继续预订只需要返一次就行, 这种情况只针对非实时teetime, 因为实时teetime前台不是走的继续预订
EventActivityOrderItem
eventActivityOrderItem
=
getEventActivityOrderItem
(
order
);
Integer
realTimeTeeTimeType
=
ResourceRealTimeTeeTimeTypeEnum
.
NORMAL
.
getValue
();
if
(
eventActivityOrderItem
!=
null
){
realTimeTeeTimeType
=
eventActivityOrderItem
.
getRealTimeTeeTimeType
();
}
if
(
realTimeTeeTimeType
==
ResourceRealTimeTeeTimeTypeEnum
.
NORMAL
.
getValue
()){
if
(
eventCustomerInfoService
.
isValidEventCustomer
(
orderId
,
order
.
getUid
())){
if
(
eventCustomerInfoService
.
isValidEventCustomer
(
orderId
,
order
.
getUid
())){
//只有在这个单子对应的库存真正被占用了,才返还库存,否则无效的占位是不会多返的
//只有在这个单子对应的库存真正被占用了,才返还库存,否则无效的占位是不会多返的
this
.
returnInventory
(
order
,
false
);
this
.
returnInventory
(
order
,
false
);
}
}
/*EventActivityOrderItem eventActivityOrderItem = getEventActivityOrderItem(order);
Integer realTimeTeeTimeType = ResourceRealTimeTeeTimeTypeEnum.NORMAL.getValue();
if(eventActivityOrderItem != null){
realTimeTeeTimeType = eventActivityOrderItem.getRealTimeTeeTimeType();
}*/
/* if(realTimeTeeTimeType == ResourceRealTimeTeeTimeTypeEnum.NORMAL.getValue()){
}else{
}else{
this.returnInventory(order, false);
this.returnInventory(order, false);
}
}
*/
int
processStatus
=
order
.
getProcessStatus
();
int
processStatus
=
order
.
getProcessStatus
();
processStatus
|=
OrderStatusBitEnum
.
CANCELING
.
getValue
();
processStatus
|=
OrderStatusBitEnum
.
CANCELING
.
getValue
();
processStatus
|=
OrderStatusBitEnum
.
CANCELED
.
getValue
();
processStatus
|=
OrderStatusBitEnum
.
CANCELED
.
getValue
();
...
...
src/main/resources/debug/payment.properties
View file @
e20aa32f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
payment.createPayOrderPath
=
http://localhost:8080/fun-common-soa/payment/createPayOrder
payment.createPayOrderPath
=
http://localhost:8080/fun-common-soa/payment/createPayOrder
payment.payOrderOperatePath
=
http://localhost:8080/fun-common-soa/payment/payOrderOperate
payment.payOrderOperatePath
=
http://localhost:8080/fun-common-soa/payment/payOrderOperate
payment.queryPayStatusPath
=
http://localhost:8080/fun-common-soa/payment/queryPayStatus
payment.queryPayStatusPath
=
http://localhost:8080/fun-common-soa/payment/queryPayStatus
payment.merchantId
=
99
payment.merchantId
=
3000003
#payment.merchantId=3000003
#payment.merchantId=3000003
payment.courseBaseNotifyUrl
=
http://112.65.124.86:18081/fun-common-soa/notify/courseOrder
payment.courseBaseNotifyUrl
=
http://112.65.124.86:18081/fun-common-soa/notify/courseOrder
payment.tourBaseNotifyUrl
=
http://112.65.124.86:18081/fun-common-soa/notify/tourOrder
payment.tourBaseNotifyUrl
=
http://112.65.124.86:18081/fun-common-soa/notify/tourOrder
...
...
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