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
f6333632
authored
Dec 14, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app社员权益下单接口报500修复
parent
c2b50146
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/java/com/ctrip/fun/golf/service/order/BuyVoucherOrderService.java
src/main/java/com/ctrip/fun/golf/service/order/BuyVoucherOrderService.java
View file @
f6333632
...
...
@@ -102,22 +102,22 @@ public class BuyVoucherOrderService extends AbstractOrderService<CommuneOrderBea
BuyVoucherActivity
buyoucherActivity
=
buyVoucherActivityDao
.
findById
(
communeOrderBean
.
getActivityId
());
if
(
buyoucherActivity
==
null
){
throw
new
OrderException
(-
688
,
"没有对应的活动,请检查"
);
throw
new
OrderException
(-
10
,
"没有对应的活动,请检查"
);
}
if
(
buyoucherActivity
.
getActivityStart
().
getTime
()>(
new
Date
()).
getTime
()){
throw
new
OrderException
(-
688
,
"该活动尚未开始"
);
throw
new
OrderException
(-
10
,
"该活动尚未开始"
);
}
if
(
buyoucherActivity
.
getActivityEnd
().
getTime
()<(
new
Date
()).
getTime
()){
throw
new
OrderException
(-
689
,
"该活动已经结束"
);
throw
new
OrderException
(-
10
,
"该活动已经结束"
);
}
if
(
communeOrderBean
.
getPrePayAmount
().
compareTo
(
buyoucherActivity
.
getCommunePrice
())
!=
0
&&
communeOrderBean
.
getPrePayAmount
().
compareTo
(
buyoucherActivity
.
getGuestPrice
())
!=
0
){
throw
new
OrderException
(-
41
,
"您提交的预付款金额有问题,请检查!"
);
throw
new
OrderException
(-
10
,
"您提交的预付款金额有问题,请检查!"
);
}
int
count
=
this
.
getOrderDao
().
queryVoucherPayedOrder
(
communeOrderBean
.
getUid
(),
communeOrderBean
.
getActivityId
());
if
(
count
>=
buyoucherActivity
.
getBuyLimitTimes
()){
throw
new
OrderException
(-
666
,
"您已经超过该活动限制次数!"
);
throw
new
OrderException
(-
10
,
"您已经超过该活动限制次数!"
);
}
}
...
...
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