Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5d1d73ac
由
孙克
编写于
2024-04-29 15:43:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接收WMS手动发料信息并转发Tower
1 个父辈
02f5b187
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
1 行删除
src/main/java/com/neotel/smfcore/custom/lizhen/LizhenController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/LineController.java
src/main/resources/config/application.yml
src/main/java/com/neotel/smfcore/custom/lizhen/LizhenController.java
查看文件 @
5d1d73a
package
com
.
neotel
.
smfcore
.
custom
.
lizhen
;
package
com
.
neotel
.
smfcore
.
custom
.
lizhen
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.bean.ResultBean
;
...
@@ -22,6 +23,8 @@ import com.neotel.smfcore.core.system.service.manager.IDataLogManager;
...
@@ -22,6 +23,8 @@ import com.neotel.smfcore.core.system.service.manager.IDataLogManager;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.custom.lizhen.innerBox.bean.PreWarningItem
;
import
com.neotel.smfcore.custom.lizhen.innerBox.bean.PreWarningItem
;
import
com.neotel.smfcore.custom.lizhen.innerBox.util.PreWarningItemCache
;
import
com.neotel.smfcore.custom.lizhen.innerBox.util.PreWarningItemCache
;
import
com.neotel.smfcore.custom.lizhen.third.maicheng.bean.AskReelBoxList
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.security.annotation.AnonymousAccess
;
import
com.neotel.smfcore.security.annotation.AnonymousAccess
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -87,6 +90,9 @@ public class LizhenController {
...
@@ -87,6 +90,9 @@ public class LizhenController {
@Value
(
"${lizhen.F4.url}"
)
@Value
(
"${lizhen.F4.url}"
)
private
String
F4Url
;
private
String
F4Url
;
@Value
(
"${lizhen.manual.url}"
)
private
static
String
manualTowerUrl
;
private
static
Map
<
String
,
String
>
lineUrlMap
=
new
HashMap
<>();
private
static
Map
<
String
,
String
>
lineUrlMap
=
new
HashMap
<>();
//初始化加载需要配送的地址
//初始化加载需要配送的地址
...
@@ -100,6 +106,7 @@ public class LizhenController {
...
@@ -100,6 +106,7 @@ public class LizhenController {
F5Url
=
dataCache
.
getConfigCache
(
"F5Url"
,
F5Url
);
F5Url
=
dataCache
.
getConfigCache
(
"F5Url"
,
F5Url
);
F4Line
=
dataCache
.
getConfigCache
(
"F4Line"
,
F4Line
);
F4Line
=
dataCache
.
getConfigCache
(
"F4Line"
,
F4Line
);
F4Url
=
dataCache
.
getConfigCache
(
"F4Url"
,
F4Url
);
F4Url
=
dataCache
.
getConfigCache
(
"F4Url"
,
F4Url
);
manualTowerUrl
=
dataCache
.
getConfigCache
(
"manualTowerUrl"
,
manualTowerUrl
);
lineUrlMap
.
put
(
F2Line
,
F2Url
);
lineUrlMap
.
put
(
F2Line
,
F2Url
);
lineUrlMap
.
put
(
F3Line
,
F3Url
);
lineUrlMap
.
put
(
F3Line
,
F3Url
);
lineUrlMap
.
put
(
F5Line
,
F5Url
);
lineUrlMap
.
put
(
F5Line
,
F5Url
);
...
@@ -295,6 +302,26 @@ public class LizhenController {
...
@@ -295,6 +302,26 @@ public class LizhenController {
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
}
@ApiOperation
(
"手动发料信息转发Tower"
)
@RequestMapping
(
"/manualTower"
)
@AnonymousAccess
public
String
manualTower
(
@RequestBody
List
<
AskReelBoxList
>
itemList
)
{
//转发到3楼料仓服务器
log
.
info
(
"收到WMS手动发料数据为:"
+
JSON
.
toJSONString
(
itemList
));
try
{
String
result
=
HttpHelper
.
postJson
(
manualTowerUrl
,
itemList
);
log
.
info
(
"WMS手动发料转发结果为:"
+
result
);
return
result
;
}
catch
(
ApiException
e
)
{
log
.
error
(
"缺料预警转发失败---"
+
e
.
getMessage
());
}
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"MSGTY"
,
"E"
);
resultMap
.
put
(
"MSGTX"
,
"接收失败"
);
return
JSON
.
toJSONString
(
resultMap
);
}
/**
/**
* 根据唯一码,查找最近的一次工单信息
* 根据唯一码,查找最近的一次工单信息
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/LineController.java
查看文件 @
5d1d73a
...
@@ -109,7 +109,7 @@ public class LineController {
...
@@ -109,7 +109,7 @@ public class LineController {
/**
/**
* 线体第二个扫码器扫码调用,判断是否过账
* 线体第二个扫码器扫码调用,判断是否过账
*/
*/
@ApiOperation
(
"获取
栈板
信息"
)
@ApiOperation
(
"获取
是否过账完成
信息"
)
@RequestMapping
(
"/fetchPalletInfo"
)
@RequestMapping
(
"/fetchPalletInfo"
)
@AnonymousAccess
@AnonymousAccess
public
synchronized
ResultBean
fetchPalletInfo
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
public
synchronized
ResultBean
fetchPalletInfo
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
...
...
src/main/resources/config/application.yml
查看文件 @
5d1d73a
...
@@ -42,6 +42,8 @@ lizhen:
...
@@ -42,6 +42,8 @@ lizhen:
name
:
#4F
name
:
#4F
line
:
#B03-4FSMT-11,B03-4FSMT-01,B03-4FSMT-13,B03-4FSMT-03,B03-4FSMT-14,B03-4FSMT-04
line
:
#B03-4FSMT-11,B03-4FSMT-01,B03-4FSMT-13,B03-4FSMT-03,B03-4FSMT-14,B03-4FSMT-04
url
:
#http://172.25.252.12:8001/smf-core/api/Mes/machineCallMaterial
url
:
#http://172.25.252.12:8001/smf-core/api/Mes/machineCallMaterial
manual
:
url
:
http://10.68.27.85/smf-core/wcs/manualTower
#
#
#转发地址
#转发地址
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论