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
c0df28ff
authored
Oct 28, 2020
by
caosy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
360 980 订单名称
parent
4597af45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/service/order/AbstractOrderService.java
src/main/java/com/ctrip/fun/golf/service/order/CommuneOrderService.java
src/main/java/com/ctrip/fun/golf/service/order/AbstractOrderService.java
View file @
c0df28ff
...
@@ -291,6 +291,7 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex
...
@@ -291,6 +291,7 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex
ResponseMp
<
JSONObject
>
response
=
new
ResponseMp
<
JSONObject
>();
ResponseMp
<
JSONObject
>
response
=
new
ResponseMp
<
JSONObject
>();
JSONObject
jSONObject
=
new
JSONObject
();
JSONObject
jSONObject
=
new
JSONObject
();
try
{
try
{
jSONObject
=
WeiXinAtcion
.
weixinPlay
(
userExt
.
getMiniAppOpenId
(),
needPayAmount
.
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
order
.
getOrderNo
()+
""
,
this
.
getNotifyUrlForWeiXinPay
(
order
),
"dingqiu"
);
jSONObject
=
WeiXinAtcion
.
weixinPlay
(
userExt
.
getMiniAppOpenId
(),
needPayAmount
.
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
order
.
getOrderNo
()+
""
,
this
.
getNotifyUrlForWeiXinPay
(
order
),
"dingqiu"
);
jSONObject
.
put
(
"needWXPay"
,
true
);
jSONObject
.
put
(
"needWXPay"
,
true
);
...
...
src/main/java/com/ctrip/fun/golf/service/order/CommuneOrderService.java
View file @
c0df28ff
...
@@ -269,6 +269,10 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
...
@@ -269,6 +269,10 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
public
JSONObject
placeOrderForMiniApp
(
CommuneOrderBean
communeOrderBean
)
throws
Exception
{
public
JSONObject
placeOrderForMiniApp
(
CommuneOrderBean
communeOrderBean
)
throws
Exception
{
this
.
checkParameters
(
communeOrderBean
);
this
.
checkParameters
(
communeOrderBean
);
if
(
this
.
beforePlaceOrder
(
communeOrderBean
))
{
if
(
this
.
beforePlaceOrder
(
communeOrderBean
))
{
if
(
communeOrderBean
.
getActivityId
()
!=
0
){
BuyVoucherActivity
buyoucherActivity
=
buyVoucherActivityDao
.
findById
(
communeOrderBean
.
getActivityId
());
communeOrderBean
.
setOrderName
(
buyoucherActivity
.
getActivityName
());
}
Order
order
=
this
.
saveOrder
(
communeOrderBean
);
Order
order
=
this
.
saveOrder
(
communeOrderBean
);
this
.
saveOrderItems
(
communeOrderBean
,
order
.
getOrderId
());
this
.
saveOrderItems
(
communeOrderBean
,
order
.
getOrderId
());
UserExt
userExt
=
getUserExtDao
().
getByUid
(
communeOrderBean
.
getUid
());
UserExt
userExt
=
getUserExtDao
().
getByUid
(
communeOrderBean
.
getUid
());
...
...
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