Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
7310ec54
Commit
7310ec54
authored
Mar 31, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商修改
parent
57fe48c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+1
-1
SuppliersDataApplicationImpl.java
...pliers/application/impl/SuppliersDataApplicationImpl.java
+6
-4
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
7310ec54
...
@@ -145,7 +145,7 @@ function loadSuppliersPayListGrid() {
...
@@ -145,7 +145,7 @@ function loadSuppliersPayListGrid() {
},
},
},
},
{
{
display
:
"考虑的付款方式清单"
,
name
:
"zwels"
,
width
:
140
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
display
:
"考虑的付款方式清单"
,
name
:
"zwels
TextView
"
,
width
:
140
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
editor
:
{
editor
:
{
type
:
'dictionary'
,
type
:
'dictionary'
,
data
:
{
name
:
'zwels'
},
data
:
{
name
:
'zwels'
},
...
...
topsun/src/main/java/com/huigou/topsun/sap/suppliers/application/impl/SuppliersDataApplicationImpl.java
View file @
7310ec54
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.suppliers.application.impl;
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.suppliers.application.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
...
@@ -354,13 +355,13 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
...
@@ -354,13 +355,13 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
suppliersInfoVos
.
add
(
suppliersInfoVo
);
suppliersInfoVos
.
add
(
suppliersInfoVo
);
try
{
try
{
String
result
=
defaultHttpClient
.
execute
(
suppliersInfoVos
,
url
);
String
result
=
defaultHttpClient
.
execute
(
suppliersInfoVos
,
url
);
List
<
SapResult
>
sapResultList
=
objectMapper
.
readValue
(
result
,
new
TypeReference
<
List
<
SapResult
>>()
{
List
<
SapResult
>
sapResultList
=
JSONObject
.
parseArray
(
result
,
SapResult
.
class
);
});
SapResult
sapResult
=
sapResultList
.
get
(
0
);
SapResult
sapResult
=
sapResultList
.
get
(
0
);
resultMap
.
put
(
"sequence"
,
resultMap
.
get
(
"row"
));
resultMap
.
put
(
"sequence"
,
resultMap
.
get
(
"row"
));
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
resultMap
);
if
(
"S"
.
equals
(
sapResult
.
getTYPE
()))
{
if
(
"S"
.
equals
(
sapResult
.
getTYPE
()))
{
suppliersInfo
.
setPartner
(
sapResult
.
getMESSAGE_V1
());
suppliersInfo
.
setPartner
(
sapResult
.
getMESSAGE_V1
());
resultMap
.
put
(
"type"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"message"
,
sapResult
.
getMESSAGE
());
suppliersInfoRepository
.
save
(
suppliersInfo
);
suppliersInfoRepository
.
save
(
suppliersInfo
);
}
else
{
}
else
{
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
...
@@ -368,8 +369,9 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
...
@@ -368,8 +369,9 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"type"
,
"E"
);
resultMap
.
put
(
"type"
,
"E"
);
resultMap
.
put
(
"message"
,
e
.
getMessage
());
resultMap
.
put
(
"message"
,
e
.
getMessage
());
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
resultMap
);
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
resultMap
);
}
}
...
...
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