Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
oms
Project
Project
Details
Activity
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
曲欣亮
oms
Commits
2c92549c
Commit
2c92549c
authored
Oct 24, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
f19be39e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
OrderServiceImpl.java
...ain/java/com/egolm/oms/service/impl/OrderServiceImpl.java
+3
-1
No files found.
src/main/java/com/egolm/oms/service/impl/OrderServiceImpl.java
View file @
2c92549c
...
@@ -232,12 +232,14 @@ public class OrderServiceImpl implements OrderService {
...
@@ -232,12 +232,14 @@ public class OrderServiceImpl implements OrderService {
@Transactional
@Transactional
public
void
paySuccess
(
String
sSalesOrderID
,
BigDecimal
nPayAmount
,
String
sOpenID
,
String
sTransTraceNO
,
String
sOutTradeNO
,
Date
dPayDateTime
)
{
public
void
paySuccess
(
String
sSalesOrderID
,
BigDecimal
nPayAmount
,
String
sOpenID
,
String
sTransTraceNO
,
String
sOutTradeNO
,
Date
dPayDateTime
)
{
Integer
nIdx
=
jdbcTemplate
.
queryForInt
(
"select ISNULL(MAX(nIdx),0) from tSalesOrderPay where sSalesOrderID = ?"
,
sSalesOrderID
);
Integer
nIdx
=
jdbcTemplate
.
queryForInt
(
"select ISNULL(MAX(nIdx),0) from tSalesOrderPay where sSalesOrderID = ?"
,
sSalesOrderID
);
nPayAmount
=
nPayAmount
.
multiply
(
new
BigDecimal
(
0.01
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"sSalesOrderID"
,
sSalesOrderID
);
map
.
put
(
"sSalesOrderID"
,
sSalesOrderID
);
map
.
put
(
"nIdx"
,
++
nIdx
);
map
.
put
(
"nIdx"
,
++
nIdx
);
map
.
put
(
"sPayTypeID"
,
"WxPay"
);
map
.
put
(
"sPayTypeID"
,
"WxPay"
);
map
.
put
(
"sPayType"
,
"微信支付(小程序)"
);
map
.
put
(
"sPayType"
,
"微信支付(小程序)"
);
map
.
put
(
"nPayAmount"
,
nPayAmount
.
multiply
(
new
BigDecimal
(
0.01
))
);
map
.
put
(
"nPayAmount"
,
nPayAmount
);
map
.
put
(
"sOutTradeNO"
,
sOutTradeNO
);
map
.
put
(
"sOutTradeNO"
,
sOutTradeNO
);
map
.
put
(
"nPayDisAmount"
,
BigDecimal
.
ZERO
);
map
.
put
(
"nPayDisAmount"
,
BigDecimal
.
ZERO
);
map
.
put
(
"dPayDateTime"
,
dPayDateTime
);
map
.
put
(
"dPayDateTime"
,
dPayDateTime
);
...
...
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