Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
336ff975
Commit
336ff975
authored
Sep 26, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
4e0cbebe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+8
-8
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
336ff975
...
...
@@ -1789,7 +1789,7 @@ public class OrderServiceImpl implements OrderService {
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
"exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?"
,
new
Object
[]
{
OutTradeNO
,
""
,
PayAmount
,
now
,
PayTypeID
,
"0"
,
"1"
}).
getDatas
().
get
(
0
);
String
returnStr
=
GsonUtil
.
toJson
(
returnMap
);
logger
.
info
(
"
优惠券回写:{}"
,
returnStr
);
logger
.
info
(
"
订单号:{},优惠券回写:{}"
,
salesOrderID
,
returnStr
);
Map
<
String
,
Object
>
aMap
=
returnMap
.
get
(
0
);
Integer
rStatus
=
(
Integer
)
aMap
.
get
(
"Status"
);
String
rErrorMsg
=
(
String
)
aMap
.
get
(
"ErrorMsg"
);
...
...
@@ -1813,7 +1813,7 @@ public class OrderServiceImpl implements OrderService {
crmService
.
vUpdateMemPoint
(
0
,
shopNO
,
shopNO
,
PayPoint
,
OutTradeNO
,
cashier
,
hostname
,
ipaddress
);
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
"exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?"
,
new
Object
[]
{
OutTradeNO
,
""
,
PayAmount
,
now
,
PayTypeID
,
"0"
,
"1"
}).
getDatas
().
get
(
0
);
String
returnStr
=
GsonUtil
.
toJson
(
returnMap
);
logger
.
info
(
"
积分回写:{}"
,
returnStr
);
logger
.
info
(
"
订单号:{} , 积分回写:{}"
,
salesOrderID
,
returnStr
);
Map
<
String
,
Object
>
aMap
=
returnMap
.
get
(
0
);
Integer
rStatus
=
(
Integer
)
aMap
.
get
(
"Status"
);
String
rErrorMsg
=
(
String
)
aMap
.
get
(
"ErrorMsg"
);
...
...
@@ -1835,7 +1835,7 @@ public class OrderServiceImpl implements OrderService {
crmService
.
vCardPay
(
shopNO
,
shopNO
,
PayAmount
,
posno
,
OutTradeNO
,
cashier
,
hostname
,
ipaddress
);
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
"exec up_B2BSalesOrderPayCallBack ?, ?, ?, ?, ?, ?, ?"
,
new
Object
[]
{
OutTradeNO
,
""
,
PayAmount
,
now
,
PayTypeID
,
"0"
,
"1"
}).
getDatas
().
get
(
0
);
String
returnStr
=
GsonUtil
.
toJson
(
returnMap
);
logger
.
info
(
"
储值余额支付回写:{}"
,
returnStr
);
logger
.
info
(
"
订单号:{} ,储值余额支付回写:{}"
,
salesOrderID
,
returnStr
);
Map
<
String
,
Object
>
aMap
=
returnMap
.
get
(
0
);
Integer
rStatus
=
(
Integer
)
aMap
.
get
(
"Status"
);
String
rErrorMsg
=
(
String
)
aMap
.
get
(
"ErrorMsg"
);
...
...
@@ -1881,9 +1881,9 @@ public class OrderServiceImpl implements OrderService {
boolean
isPay_170_flag
=
false
;
//170分账是否支付成功,true为成功,false为失败
String
statusName
=
""
;
for
(
int
ii
=
1
;
ii
<=
cbkTimes
;
ii
++)
{
//需求 #17427 失败了遍历100次,
logger
.
info
(
"
第:{} 次进行扫呗分账支付 ,请求:{} "
,
ii
,
payObj
.
toString
());
logger
.
info
(
"
订单号:{},第:{} 次进行扫呗分账支付 ,请求:{} "
,
salesOrderID
,
ii
,
payObj
.
toString
());
String
cbkResult
=
payClient
.
post
(
"/lcsw/fz_cbk_dotrans_f"
,
params
,
map
.
get
(
"trace_id"
)+
""
);
logger
.
info
(
"
第:{} 次进行扫呗分账支付 ,结果:{} "
,
ii
,
cbkResult
);
logger
.
info
(
"
订单号:{},第:{} 次进行扫呗分账支付 ,结果:{} "
,
salesOrderID
,
ii
,
cbkResult
);
JSONObject
cbkJsonResult
=
JSONObject
.
parseObject
(
cbkResult
);
if
(
cbkJsonResult
.
getBooleanValue
(
"isValid"
))
{
String
cbk_out_trade_no
=
cbkJsonResult
.
getString
(
"out_trade_no"
);
//CBK的支付结果单号
...
...
@@ -1894,7 +1894,7 @@ public class OrderServiceImpl implements OrderService {
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
sql
).
getDatas
().
get
(
0
);
String
returnStr
=
GsonUtil
.
toJson
(
returnMap
);
logger
.
info
(
"
第:{} 次进行扫呗分账支付成功 ,回写结果:{} "
,
ii
,
returnStr
);
logger
.
info
(
"
订单号:{},第:{} 次进行扫呗分账支付成功 ,回写结果:{} "
,
salesOrderID
,
ii
,
returnStr
);
isPay_170_flag
=
true
;
break
;
}
else
{
...
...
@@ -1908,9 +1908,9 @@ public class OrderServiceImpl implements OrderService {
String
sql
=
"exec up_B2BSalesOrderPayCallBack '"
+
OutTradeNO
+
"' ,'', '0' , '' , '"
+
PayTypeID
+
"' ,1,'"
+
statusName
+
"' "
;
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
sql
).
getDatas
().
get
(
0
);
String
returnStr
=
GsonUtil
.
toJson
(
returnMap
);
logger
.
info
(
"
第:{} 次进行扫呗分账支付失败 ,回写结果:{} "
,
ii
,
returnStr
);
logger
.
info
(
"
订单号:{},第:{} 次进行扫呗分账支付失败 ,回写结果:{} "
,
salesOrderID
,
ii
,
returnStr
);
}
catch
(
Exception
e
)
{
logger
.
info
(
"
第:{} 次进行扫呗分账支付失败 ,回写结果异常:{} "
,
ii
,
e
);
logger
.
info
(
"
订单号:{},第:{} 次进行扫呗分账支付失败 ,回写结果异常:{} "
,
salesOrderID
,
ii
,
e
);
}
}
}
...
...
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