Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ec3c1b3a
由
LN
编写于
2021-12-31 13:22:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加料仓客户端取消任务接口。NL料架界面显示库位号。
1 个父辈
93cd73cd
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
10 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
查看文件 @
ec3c1b3
...
...
@@ -32,7 +32,7 @@ import javax.servlet.http.HttpServletRequest;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
@Api
(
tags
=
"
智能料架/亮灯料架/普通料架
"
)
@Api
(
tags
=
"
SHELF: NL(智能料架/亮灯料架/普通料架)
"
)
@RestController
@Slf4j
public
class
NLShelfHandler
extends
BaseDeviceHandler
{
...
...
@@ -44,8 +44,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
@Autowired
private
TokenProvider
tokenProvider
;
@Autowired
private
TaskService
taskService
;
@Autowired
private
ILiteOrderManager
liteOrderManager
;
...
...
@@ -173,7 +172,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
@PostMapping
(
"/api/nlShelf/codeIn"
)
@PreAuthorize
(
"@el.check('NLShelf:putIn')"
)
public
ResultBean
codeIn
(
@RequestBody
Map
<
String
,
String
>
mapValues
,
HttpServletRequest
request
)
{
String
code
=
mapValues
.
get
(
"code"
);
String
code
=
mapValues
.
get
(
"code"
)
.
trim
()
;
String
groupId
=
mapValues
.
get
(
"group"
);
String
storageId
=
mapValues
.
get
(
"storageId"
);
String
sourceId
=
mapValues
.
get
(
"sourceId"
);
...
...
@@ -193,9 +192,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
if
(
currentStorage
==
null
||
!
currentStorage
.
isNLShelf
())
{
return
ResultBean
.
newErrorResult
(
1
,
"smfcore.shelf.notFound"
,
"未找到料架"
);
}
if
(
currentStorage
!=
null
)
{
groupId
=
currentStorage
.
getGroupId
();
}
groupId
=
currentStorage
.
getGroupId
();
}
if
(
groupId
!=
null
&&
groupId
.
equals
(
"-1"
))
{
groupId
=
""
;
...
...
@@ -240,7 +237,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
operateBean
.
setNextPosId
(
null
);
shelfPutInBeanMap
.
put
(
token
,
operateBean
);
log
.
info
(
ptoken
+
":库位["
+
pos
.
getPosName
()
+
"]操作成功,请扫描要放入的物料"
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.tipScanReel"
,
"库位["
+
pos
.
getPosName
()
+
"]操作成功,请扫描要放入的物料"
,
new
String
[]{
pos
.
getPosName
()},
""
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.tipScanReel"
,
"库位["
+
pos
.
getPosName
()
+
"]操作成功,请扫描要放入的物料"
,
new
String
[]{
pos
.
getPosName
()},
pos
.
getPosName
()
);
}
}
else
{
//扫的是物料条码
...
...
@@ -313,6 +310,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
Collection
<
String
>
operatingPosIds
=
taskService
.
excludePosIds
();
StoragePos
nextPos
=
storagePosManager
.
autoFindNextEmptyPos
(
currentStorage
,
operatingPosIds
,
currentPos
);
String
nextPosId
=
nextPos
==
null
?
"null"
:
nextPos
.
getId
()
+
"["
+
nextPos
.
getPosName
()
+
"]"
;
String
data
=
nextPos
==
null
?
""
:
nextPos
.
getPosName
();
//
operateBean
.
setNextPosId
(
null
);
if
(
nextPos
!=
null
)
{
...
...
@@ -321,7 +319,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
shelfPutInBeanMap
.
put
(
token
,
operateBean
);
log
.
info
(
ptoken
+
":条码["
+
code
+
"]入库操作成功,请放入库位 ["
+
currentPos
.
getPosName
()
+
"],下一个库位号:"
+
nextPosId
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.inOk"
,
"操作成功,请放入库位["
+
currentPos
.
getPosName
()
+
"]"
,
new
String
[]{
currentPos
.
getPosName
()},
""
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.inOk"
,
"操作成功,请放入库位["
+
currentPos
.
getPosName
()
+
"]"
,
new
String
[]{
currentPos
.
getPosName
()},
data
);
}
}
...
...
@@ -340,6 +338,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
Collection
<
String
>
operatingPosIds
=
taskService
.
excludePosIds
();
StoragePos
nextPos
=
storagePosManager
.
autoFindNextEmptyPos
(
currentStorage
,
operatingPosIds
,
opPos
);
String
nextPosId
=
nextPos
==
null
?
"null"
:
nextPos
.
getId
()
+
"["
+
nextPos
.
getPosName
()
+
"]"
;
String
data
=
nextPos
==
null
?
""
:
nextPos
.
getPosName
();
//
operateBean
.
setNextPosId
(
null
);
if
(
nextPos
!=
null
)
{
...
...
@@ -347,7 +346,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
}
shelfPutInBeanMap
.
put
(
token
,
operateBean
);
log
.
info
(
ptoken
+
":条码["
+
code
+
"]入库操作成功,请放入库位 ["
+
opPos
.
getPosName
()+
"],下一个库位号:"
+
nextPosId
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.inOk"
,
"操作成功,请放入库位["
+
opPos
.
getPosName
()+
"]"
,
new
String
[]{
opPos
.
getPosName
()},
""
);
return
ResultBean
.
newOkResult
(
"smfcore.shelf.msg.inOk"
,
"操作成功,请放入库位["
+
opPos
.
getPosName
()+
"]"
,
new
String
[]{
opPos
.
getPosName
()},
data
);
}
}
catch
(
ValidateException
e
)
{
...
...
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
查看文件 @
ec3c1b3
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论