记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
622affa2
Commit
622affa2
authored
Jun 15, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 列表
parent
527f5461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
MongoVoUtils.java
.../java/com/liquidnet/service/kylin/utils/MongoVoUtils.java
+13
-11
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/MongoVoUtils.java
View file @
622affa2
...
...
@@ -115,9 +115,9 @@ public class MongoVoUtils {
isLackRegister
=
1
;
}
payCountdownMinute
=
t1
.
getPayCountdownMinute
();
if
(
price
.
compareTo
(
new
BigDecimal
(
"0.00"
))==
0
)
{
if
(
price
.
compareTo
(
new
BigDecimal
(
"0.00"
))
==
0
)
{
price
=
kylinTicketVo
.
getPrice
();
}
else
{
}
else
{
if
(
kylinTicketVo
.
getPrice
().
compareTo
(
price
)
<
0
)
{
price
=
kylinTicketVo
.
getPrice
();
}
...
...
@@ -158,14 +158,16 @@ public class MongoVoUtils {
*/
public
Boolean
resetOrderListVo
(
String
userId
,
Integer
type
,
String
orderId
)
{
List
<
KylinOrderListVo
>
vo
=
new
ArrayList
<>();
List
<
KylinOrderListVo
>
redisVo
=
dataUtils
.
getOrderList
(
userId
);
KylinOrderTicketVo
data
;
KylinOrderListVo
voItem
;
List
<
KylinOrderListVo
>
redisVo
=
new
ArrayList
();
KylinOrderListVo
voItem
=
new
KylinOrderListVo
();
KylinOrderTicketVo
data
=
dataUtils
.
getOrderTicketVo
(
orderId
);
BeanUtils
.
copyProperties
(
data
,
voItem
);
redisVo
.
add
(
voItem
);
redisVo
.
addAll
(
dataUtils
.
getOrderList
(
userId
));
switch
(
type
)
{
case
1
:
data
=
dataUtils
.
getOrderTicketVo
(
orderId
);
voItem
=
new
KylinOrderListVo
();
BeanUtils
.
copyProperties
(
data
,
voItem
);
for
(
int
i
=
0
;
i
<
redisVo
.
size
();
i
++)
{
if
(
i
==
40
)
{
break
;
...
...
@@ -176,12 +178,12 @@ public class MongoVoUtils {
vo
.
add
(
redisVo
.
get
(
i
-
1
));
}
}
if
(
redisVo
.
size
()
==
0
)
{
vo
.
add
(
voItem
);
}
dataUtils
.
setOrderTicketVo
(
userId
,
vo
);
return
true
;
case
2
:
data
=
dataUtils
.
getOrderTicketVo
(
orderId
);
voItem
=
new
KylinOrderListVo
();
BeanUtils
.
copyProperties
(
data
,
voItem
);
for
(
int
i
=
0
;
i
<
redisVo
.
size
();
i
++)
{
if
(
i
==
40
)
{
break
;
...
...
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