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
1f0e18b8
Commit
1f0e18b8
authored
Sep 26, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
d853389f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+17
-3
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
1f0e18b8
...
@@ -1917,14 +1917,28 @@ public class OrderServiceImpl implements OrderService {
...
@@ -1917,14 +1917,28 @@ public class OrderServiceImpl implements OrderService {
if
(
isHave170
)
{
//存在分账支付
if
(
isHave170
)
{
//存在分账支付
//检查是否要推疏东波
//检查是否要推疏东波
String
sql111
=
"exec up_B2BSalesOrderPayCallBack '"
+
salesOrderID
+
"'"
;
String
sql111
=
"select 1 from tSalesOrder a with(nolock), tSalesOrderDtl b with(nolock), tAgent t with(nolock) \r\n"
+
List
<
Map
<
String
,
Object
>>
returnMap
=
jdbcTemplate
.
executeMutil
(
sql111
).
getDatas
().
get
(
0
);
" where a.sSalesOrderID = b.sSalesOrderID\r\n"
+
" and b.nAgentID = t.nAgentID\r\n"
+
" and a.sSalesOrderID = '"
+
salesOrderID
+
"'\r\n"
+
" and t.sAgentNO in (select sItems from dbo.fn_Split((select sValue2 from tSystemCtrl with(nolock) where sCode = 'OrderToSudongPoUrl'),','))"
;
try
{
int
count
=
jdbcTemplate
.
queryForInt
(
sql111
);
//有值为1,则需要推送
if
(
count
>
0
)
{
logger
.
info
(
"订单单号 :"
+
salesOrderID
+
" 存在分账支付检查需要推送蔬东坡-------"
+
count
);
this
.
doPushOrderToSdongPo
(
salesOrderID
,
"1"
,
"0"
);
}
}
catch
(
Exception
e
)
{
logger
.
info
(
"订单单号 :"
+
salesOrderID
+
" 存在分账支付检查不需要推送蔬东坡-------"
);
}
/*List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil(sql111).getDatas().get(0);
Map<String,Object> orderMap = returnMap.get(0);
Map<String,Object> orderMap = returnMap.get(0);
logger.info("订单单号 :"+salesOrderID+" 存在分账支付检查是否要推送蔬东坡-------"+GsonUtil.toJson(returnMap));
logger.info("订单单号 :"+salesOrderID+" 存在分账支付检查是否要推送蔬东坡-------"+GsonUtil.toJson(returnMap));
String IsPush = orderMap.get("IsPush")+"";
String IsPush = orderMap.get("IsPush")+"";
if(IsPush.equals("1")) {
if(IsPush.equals("1")) {
this.doPushOrderToSdongPo(salesOrderID,IsPush,"0");
this.doPushOrderToSdongPo(salesOrderID,IsPush,"0");
}
}
*/
return
Rjx
.
jsonOk
().
setData
(
jdbcTemplate
.
queryForMap
(
sqlOrderQuery
,
salesOrderID
)).
toJson
();
return
Rjx
.
jsonOk
().
setData
(
jdbcTemplate
.
queryForMap
(
sqlOrderQuery
,
salesOrderID
)).
toJson
();
}
else
{
}
else
{
...
...
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