记得上下班打卡 | 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
e7666c03
Commit
e7666c03
authored
Jun 03, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call
parent
37a60b89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
KylinRefundsStatusServiceImpl.java
...zai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
+6
-10
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
View file @
e7666c03
...
@@ -383,16 +383,10 @@ public class KylinRefundsStatusServiceImpl {
...
@@ -383,16 +383,10 @@ public class KylinRefundsStatusServiceImpl {
newStatus
=
KylinTableStatusConst
.
ORDER_STATUS6
;
newStatus
=
KylinTableStatusConst
.
ORDER_STATUS6
;
}
}
orderStatusTable
.
setStatus
(
newStatus
);
orderStatusTable
.
setStatus
(
newStatus
);
kylinOrderTicketStatusMapper
.
update
(
KylinOrderTicketVo
kylinOrderTicketVo
=
new
KylinOrderTicketVo
();
orderStatusTable
,
new
UpdateWrapper
<
KylinOrderTicketStatus
>()
kylinOrderTicketVo
.
setStatus
(
newStatus
);
.
eq
(
"order_id"
,
orderTicketsId
)
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
kylinOrderTicketVo
)));
Document
orderDoc
=
mongoTemplate
.
getCollection
(
KylinOrderTicketVo
.
class
.
getSimpleName
()).
findOneAndUpdate
(
Query
.
query
(
Criteria
.
where
(
"orderTicketsId"
).
is
(
orderTicketsId
)).
getQueryObject
(),
orderObject
,
new
FindOneAndUpdateOptions
().
returnDocument
(
ReturnDocument
.
AFTER
)
);
);
dataUtils
.
delOrderTicketRedis
(
orderTicketsId
);
// 订单表
// 订单表
double
price
=
orderInfo
.
getPriceRefund
().
doubleValue
()
+
refundInfo
.
getPrice
().
doubleValue
();
double
price
=
orderInfo
.
getPriceRefund
().
doubleValue
()
+
refundInfo
.
getPrice
().
doubleValue
();
...
@@ -405,14 +399,16 @@ public class KylinRefundsStatusServiceImpl {
...
@@ -405,14 +399,16 @@ public class KylinRefundsStatusServiceImpl {
.
eq
(
"order_tickets_id"
,
orderTicketsId
)
.
eq
(
"order_tickets_id"
,
orderTicketsId
)
);
);
KylinOrderTicketVo
kylinOrderTicketVoOrder
=
new
KylinOrderTicketVo
();
KylinOrderTicketVo
kylinOrderTicketVoOrder
=
new
KylinOrderTicketVo
();
kylinOrderTicketVoOrder
.
setStatus
(
newStatus
);
kylinOrderTicketVoOrder
.
setRefundNumber
(
num
);
kylinOrderTicketVoOrder
.
setRefundNumber
(
num
);
kylinOrderTicketVoOrder
.
setPriceRefund
(
BigDecimal
.
valueOf
(
price
));
kylinOrderTicketVoOrder
.
setPriceRefund
(
BigDecimal
.
valueOf
(
price
));
BasicDBObject
orderEntitiesObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
kylinOrderTicketVoOrder
)));
BasicDBObject
orderEntitiesObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
kylinOrderTicketVoOrder
)));
Document
entitiesD
ocOrder
=
mongoTemplate
.
getCollection
(
KylinOrderTicketVo
.
class
.
getSimpleName
()).
findOneAndUpdate
(
Document
d
ocOrder
=
mongoTemplate
.
getCollection
(
KylinOrderTicketVo
.
class
.
getSimpleName
()).
findOneAndUpdate
(
Query
.
query
(
Criteria
.
where
(
"orderTicketsId"
).
is
(
orderTicketsId
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"orderTicketsId"
).
is
(
orderTicketsId
)).
getQueryObject
(),
orderEntitiesObject
,
orderEntitiesObject
,
new
FindOneAndUpdateOptions
().
returnDocument
(
ReturnDocument
.
AFTER
)
new
FindOneAndUpdateOptions
().
returnDocument
(
ReturnDocument
.
AFTER
)
);
);
dataUtils
.
delOrderTicketRedis
(
orderTicketsId
);
// 入场人
// 入场人
for
(
String
entitiesId
:
orderTicketEntitiesIdsArr
)
{
for
(
String
entitiesId
:
orderTicketEntitiesIdsArr
)
{
...
...
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