Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7b3a0ebd
由
zshaohui
编写于
2025-06-10 17:12:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.msd不为1的,不可以入到管控料仓中
2.料串获取目的地修改
1 个父辈
da08118c
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
35 行增加
和
29 行删除
src/main/java/com/neotel/smfcore/custom/Jkem21481/controller/JkemController.java
src/main/java/com/neotel/smfcore/custom/Jkem21481/controller/StackerController.java
src/main/resources/messages.properties
src/main/resources/messages_en_US.properties
src/main/resources/messages_ja_JP.properties
src/main/resources/messages_zh_CN.properties
src/main/resources/messages_zh_TW.properties
src/main/java/com/neotel/smfcore/custom/Jkem21481/controller/JkemController.java
查看文件 @
7b3a0eb
...
...
@@ -165,32 +165,32 @@ public class JkemController {
}
}
//判断是不是要入到指定的料仓
List
<
String
>
newCidList
=
new
ArrayList
<>();
List
<
Storage
>
newStorageList
=
new
ArrayList
<>();
MJPartNumber
mjPartNumber
=
partNumberManager
.
findByJkemPartNumber
(
barcode
.
getPartNumber
());
if
(
mjPartNumber
!=
null
)
{
log
.
info
(
barcode
.
getBarcode
()
+
"查询到的信息为:"
+
JSON
.
toJSONString
(
mjPartNumber
));
int
msd
=
mjPartNumber
.
getMsd
();
if
(
msd
==
1
)
{
for
(
String
cid
:
cidList
)
{
if
(
msdCidList
.
contains
(
cid
))
{
newCidList
.
add
(
cid
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
newStorageList
.
add
(
storage
);
}
}
if
(
newCidList
==
null
||
newCidList
.
isEmpty
())
{
throw
new
ValidateException
(
"smf.barcode.msd.validate"
,
"该物料需要MSD管控不能在本料仓入库"
);
//其他仓的物料不可以入到
if
(
mjPartNumber
==
null
||
mjPartNumber
.
getMsd
()
!=
1
)
{
for
(
String
cid
:
cidList
)
{
if
(!
msdCidList
.
contains
(
cid
))
{
newCidList
.
add
(
cid
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
newStorageList
.
add
(
storage
);
}
}
else
{
newCidList
.
addAll
(
cidList
);
newStorageList
.
addAll
(
storageList
);
}
if
(
newCidList
==
null
||
newCidList
.
isEmpty
())
{
throw
new
ValidateException
(
"smf.barcode.msd.noMsdvalidate"
,
"该物料不需要MSD管控不能在本料仓入库"
);
}
}
else
{
newCidList
.
addAll
(
cidList
);
newStorageList
.
addAll
(
storageList
);
for
(
String
cid
:
cidList
)
{
if
(
msdCidList
.
contains
(
cid
))
{
newCidList
.
add
(
cid
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
newStorageList
.
add
(
storage
);
}
}
if
(
newCidList
==
null
||
newCidList
.
isEmpty
())
{
throw
new
ValidateException
(
"smf.barcode.msd.validate"
,
"该物料需要MSD管控不能在本料仓入库"
);
}
}
//判断对应的尺寸,外侧的库位,是否保留5个
...
...
@@ -276,7 +276,9 @@ public class JkemController {
StoragePos
storagePos
=
storagePosManager
.
getByPosName
(
posName
);
if
(
storagePos
!=
null
)
{
if
(
storagePos
.
getBarcode
()
!=
null
)
{
Set
<
String
>
allLockPosIds
=
ReelLockPosUtil
.
getAllLockPosIds
();
boolean
contains
=
allLockPosIds
.
contains
(
storagePos
.
getId
());
if
(
storagePos
.
getBarcode
()
!=
null
||
contains
)
{
log
.
info
(
posName
+
"有物料信息,重新查找库位,清除条码["
+
barcode
.
getBarcode
()
+
"]锁定库位"
);
ReelLockPosUtil
.
removeReelLockPosInfo
(
barcode
.
getBarcode
());
...
...
@@ -290,7 +292,6 @@ public class JkemController {
pos
=
null
;
}
}
}
}
...
...
src/main/java/com/neotel/smfcore/custom/Jkem21481/controller/StackerController.java
查看文件 @
7b3a0eb
...
...
@@ -126,7 +126,7 @@ public class StackerController {
List
<
String
>
resultList
=
new
ArrayList
<>();
for
(
String
msdCid
:
msdCidList
)
{
if
(
StringUtils
.
isNotEmpty
(
storageCid
)){
if
(
storageCid
.
equals
(
msd
Cid
))
{
if
(
msdCid
.
startsWith
(
storage
Cid
))
{
continue
;
}
}
...
...
@@ -140,7 +140,7 @@ public class StackerController {
List
<
Storage
>
noMsdStorageList
=
new
ArrayList
<>();
for
(
Storage
storage
:
dataCache
.
getAllStorage
().
values
())
{
if
(
StringUtils
.
isNotEmpty
(
storageCid
)){
if
(
storage
Cid
.
equals
(
storage
.
getCid
()
))
{
if
(
storage
.
getCid
().
startsWith
(
storageCid
))
{
continue
;
}
}
...
...
@@ -156,7 +156,7 @@ public class StackerController {
List
<
Storage
>
msdStorageList
=
new
ArrayList
<>();
for
(
Storage
storage
:
dataCache
.
getAllStorage
().
values
())
{
if
(
StringUtils
.
isNotEmpty
(
storageCid
)){
if
(
storage
Cid
.
equals
(
storage
.
getCid
()
))
{
if
(
storage
.
getCid
().
startsWith
(
storageCid
))
{
continue
;
}
}
...
...
src/main/resources/messages.properties
查看文件 @
7b3a0eb
...
...
@@ -407,3 +407,4 @@ smfcore.order.quantityIssued=\u51FA\u5E93\u6570\u91CF
smfcore.order.quantityAfterIssuance
=
\u
56DE
\u
5E93
\u
540E
\u6570\u
91CF
smfcore.order.lackOfQuantity
=
\u
7F3A
\u
5C11
\u6570\u
91CF
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u6599\u
53E3feeder[{0}]
\u
4E0E
\u
5F53
\u
524D
\u7269\u6599
feeder[{1}]
\u
4E0D
\u5339\u
914D
smf.barcode.msd.noMsdvalidate
=
\u
8BE5
\u7269\u6599\u
4E0D
\u9700\u8981
MSD
\u
7BA1
\u
63A7
\u
4E0D
\u
80FD
\u5728\u
672C
\u6599\u
4ED3
\u5165\u
5E93
src/main/resources/messages_en_US.properties
查看文件 @
7b3a0eb
...
...
@@ -396,4 +396,5 @@ smfcore.order.quantityBeforeIssuance =Pre-issuance quantity
smfcore.order.quantityIssued
=
Issued quantity
smfcore.order.quantityAfterIssuance
=
Remaining quantity after issuance
smfcore.order.lackOfQuantity
=
Insufficient Quantity
smfcore.barcode.noMatchFeeder
=
The feeder [{0}] at the outlet does not match the current material feeder [{1}]
\ No newline at end of file
smfcore.barcode.noMatchFeeder
=
The feeder [{0}] at the outlet does not match the current material feeder [{1}]
smf.barcode.msd.noMsdvalidate
=
This material is not MSD-controlled and cannot be stored in this warehouse
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
7b3a0eb
...
...
@@ -392,4 +392,5 @@ smfcore.order.quantityBeforeIssuance=\u51FA\u5EAB\u524D\u306E\u6570\u91CF
smfcore.order.quantityIssued
=
\u
51FA
\u
5EAB
\u6570\u
91CF
smfcore.order.quantityAfterIssuance
=
\u
51FA
\u
5EAB
\u
5F8C
\u
306E
\u6570\u
91CF
smfcore.order.lackOfQuantity
=
\u6570\u
91CF
\u
4E0D
\u
8DB3
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u
529B
\u
53E3
\u
306E
\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC[{0}]
\u
304C
\u
73FE
\u5728\u
306E
\u6750\u6599\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC[{1}]
\u3068\u
4E00
\u
81F4
\u3057\u
307E
\u
305B
\u3093
\ No newline at end of file
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u
529B
\u
53E3
\u
306E
\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC[{0}]
\u
304C
\u
73FE
\u5728\u
306E
\u6750\u6599\u
30D5
\u
30A3
\u
30FC
\u
30C0
\u
30FC[{1}]
\u3068\u
4E00
\u
81F4
\u3057\u
307E
\u
305B
\u3093
smf.barcode.msd.noMsdvalidate
=
\u3053\u
306E
\u
90E8
\u
54C1
\u
306FMSD
\u
7BA1
\u7406\u
5BFE
\u
8C61
\u5916\u
306E
\u
305F
\u3081\u3001\u3053\u
306E
\u5009\u
5EAB
\u
306B
\u
306F
\u5165\u
5EAB
\u3067\u
304D
\u
307E
\u
305B
\u3093
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
7b3a0eb
...
...
@@ -392,4 +392,5 @@ smfcore.order.quantityBeforeIssuance=\u51FA\u5E93\u524D\u6570\u91CF
smfcore.order.quantityIssued
=
\u
51FA
\u
5E93
\u6570\u
91CF
smfcore.order.quantityAfterIssuance
=
\u
56DE
\u
5E93
\u
540E
\u6570\u
91CF
smfcore.order.lackOfQuantity
=
\u
7F3A
\u
5C11
\u6570\u
91CF
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u6599\u
53E3feeder[{0}]
\u
4E0E
\u
5F53
\u
524D
\u7269\u6599
feeder[{1}]
\u
4E0D
\u5339\u
914D
\ No newline at end of file
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u6599\u
53E3feeder[{0}]
\u
4E0E
\u
5F53
\u
524D
\u7269\u6599
feeder[{1}]
\u
4E0D
\u5339\u
914D
smf.barcode.msd.noMsdvalidate
=
\u
8BE5
\u7269\u6599\u
4E0D
\u9700\u8981
MSD
\u
7BA1
\u
63A7
\u
4E0D
\u
80FD
\u5728\u
672C
\u6599\u
4ED3
\u5165\u
5E93
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
7b3a0eb
...
...
@@ -392,4 +392,5 @@ smfcore.order.quantityBeforeIssuance=\u51FA\u5EAB\u524D\u6578\u91CF
smfcore.order.quantityIssued
=
\u
51FA
\u
5EAB
\u6578\u
91CF
smfcore.order.quantityAfterIssuance
=
\u
56DE
\u
5EAB
\u
5F8C
\u6578\u
91CF
smfcore.order.lackOfQuantity
=
\u
7F3A
\u
5C11
\u6578\u
91CF
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u6599\u
53E3feeder[{0}]
\u8207\u7576\u
524D
\u7269\u6599
feeder[{1}]
\u
4E0D
\u5339\u
914D
\ No newline at end of file
smfcore.barcode.noMatchFeeder
=
\u
51FA
\u6599\u
53E3feeder[{0}]
\u8207\u7576\u
524D
\u7269\u6599
feeder[{1}]
\u
4E0D
\u5339\u
914D
smf.barcode.msd.noMsdvalidate
=
\u
8A72
\u7269\u6599\u
4E0D
\u9700\u8981
MSD
\u
7BA1
\u
63A7
\u
FF0C
\u
4E0D
\u
80FD
\u5728\u
672C
\u6599\u5009\u5165\u
5EAB
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论