Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f07575d7
由
LN
编写于
2024-11-15 17:26:40 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.点料次数更新问题修改。
2.获取库存时,如果是料仓不可用,状态为Offline
1 个父辈
e3ffbf32
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
src/main/java/com/neotel/smfcore/custom/micron1053/loading/util/LoadingUtil.java
src/main/java/com/neotel/smfcore/custom/neotel/NeotelController.java
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
查看文件 @
f07575d
...
...
@@ -714,7 +714,7 @@ public class DeviceController {
needResolve
=
true
;
}
log
.
info
(
"点料信息:barcode:"
+
barcodeStr
+
",amount为:"
+
amountStr
);
log
.
info
(
"点料信息:barcode:"
+
barcodeStr
+
",amount为:"
+
amountStr
+
",offlineMode="
+
offlineMode
);
if
(
StringUtils
.
isNotBlank
(
barcodeStr
))
{
Barcode
barcode
=
barcodeManager
.
findByBarcode
(
barcodeStr
);
...
...
@@ -733,9 +733,9 @@ public class DeviceController {
//处理入库单
InList
inList
=
loadingUtil
.
getInlist
(
);
if
(
inList
==
nul
l
)
{
return
ResultBean
.
newOkResult
(
qty
);
boolean
isInlistReel
=
loadingUtil
.
IsInlistReel
(
barcode
.
getBarcode
()
);
if
(
!
isInlistRee
l
)
{
return
ResultBean
.
newOkResult
(
barcode
.
getXrayCount
()
);
}
try
{
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/loading/util/LoadingUtil.java
查看文件 @
f07575d
...
...
@@ -221,6 +221,25 @@ public class LoadingUtil {
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
){
return
updateItemState
(
barcode
,
posName
,
s
,
""
);
}
public
boolean
IsInlistReel
(
String
barcode
)
{
try
{
InList
inList
=
getInlist
();
if
(
inList
==
null
)
{
return
false
;
}
List
<
InListItem
>
inListItems
=
new
ArrayList
<>();
for
(
InListItem
item
:
inList
.
getInListItems
())
{
if
(
item
.
getRi
().
equals
(
barcode
))
{
return
true
;
}
}
}
catch
(
Exception
exception
)
{
log
.
error
(
"IsInlistReel , barcode="
+
barcode
+
", 出错:"
+
exception
.
toString
());
}
return
false
;
}
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
,
String
ngMsg
)
{
...
...
src/main/java/com/neotel/smfcore/custom/neotel/NeotelController.java
查看文件 @
f07575d
...
...
@@ -206,9 +206,15 @@ public class NeotelController {
Map
<
String
,
Object
>
objMap
=
new
HashMap
<>();
Storage
storage
=
dataCache
.
getStorageById
(
storagePos
.
getStorageId
());
String
materialStatus
=
"Available"
;
StatusBean
statusBean
=
DevicesStatusUtil
.
getStatusBean
(
storage
.
getCid
());
if
(
statusBean
==
null
||
statusBean
.
timeOut
()
||
!
statusBean
.
isAvailable
())
{
materialStatus
=
"Offline"
;
}
objMap
.
put
(
"towerId"
,
storage
.
getName
());
objMap
.
put
(
"slot"
,
storagePos
.
getPosName
());
objMap
.
put
(
"materialStatus"
,
"Available"
);
//"materialStatus": Available|Offline
objMap
.
put
(
"materialStatus"
,
materialStatus
);
Barcode
barcode
=
storagePos
.
getBarcode
();
if
(
barcode
!=
null
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论