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
db2b27d3
Commit
db2b27d3
authored
Mar 30, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料/产品接口数据的修改2
parent
a815b1cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+9
-8
No files found.
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
db2b27d3
...
...
@@ -403,22 +403,23 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
String
result
=
defaultHttpClient
.
execute
(
mapList
,
url
);
List
<
Map
<
String
,
Object
>>
resultList
=
objectMapper
.
readValue
(
result
,
new
TypeReference
<
List
<
Map
<
String
,
Object
>>>()
{
});
resultMap
=
resultList
.
get
(
0
);
resultMap
.
put
(
"businessType"
,
busiType
);
resultMap
.
put
(
"businessId"
,
prodApplyBaseInfo
.
getId
());
if
(
"S"
.
equals
(
resultMap
.
get
(
"TYPE"
)))
{
Map
<
String
,
Object
>
backMap
=
resultList
.
get
(
0
);
// resultMap.put("businessType", busiType);
// resultMap.put("parameter", JSON.toJSONString(map));
// resultMap.put("businessId", prodApplyBaseInfo.getId());
if
(
"S"
.
equals
(
backMap
.
get
(
"TYPE"
)))
{
resultMap
.
put
(
"type"
,
"S"
);
resultMap
.
put
(
"message"
,
applyDept
.
getMatnr
()+
result
Map
.
get
(
"MESSAGE"
));
resultMap
.
put
(
"message"
,
applyDept
.
getMatnr
()+
":"
+
back
Map
.
get
(
"MESSAGE"
));
if
(!
"product"
.
equals
(
prodApplyBaseInfo
.
getKind
()))
{
applyDept
.
setMatnr
((
String
)
m
ap
.
get
(
"MESSAGE_V1"
));
applyDept
.
setMatnr
((
String
)
backM
ap
.
get
(
"MESSAGE_V1"
));
}
nonProdApplyDeptApplication
.
save
(
applyDept
);
}
else
{
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
result
Map
.
get
(
"MESSAGE"
));
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
back
Map
.
get
(
"MESSAGE"
));
}
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"type"
,
"E"
);
resultMap
.
put
(
"message"
,
e
.
getMessage
());
resultMap
.
put
(
"message"
,
applyDept
.
getMatnr
()+
":"
+
e
.
getMessage
());
//sapMutualEpLogApplication.saveSapMutualEpLog(resultMap);
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
...
...
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