Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit efca6a88
由
LN
编写于
2022-05-12 10:32:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
西门子测试修改
1 个父辈
9ce8f985
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
2 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/siemens/SiemensApi.java
src/main/java/com/neotel/smfcore/siemens/util/WSClientUtil.java
src/main/resources/config/application.yml
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
efca6a8
...
@@ -79,6 +79,13 @@ public class StoragePosController {
...
@@ -79,6 +79,13 @@ public class StoragePosController {
@GetMapping
@GetMapping
@PreAuthorize
(
"@el.check('storagePos:list')"
)
@PreAuthorize
(
"@el.check('storagePos:list')"
)
public
PageData
<
StoragePosDto
>
query
(
StoragePosQueryCriteria
criteria
,
Pageable
pageable
)
{
public
PageData
<
StoragePosDto
>
query
(
StoragePosQueryCriteria
criteria
,
Pageable
pageable
)
{
// if(criteria.getBlurry().startsWith("test1")){
// String mid=criteria.getBlurry().replace("test1","");
// SiemensApi.getMaterialLot(1,"1","storage1",mid);
// }else if(criteria.getBlurry().startsWith("test2")){
// String mid=criteria.getBlurry().replace("test2","");
// SiemensApi.processMaterialLot(1,"1","storage1",mid);
// }
// SiemensApi.getMaterialLot(1,"1","aaa","maid");
// SiemensApi.getMaterialLot(1,"1","aaa","maid");
if
(
criteria
.
getStorageIdList
()
!=
null
&&
criteria
.
getStorageIdList
().
contains
(
"0"
))
{
if
(
criteria
.
getStorageIdList
()
!=
null
&&
criteria
.
getStorageIdList
().
contains
(
"0"
))
{
criteria
.
setStorageIdList
(
null
);
criteria
.
setStorageIdList
(
null
);
...
...
src/main/java/com/neotel/smfcore/siemens/SiemensApi.java
查看文件 @
efca6a8
...
@@ -142,7 +142,8 @@ public class SiemensApi {
...
@@ -142,7 +142,8 @@ public class SiemensApi {
+
"<CallerId xmlns=\"http://siplace.com/facts\">8100449b-4b84-450b-aaab-48a419b13787</CallerId>"
+
"<CallerId xmlns=\"http://siplace.com/facts\">8100449b-4b84-450b-aaab-48a419b13787</CallerId>"
+
"<CallerName xmlns=\"http://siplace.com/facts\">Rojonic</CallerName>"
+
"<CallerName xmlns=\"http://siplace.com/facts\">Rojonic</CallerName>"
+
"<Signature xmlns=\"http://siplace.com/facts\">62C28B8F3033423c9286658A67D67674</Signature>"
+
"<Signature xmlns=\"http://siplace.com/facts\">62C28B8F3033423c9286658A67D67674</Signature>"
+
"<a:To s:mustUnderstand=\"1\">http://cnctu04053.cn104.local/FactsWebServices/MaterialLot.svc</a:To>"
+
"<a:To s:mustUnderstand=\"1\">"
+
config
.
url
+
"</a:To>"
// + "<a:To s:mustUnderstand=\"1\">http://cnctu04053.cn104.local/FactsWebServices/MaterialLot.svc</a:To>"
+
"</s:Header>"
+
"</s:Header>"
+
"<s:Body xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
+
"<s:Body xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
+
"<ProcessMaterialLotType xmlns=\"http://siplace.com/facts/materiallot/2010/01\" versionID=\"2.0.0.1642\" releaseID=\"2.0.0.1642\">"
+
"<ProcessMaterialLotType xmlns=\"http://siplace.com/facts/materiallot/2010/01\" versionID=\"2.0.0.1642\" releaseID=\"2.0.0.1642\">"
...
...
src/main/java/com/neotel/smfcore/siemens/util/WSClientUtil.java
查看文件 @
efca6a8
...
@@ -29,6 +29,7 @@ public class WSClientUtil {
...
@@ -29,6 +29,7 @@ public class WSClientUtil {
// + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><ns1:GetNcgOnlineInfo soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns1=\"urn:ncg\"/></soapenv:Body></soapenv:Envelope>";
// + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><ns1:GetNcgOnlineInfo soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns1=\"urn:ncg\"/></soapenv:Body></soapenv:Envelope>";
Map
<
String
,
String
>
headers
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
headers
=
new
HashMap
<
String
,
String
>();
headers
.
put
(
"Content-Type"
,
"application/soap+xml; charset=utf-8"
);
headers
.
put
(
"Content-Type"
,
"application/soap+xml; charset=utf-8"
);
log
.
info
(
url
+
" send :\r\n"
+
soap
);
try
{
try
{
byte
[]
b
=
soap
.
getBytes
(
"utf-8"
);
byte
[]
b
=
soap
.
getBytes
(
"utf-8"
);
...
...
src/main/resources/config/application.yml
查看文件 @
efca6a8
...
@@ -8,7 +8,7 @@ hella:
...
@@ -8,7 +8,7 @@ hella:
siemens
:
siemens
:
host
:
"
127.0.0.1"
host
:
"
127.0.0.1"
port
:
3333
port
:
3333
# url: "http://cnctu04053.cn104.local/Facts
WebServices/MaterialLot.svc"
# url: "http://cnctu041p059.cn104.local/Production/
WebServices/MaterialLot.svc"
action
:
action
:
GetMaterialLot
:
"
http://siplace.com/facts/materiallot/2010/01/MaterialLot/GetMaterialLot"
GetMaterialLot
:
"
http://siplace.com/facts/materiallot/2010/01/MaterialLot/GetMaterialLot"
ProcessMaterialLot
:
"
http://siplace.com/facts/materiallot/2010/01/MaterialLot/ProcessMaterialLot"
ProcessMaterialLot
:
"
http://siplace.com/facts/materiallot/2010/01/MaterialLot/ProcessMaterialLot"
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论