Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 50e099d6
由
孙克
编写于
2024-08-05 13:45:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
物料禁用后,弹框确认是否强制出库, 强制出库时, 不检查是否禁用
物料已禁用,还会出库问题修改
1 个父辈
7e31f997
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
10 行删除
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
查看文件 @
50e099d
...
@@ -558,7 +558,7 @@ public class LiteOrderCache {
...
@@ -558,7 +558,7 @@ public class LiteOrderCache {
throw
new
ValidateException
(
""
,
pos
.
getBarcode
().
getBarcode
()+
"被禁用,库位为:"
+
pos
.
getPosName
());
throw
new
ValidateException
(
""
,
pos
.
getBarcode
().
getBarcode
()+
"被禁用,库位为:"
+
pos
.
getPosName
());
}
}
}
catch
(
ValidateException
e
)
{
}
catch
(
ValidateException
e
)
{
e
.
printStackTrace
()
;
pos
=
null
;
log
.
error
(
"工单号:"
+
orderNo
+
"唯一码:"
+
pos
.
getBarcode
().
getBarcode
()
+
":"
+
e
.
getMessage
());
log
.
error
(
"工单号:"
+
orderNo
+
"唯一码:"
+
pos
.
getBarcode
().
getBarcode
()
+
":"
+
e
.
getMessage
());
excludePosIds
.
add
(
pos
.
getId
());
excludePosIds
.
add
(
pos
.
getId
());
}
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
50e099d
...
@@ -760,17 +760,23 @@ public class StoragePosController {
...
@@ -760,17 +760,23 @@ public class StoragePosController {
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可以出库的任务"
);
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可以出库的任务"
);
}
}
//获取禁用料
List
<
Barcode
>
barcodeList
=
needOutPosList
.
stream
().
map
(
StoragePos:
:
getBarcode
).
collect
(
Collectors
.
toList
());
List
<
String
>
checkReelList
=
lizhenApi
.
batchCheckReel
(
barcodeList
,
""
,
model
);
//需要强制出库
if
(
checkOutDto
.
needForceOut
()){
log
.
info
(
"执行UID强制出库, 不再检查禁用料"
);
}
else
{
//获取禁用料
List
<
Barcode
>
barcodeList
=
needOutPosList
.
stream
().
map
(
StoragePos:
:
getBarcode
).
collect
(
Collectors
.
toList
());
for
(
StoragePos
pos
:
needOutPosList
)
{
List
<
String
>
checkReelList
=
lizhenApi
.
batchCheckReel
(
barcodeList
,
""
,
model
);
Barcode
barcode
=
pos
.
getBarcode
();
String
barcodeStr
=
barcode
.
getBarcode
();
for
(
StoragePos
pos
:
needOutPosList
)
{
if
(
checkReelList
!=
null
&&
!
checkReelList
.
isEmpty
()){
Barcode
barcode
=
pos
.
getBarcode
();
if
(
checkReelList
.
contains
(
barcodeStr
)){
String
barcodeStr
=
barcode
.
getBarcode
();
return
ResultBean
.
newErrorResult
(-
1
,
""
,
barcodeStr
+
"已经被禁用,库位为:"
+
pos
.
getPosName
());
if
(
checkReelList
!=
null
&&
!
checkReelList
.
isEmpty
()){
if
(
checkReelList
.
contains
(
barcodeStr
)){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
barcodeStr
+
"已经被禁用,库位为:"
+
pos
.
getPosName
());
}
}
}
}
}
}
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
查看文件 @
50e099d
...
@@ -11,4 +11,16 @@ public class CheckOutDto {
...
@@ -11,4 +11,16 @@ public class CheckOutDto {
private
String
singleOut
;
private
String
singleOut
;
private
String
model
;
private
String
model
;
/**
* 是否强制出库
*/
private
Boolean
forceOut
=
false
;
public
boolean
needForceOut
(){
if
(
forceOut
!=
null
){
return
forceOut
.
booleanValue
();
}
return
false
;
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论