Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d80ca873
由
zshaohui
编写于
2024-08-17 17:22:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
功能优化
1 个父辈
620c3361
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
9 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
d80ca87
...
@@ -557,17 +557,22 @@ public class StoragePosController {
...
@@ -557,17 +557,22 @@ public class StoragePosController {
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可以出库的物料"
);
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可以出库的物料"
);
}
}
boolean
hasTask
=
false
;
for
(
StoragePos
pos
:
storagePosList
)
{
for
(
StoragePos
pos
:
storagePosList
)
{
Barcode
barcode
=
pos
.
getBarcode
();
//排除正在执行的库位
//排除正在执行的库位
Collection
<
String
>
excludePosIds
=
taskService
.
excludePosIds
();
List
<
DataLog
>
allTasks
=
taskService
.
getAllTasks
();
if
(
excludePosIds
!=
null
&&
!
excludePosIds
.
isEmpty
()
&&
excludePosIds
.
contains
(
pos
.
getId
()))
{
for
(
DataLog
task
:
allTasks
)
{
log
.
info
(
"库位:"
+
pos
.
getPosName
()
+
"正在执行,跳过"
);
if
(
pos
.
getPosName
().
equals
(
task
.
getPosName
())){
continue
;
if
(!
task
.
isCancel
()
&&
!
task
.
isFinished
()){
log
.
info
(
barcode
.
getBarcode
()+
"库位:"
+
pos
.
getPosName
()
+
"正在执行,跳过"
);
continue
;
}
}
}
}
Barcode
barcode
=
pos
.
getBarcode
();
//判断有没有输入箱子号
//判断有没有输入箱子号
if
(
StringUtils
.
isNotEmpty
(
box
)
&&
!
box
.
equals
(
barcode
.
getBarcode
()))
{
if
(
StringUtils
.
isNotEmpty
(
box
)
&&
!
box
.
equals
(
barcode
.
getBarcode
()))
{
continue
;
continue
;
...
@@ -679,8 +684,12 @@ public class StoragePosController {
...
@@ -679,8 +684,12 @@ public class StoragePosController {
task
.
setBoxPosName
(
pos
.
getPosName
());
task
.
setBoxPosName
(
pos
.
getPosName
());
task
.
setCartonId
(
barcode
.
getCartonId
());
task
.
setCartonId
(
barcode
.
getCartonId
());
taskService
.
updateQueueTask
(
task
);
taskService
.
updateQueueTask
(
task
);
hasTask
=
true
;
}
}
}
}
if
(!
hasTask
){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可以出库的任务"
);
}
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
}
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
d80ca87
...
@@ -710,9 +710,11 @@ public class TaskService {
...
@@ -710,9 +710,11 @@ public class TaskService {
Collection
<
DataLog
>
allTasks
=
taskMap
.
values
();
Collection
<
DataLog
>
allTasks
=
taskMap
.
values
();
Collection
<
String
>
operatingPosIds
=
ReelLockPosUtil
.
getAllLockPosIds
();
Collection
<
String
>
operatingPosIds
=
ReelLockPosUtil
.
getAllLockPosIds
();
for
(
DataLog
task
:
allTasks
)
{
for
(
DataLog
task
:
allTasks
)
{
String
posId
=
task
.
getPosId
();
if
(!
task
.
isCancel
()
&&
!
task
.
isFinished
())
{
if
(!
Strings
.
isNullOrEmpty
(
posId
))
{
String
posId
=
task
.
getPosId
();
operatingPosIds
.
add
(
task
.
getPosId
());
if
(!
Strings
.
isNullOrEmpty
(
posId
))
{
operatingPosIds
.
add
(
task
.
getPosId
());
}
}
}
}
}
return
operatingPosIds
;
return
operatingPosIds
;
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
d80ca87
...
@@ -4,6 +4,7 @@ import cn.hutool.core.util.ObjectUtil;
...
@@ -4,6 +4,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.DateUtil
;
import
com.neotel.smfcore.common.utils.DateUtil
;
import
com.neotel.smfcore.common.utils.ReelLockPosUtil
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.core.api.SmfApi
;
import
com.neotel.smfcore.core.api.SmfApi
;
...
@@ -417,6 +418,7 @@ public class ManualGrPutInController {
...
@@ -417,6 +418,7 @@ public class ManualGrPutInController {
pos
.
setBarcode
(
null
);
pos
.
setBarcode
(
null
);
taskService
.
addTaskToFinished
(
pos
,
boxBarcode
,
"手动入库"
);
taskService
.
addTaskToFinished
(
pos
,
boxBarcode
,
"手动入库"
);
ReelLockPosUtil
.
removeReelLockPosInfo
(
barcode
.
getBarcode
());
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
}
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"请选择手动入库"
);
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"请选择手动入库"
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论