记得上下班打卡 | 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
e794f06f
Commit
e794f06f
authored
Dec 13, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 同步演出同步订单
parent
06dd778c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
InnerService.java
...net/client/admin/zhengzai/kylin/service/InnerService.java
+0
-36
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/InnerService.java
View file @
e794f06f
...
...
@@ -187,40 +187,4 @@ public class InnerService {
private
String
getPriceId
(
String
ticketId
)
{
return
ticketId
.
concat
(
"01"
);
}
//上报订单
public
boolean
reportO
(
KylinOrderTicketVo
vo
,
String
channelName
)
{
STInsertOrderParam
insertOrderParam
=
STInsertOrderParam
.
getNew
();
insertOrderParam
.
setOrderId
(
vo
.
getOrderTicketsId
());
insertOrderParam
.
setOrderTime
(
vo
.
getTimePay
());
insertOrderParam
.
setChannelType
(
1
);
insertOrderParam
.
setChannelName
(
channelName
);
insertOrderParam
.
setTicketNum
(
vo
.
getNumber
());
insertOrderParam
.
setTotalAmount
(
vo
.
getPriceActual
().
multiply
(
BigDecimal
.
valueOf
(
100
)).
intValue
());
insertOrderParam
.
setTicketType
(
1
);
insertOrderParam
.
setTicketMode
(
vo
.
getGetTicketType
().
equalsIgnoreCase
(
"express"
)
?
1
:
2
);
insertOrderParam
.
setAuthMode
(
dataUtils
.
getPerformanceIsTrueName
(
vo
.
getPerformanceId
())
==
1
?
3
:
1
);
int
voucherPrice
=
vo
.
getPriceVoucher
().
multiply
(
BigDecimal
.
valueOf
(
100
)).
divide
(
BigDecimal
.
valueOf
(
vo
.
getNumber
())).
intValue
();
List
<
OrderVo
>
orderVos
=
new
ArrayList
();
for
(
KylinOrderTicketEntitiesVo
item
:
vo
.
getEntitiesVoList
())
{
OrderVo
orderVo
=
OrderVo
.
getNew
();
orderVo
.
setTicketOrderId
(
item
.
getOrderTicketEntitiesId
());
orderVo
.
setPerformanceId
(
item
.
getPerformanceId
());
orderVo
.
setSessionId
(
item
.
getTimeId
());
orderVo
.
setSessionCode
(
getSessionCode
(
item
.
getTimeId
()));
orderVo
.
setPriceId
(
getPriceId
(
item
.
getTicketId
()));
orderVo
.
setTicketPrice
(
vo
.
getPrice
().
multiply
(
BigDecimal
.
valueOf
(
100
)).
intValue
());
orderVo
.
setTicketId
(
item
.
getTicketId
());
orderVo
.
setTicketOrderAmount
(
orderVo
.
getTicketPrice
()
-
voucherPrice
);
orderVos
.
add
(
orderVo
);
}
insertOrderParam
.
setTicketOrderList
(
orderVos
);
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
String
resultData
=
HttpUtil
.
postRaw
(
platform
+
"/platform/st/order/insert"
,
JSON
.
toJSONString
(
insertOrderParam
),
header
);
ResponseDto
<
Boolean
>
innerReturnVo
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
Boolean
>>()
{
});
return
innerReturnVo
.
getData
();
}
}
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