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
ec8acbba
authored
Dec 27, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the limit of that inventory is less than 4
parent
9798ecbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/ctrip/fun/golf/service/order/EventActivityOrderService.java
src/main/java/com/ctrip/fun/golf/service/order/EventActivityOrderService.java
View file @
ec8acbba
...
@@ -496,8 +496,8 @@ public class EventActivityOrderService extends
...
@@ -496,8 +496,8 @@ public class EventActivityOrderService extends
int
existCustomerNum
=
eventCustomerInfoDao
.
queryCustomerNumInSameGroup
(
groupNum
,
int
existCustomerNum
=
eventCustomerInfoDao
.
queryCustomerNumInSameGroup
(
groupNum
,
resourceId
,
priceDate
);
resourceId
,
priceDate
);
// 暂时每组只能4个人
// 暂时每组只能4个人
if
(
existCustomerNum
+
customerInfoSize
<=
4
if
(
//existCustomerNum + customerInfoSize <= 4 &&
&&
existCustomerNum
+
customerInfoSize
<=
intTotalInventory
)
{
existCustomerNum
+
customerInfoSize
<=
intTotalInventory
)
{
return
groupNum
;
return
groupNum
;
}
else
{
}
else
{
throw
new
OrderException
(-
4
,
"没有足够的库存"
);
throw
new
OrderException
(-
4
,
"没有足够的库存"
);
...
...
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