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
d2220509
Commit
d2220509
authored
Sep 02, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MES质量评审接口调试
parent
9966afa9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
unqualifiedMaterials.ftl
...ain/webapp/template/print/topsun/unqualifiedMaterials.ftl
+1
-1
UnqualifiedMaterialsApplicationImpl.java
...application/impl/UnqualifiedMaterialsApplicationImpl.java
+2
-2
DefaultHttpClient.java
.../java/com/huigou/topsun/sap/common/DefaultHttpClient.java
+4
-1
No files found.
topsun-xt/src/main/webapp/template/print/topsun/unqualifiedMaterials.ftl
View file @
d2220509
...
...
@@ -49,7 +49,7 @@
</tr>
<tr
style=
"height: 70px"
>
<td
class=
"center"
>
异常描述
</td>
<td
class=
"
center
"
colspan=
"5"
>
${exceptionDesc?default("")?html}
</td>
<td
class=
"
left
"
colspan=
"5"
>
${exceptionDesc?default("")?html}
</td>
</tr>
<tr>
<td
class=
"center"
>
责任部门:
</td>
...
...
topsun/src/main/java/com/huigou/topsun/mes/unqualifiedMaterials/application/impl/UnqualifiedMaterialsApplicationImpl.java
View file @
d2220509
...
...
@@ -169,11 +169,11 @@ public class UnqualifiedMaterialsApplicationImpl extends FlowBroker implements U
ClassHelper
.
copyProperties
(
unqualifiedMaterials
,
unqualifiedMaterialsFeedBack
);
unqualifiedMaterialsFeedBack
.
setActionType
(
"checkIqcResult"
);
try
{
String
execute
=
httpClient
.
executeFor
Ep
(
unqualifiedMaterialsFeedBack
,
"v1/iqc/bpmapi"
);
String
execute
=
httpClient
.
executeFor
Mes
(
unqualifiedMaterialsFeedBack
,
"v1/iqc/bpmapi"
);
MesResult
mesResult
=
JSONObject
.
parseObject
(
execute
,
MesResult
.
class
);
resultMap
.
put
(
"TYPE"
,
mesResult
.
getCode
());
resultMap
.
put
(
"message"
,
mesResult
.
getMsg
());
if
(!
"
200
"
.
equals
(
mesResult
.
getCode
())){
if
(!
"
S
"
.
equals
(
mesResult
.
getCode
())){
throw
new
RuntimeException
(
"数据传输失败,"
+
mesResult
.
getMsg
());
}
unqualifiedMaterials
.
setCode
(
mesResult
.
getCode
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/common/DefaultHttpClient.java
View file @
d2220509
...
...
@@ -105,13 +105,16 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient {
String
ip
=
SystemCache
.
getParameter
(
"mes.service.ip"
,
String
.
class
);
// 上下文
String
applicationContext
=
SystemCache
.
getParameter
(
"mes.service.application.context"
,
String
.
class
);
String
username
=
SystemCache
.
getParameter
(
"mes.service.username"
,
String
.
class
);
String
password
=
SystemCache
.
getParameter
(
"mes.service.password"
,
String
.
class
);
String
usernameAndPassword
=
username
+
":"
+
password
;
//String serverUrl = "http://192.168.23.15:8080/api/od/saleOrder/auditedResult.ajax";
StringBuffer
serverUrl
=
new
StringBuffer
();
serverUrl
.
append
(
ip
)
.
append
(
applicationContext
)
.
append
(
url
);
return
this
.
buildHttpClient
(
param
,
String
.
valueOf
(
serverUrl
),
""
);
return
this
.
buildHttpClient
(
param
,
String
.
valueOf
(
serverUrl
),
usernameAndPassword
);
}
/**
...
...
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