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
1bc90b50
authored
Sep 17, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复后台占座的人独占一组的问题
parent
cfa6150e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 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 @
1bc90b50
...
...
@@ -484,22 +484,17 @@ public class EventActivityOrderService extends
if
(
intTotalInventory
==
null
)
{
throw
new
OrderException
(-
4
,
"没有找到对应的库存"
);
}
// 最多能分组的数量
int
totalGroupNum
=
intTotalInventory
/
4
;
if
(
totalGroupNum
*
4
<
intTotalInventory
)
{
totalGroupNum
++;
}
while
(
groupNum
<=
totalGroupNum
)
{
int
existCustomerNum
=
eventCustomerInfoDao
.
queryCustomerNumInSameGroup
(
groupNum
,
int
existCustomerNum
=
eventCustomerInfoDao
.
queryCustomerNumInSameGroup
(
groupNum
,
resourceId
,
priceDate
);
while
(
existCustomerNum
+
customerInfoSize
>
4
){
groupNum
++;
existCustomerNum
=
eventCustomerInfoDao
.
queryCustomerNumInSameGroup
(
groupNum
,
resourceId
,
priceDate
);
if
(
existCustomerNum
+
customerInfoSize
<=
4
)
{
return
groupNum
;
}
else
{
groupNum
++;
}
}
return
groupNum
;
}
return
0
;
}
private
int
calculateValidGroupNumForRealTimeTeeTime
(
...
...
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