Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d9d16f41
由
zshaohui
编写于
2025-05-21 15:24:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.增加虚拟仓操作功能
2.增加neo counter
1 个父辈
3a916784
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
30 行增加
和
12 行删除
src/main/java/com/neotel/smfcore/core/equipment/enums/EquipmentType.java
src/main/java/com/neotel/smfcore/core/equipment/rest/EquipViewController.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
src/main/java/com/neotel/smfcore/core/virtual/controller/VirtualOperateController.java
src/main/resources/messages.properties
src/main/resources/messages_de_DE.properties
src/main/resources/messages_en_US.properties
src/main/resources/messages_fr_FR.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/core/equipment/enums/EquipmentType.java
查看文件 @
d9d16f4
...
...
@@ -79,4 +79,9 @@ public enum EquipmentType {
return
Lists
.
newArrayList
(
NS100
.
name
(),
NS200
.
name
());
}
public
static
List
<
String
>
neoCounterList
(){
return
Lists
.
newArrayList
(
NEOCOUNTER
.
name
());
}
}
src/main/java/com/neotel/smfcore/core/equipment/rest/EquipViewController.java
查看文件 @
d9d16f4
...
...
@@ -197,9 +197,15 @@ public class EquipViewController {
EquipGroupDto
dto
=
new
EquipGroupDto
(
MessageUtils
.
getText
(
"smfcore.equipment.view.nsgroup"
,
locale
,
"Neo Scan"
),
nsList
);
list
.
add
(
dto
);
}
List
<
EquipStatusDto
>
neoCounterList
=
resultList
.
stream
().
filter
(
dto
->
EquipmentType
.
neoCounterList
().
contains
(
dto
.
getType
())).
collect
(
Collectors
.
toList
());
if
(
neoCounterList
.
size
()>
0
){
EquipGroupDto
dto
=
new
EquipGroupDto
(
MessageUtils
.
getText
(
"smfcore.equipment.view.ncgroup"
,
locale
,
"Neo Counter"
),
neoCounterList
);
list
.
add
(
dto
);
}
List
<
String
>
otherType
=
new
ArrayList
<>();
otherType
.
addAll
(
EquipmentType
.
nsList
());
otherType
.
addAll
(
EquipmentType
.
apiTypeList
()
);
otherType
.
addAll
(
EquipmentType
.
neoCounterList
()
);
List
<
EquipStatusDto
>
otherList
=
resultList
.
stream
().
filter
(
dto
->
otherType
.
contains
(
dto
.
getType
())==
false
).
collect
(
Collectors
.
toList
());
if
(
otherList
.
size
()>
0
){
EquipGroupDto
dto
=
new
EquipGroupDto
(
""
,
otherList
);
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
d9d16f4
...
...
@@ -939,10 +939,10 @@ public class TaskService {
if
(
pos
!=
null
)
{
//判断尺寸是否一致
if
(
isSameSize
(
barcode
,
pos
)){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
尺寸与条码
一致,直接返回"
);
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
物料尺寸与库位尺寸
一致,直接返回"
);
return
pos
;
}
else
if
(
findPos
==
null
){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],尺寸不一致,先暂存库位"
);
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
物料尺寸与库位
尺寸不一致,先暂存库位"
);
findPos
=
pos
;
}
else
if
(
findPos
.
getW
()>
pos
.
getW
()||
findPos
.
getH
()>
pos
.
getH
()){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],比暂存库位["
+
findPos
.
getPosName
()+
"]跟匹配,替换为暂存库位"
);
...
...
@@ -961,10 +961,10 @@ public class TaskService {
StoragePos
pos
=
storagePosManager
.
getEmptyPosByStorage
(
storage
,
barcode
,
operatingPosIds
,
lastPosId
);
if
(
pos
!=
null
)
{
if
(
isSameSize
(
barcode
,
pos
)){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
尺寸与条码
一致,直接返回"
);
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
物料尺寸与库位尺寸
一致,直接返回"
);
return
pos
;
}
else
if
(
findPos
==
null
){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],尺寸不一致,先暂存库位"
);
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],
物料尺寸与库位
尺寸不一致,先暂存库位"
);
findPos
=
pos
;
}
else
if
(
findPos
.
getW
()>
pos
.
getW
()||
findPos
.
getH
()>
pos
.
getH
()){
log
.
info
(
"尝试从["
+
storage
.
getCid
()
+
"]中为["
+
barcode
.
getBarcode
()
+
"]查找到空位["
+
pos
.
getPosName
()+
"],比暂存库位["
+
findPos
.
getPosName
()+
"]跟匹配,替换为暂存库位"
);
...
...
src/main/java/com/neotel/smfcore/core/virtual/controller/VirtualOperateController.java
查看文件 @
d9d16f4
...
...
@@ -255,7 +255,7 @@ public class VirtualOperateController {
String
describe
=
paramMap
.
get
(
"describe"
);
//判断料箱是否存在
Barcode
barcode
=
barcodeManager
.
findBy
Barcode
(
boxStr
);
Barcode
barcode
=
codeResolve
.
resolveOneValide
Barcode
(
boxStr
);
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
boxStr
});
}
...
...
src/main/resources/messages.properties
查看文件 @
d9d16f4
...
...
@@ -430,4 +430,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}]\u5E93\u4F4D\u4E3A[{1}],\u4E0D\u5
smfcore.virtual
=
\u
865A
\u
62DF
\u
4ED3
smfcore.virtualManager
=
\u
865A
\u
62DF
\u
4ED3
\u
7BA1
\u7406
smfcore.virtualLocationManager
=
\u
865A
\u
62DF
\u
5E93
\u
4F4D
\u
7BA1
\u7406
smfcore.virtualOperations
=
\u
865A
\u
62DF
\u
4ED3
\u
64CD
\u
4F5C
\ No newline at end of file
smfcore.virtualOperations
=
\u
865A
\u
62DF
\u
4ED3
\u
64CD
\u
4F5C
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_de_DE.properties
查看文件 @
d9d16f4
...
...
@@ -420,4 +420,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}] Lagerplatz [{1}] geh\u00F6rt nic
smfcore.virtual
=
Virtuelles Lager
smfcore.virtualManager
=
Verwaltung des virtuellen Lagers
smfcore.virtualLocationManager
=
Verwaltung virtueller Lagerpl
\u
00E4tze
smfcore.virtualOperations
=
Vorg
\u
00E4nge im virtuellen Lager
\ No newline at end of file
smfcore.virtualOperations
=
Vorg
\u
00E4nge im virtuellen Lager
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_en_US.properties
查看文件 @
d9d16f4
...
...
@@ -421,4 +421,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}] Storage location [{1}] does not
smfcore.virtual
=
Virtual Storage
smfcore.virtualManager
=
Virtual Storage Mgmt
smfcore.virtualLocationManager
=
Virtual Location Mgmt
smfcore.virtualOperations
=
Virtual Storage Op
\ No newline at end of file
smfcore.virtualOperations
=
Virtual Storage Op
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_fr_FR.properties
查看文件 @
d9d16f4
...
...
@@ -420,4 +420,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}] L'emplacement [{1}] n'appartient
smfcore.virtual
=
Entrep
\u
00F4t virtuel
smfcore.virtualManager
=
Gestion de l'entrep
\u
00F4t virtuel
smfcore.virtualLocationManager
=
Gestion des emplacements virtuels
smfcore.virtualOperations
=
Op
\u
00E9rations de l'entrep
\u
00F4t virtuel
\ No newline at end of file
smfcore.virtualOperations
=
Op
\u
00E9rations de l'entrep
\u
00F4t virtuel
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
d9d16f4
...
...
@@ -417,4 +417,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}] \u30ED\u30B1\u30FC\u30B7\u30E7\u
smfcore.virtual
=
\u
4EEE
\u
60F3
\u5009\u
5EAB
smfcore.virtualManager
=
\u
4EEE
\u
60F3
\u5009\u
5EAB
\u
7BA1
\u7406
smfcore.virtualLocationManager
=
\u
4EEE
\u
60F3
\u
30ED
\u
30B1
\u
30FC
\u
30B7
\u
30E7
\u
30F3
\u
7BA1
\u7406
smfcore.virtualOperations
=
\u
4EEE
\u
60F3
\u5009\u
5EAB
\u
64CD
\u
4F5C
\ No newline at end of file
smfcore.virtualOperations
=
\u
4EEE
\u
60F3
\u5009\u
5EAB
\u
64CD
\u
4F5C
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
d9d16f4
...
...
@@ -417,4 +417,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}]\u5E93\u4F4D\u4E3A[{1}],\u4E0D\u5
smfcore.virtual
=
\u
865A
\u
62DF
\u
4ED3
smfcore.virtualManager
=
\u
865A
\u
62DF
\u
4ED3
\u
7BA1
\u7406
smfcore.virtualLocationManager
=
\u
865A
\u
62DF
\u
5E93
\u
4F4D
\u
7BA1
\u7406
smfcore.virtualOperations
=
\u
865A
\u
62DF
\u
4ED3
\u
64CD
\u
4F5C
\ No newline at end of file
smfcore.virtualOperations
=
\u
865A
\u
62DF
\u
4ED3
\u
64CD
\u
4F5C
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
d9d16f4
...
...
@@ -417,4 +417,5 @@ smfcore.virtual.barcodeNotExistVirtualPos=[{0}]\u5EAB\u4F4D\u70BA[{1}]\uFF0C\u4E
smfcore.virtual
=
\u
865B
\u
64EC
\u5009
smfcore.virtualManager
=
\u
865B
\u
64EC
\u5009\u
7BA1
\u7406
smfcore.virtualLocationManager
=
\u
865B
\u
64EC
\u
5EAB
\u
4F4D
\u
7BA1
\u7406
smfcore.virtualOperations
=
\u
865B
\u
64EC
\u5009\u
64CD
\u
4F5C
\ No newline at end of file
smfcore.virtualOperations
=
\u
865B
\u
64EC
\u5009\u
64CD
\u
4F5C
smfcore.equipment.view.ncgroup
=
Neo Counter
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论