Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit facb1464
由
LN
编写于
2021-09-16 17:17:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
51ce4d8e
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
22 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/hella/handler/HellaServiceHandler.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/core/storage/rest/StoragePosController.java
查看文件 @
facb146
...
@@ -92,14 +92,24 @@ public class StoragePosController {
...
@@ -92,14 +92,24 @@ public class StoragePosController {
if
(
map
.
containsKey
(
"cid"
)){
if
(
map
.
containsKey
(
"cid"
)){
cid
=
map
.
get
(
"cid"
);
cid
=
map
.
get
(
"cid"
);
}
}
log
.
info
(
"开始清理料仓["
+
cid
+
"] 所有位置"
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
if
(
storage
==
null
){
if
(
storage
==
null
){
throw
new
ValidateException
(
"smfcode.valueNotFind"
,
"未找到{0}[{1}]"
,
new
String
[]{
"cid"
,
cid
});
throw
new
ValidateException
(
"smfcode.valueNotFind"
,
"未找到{0}[{1}]"
,
new
String
[]{
"cid"
,
cid
});
// throw new ValidateException("未找到料仓:"+cid);
}
}
List
<
StoragePos
>
allPos
=
storagePosManager
.
findByStorage
(
storage
.
getId
());
for
(
StoragePos
storagePos:
allPos
)
{
if
(
storagePos
!=
null
)
{
Barcode
barcode
=
storagePos
.
getBarcode
();
if
(
barcode
!=
null
)
{
throw
new
ValidateException
(
"smfcode.cannotRemove"
,
"删除库位失败,库位[{0}]中有料"
,
new
String
[]{
storagePos
.
getPosName
()});
}
}
}
log
.
info
(
"开始删除料仓["
+
cid
+
"] 所有位置"
);
storagePosManager
.
removePosByStorageId
(
storage
.
getId
());
storagePosManager
.
removePosByStorageId
(
storage
.
getId
());
log
.
info
(
"
清理
料仓["
+
cid
+
"] 所有位置完成"
);
log
.
info
(
"
删除
料仓["
+
cid
+
"] 所有位置完成"
);
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
}
...
...
src/main/java/com/neotel/smfcore/hella/handler/HellaServiceHandler.java
查看文件 @
facb146
...
@@ -133,7 +133,7 @@ public class HellaServiceHandler extends IoHandlerAdapter implements ITaskListen
...
@@ -133,7 +133,7 @@ public class HellaServiceHandler extends IoHandlerAdapter implements ITaskListen
@Override
@Override
public
void
messageReceived
(
IoSession
session
,
Object
message
)
throws
Exception
{
public
void
messageReceived
(
IoSession
session
,
Object
message
)
throws
Exception
{
String
msg
=
message
.
toString
();
String
msg
=
message
.
toString
();
msg
.
replace
(
"\u0002"
,
""
);
msg
=
msg
.
replace
(
"\u0002"
,
""
);
log
.
info
(
"Received Tcp Server msg:"
+
msg
);
log
.
info
(
"Received Tcp Server msg:"
+
msg
);
String
[]
resposArr
=
msg
.
split
(
";"
);
String
[]
resposArr
=
msg
.
split
(
";"
);
String
cmd
=
resposArr
[
0
];
String
cmd
=
resposArr
[
0
];
...
...
src/main/resources/messages.properties
查看文件 @
facb146
...
@@ -84,6 +84,7 @@ smfcore.barcodeSetting=\u6761\u7801\u8BBE\u7F6E
...
@@ -84,6 +84,7 @@ smfcore.barcodeSetting=\u6761\u7801\u8BBE\u7F6E
smfcore.posNotExist
=
\u
4ED3
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.posNotExist
=
\u
4ED3
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.error
=
\u
51FA
\u9519
{0}
smfcore.error
=
\u
51FA
\u9519
{0}
smfcore.userManager
=
\u7528\u6237\u
7BA1
\u7406
smfcore.userManager
=
\u7528\u6237\u
7BA1
\u7406
smfcode.cannotRemove
=
\u5220\u9664\u
5E93
\u
4F4D
\u5931\u
8D25
\u
FF0C
\u
5E93
\u
4F4D[{0}]
\u
4E2D
\u6709\u6599
...
...
src/main/resources/messages_en_US.properties
查看文件 @
facb146
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[{0}}] is already in {1}}[{2}}]
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[{0}}] is already in {1}}[{2}}]
smfcore.barcodeSetting
=
Barcode setting
smfcore.barcodeSetting
=
Barcode setting
smfcore.posNotExist
=
Positions do not exist
smfcore.posNotExist
=
Positions do not exist
smfcore.error
=
Error{0}
smfcore.error
=
Error{0}
smfcore.userManager
=
User Management
\ No newline at end of file
\ No newline at end of file
smfcore.userManager
=
User Management
smfcode.cannotRemove
=
Failed to delete the location, there is material in the location [{0}].
\ No newline at end of file
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
facb146
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[0}}]\u306F\u3059\u3067\u306B{1}[{2}}\u306B\u5165\u3
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[0}}]\u306F\u3059\u3067\u306B{1}[{2}}\u306B\u5165\u3
smfcore.barcodeSetting
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
8A2D
\u
5B9A
smfcore.barcodeSetting
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
8A2D
\u
5B9A
smfcore.posNotExist
=
\u
30E9
\u
30A4
\u
30D6
\u
30E9
\u
30EA
\u
30FC
\u
30B9
\u
30DA
\u
30FC
\u
30B9
\u
304C
\u
5B58
\u5728\u3057\u
306A
\u3044
smfcore.posNotExist
=
\u
30E9
\u
30A4
\u
30D6
\u
30E9
\u
30EA
\u
30FC
\u
30B9
\u
30DA
\u
30FC
\u
30B9
\u
304C
\u
5B58
\u5728\u3057\u
306A
\u3044
smfcore.error
=
\u
8AA4
\u
308A{0}
smfcore.error
=
\u
8AA4
\u
308A{0}
smfcore.userManager
=
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
7BA1
\u7406
\ No newline at end of file
\ No newline at end of file
smfcore.userManager
=
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
7BA1
\u7406
smfcode.cannotRemove
=
\u
30B9
\u
30C8
\u
30C3
\u
30AF
\u
30EC
\u
30D9
\u
30EB
\u
306E
\u
524A
\u9664\u
306B
\u5931\u6557\u3057\u
307E
\u3057\u
305F
\u3002\u
30B9
\u
30C8
\u
30C3
\u
30AF
\u
30EC
\u
30D9
\u
30EB[{0}]
\u
306B
\u6750\u6599\u
304C
\u3042\u
308A
\u
307E
\u3059\u3002
\ No newline at end of file
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
facb146
...
@@ -84,4 +84,5 @@ smfcore.barcodeSetting=\u6761\u7801\u8BBE\u7F6E
...
@@ -84,4 +84,5 @@ smfcore.barcodeSetting=\u6761\u7801\u8BBE\u7F6E
smfcore.posNotExist
=
\u
4ED3
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.posNotExist
=
\u
4ED3
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.error
=
\u
51FA
\u9519
{0}
smfcore.error
=
\u
51FA
\u9519
{0}
smfcore.userManager
=
\u7528\u6237\u
7BA1
\u7406
smfcore.userManager
=
\u7528\u6237\u
7BA1
\u7406
smfcode.cannotRemove
=
\u5220\u9664\u
5E93
\u
4F4D
\u5931\u
8D25
\u
FF0C
\u
5E93
\u
4F4D[{0}]
\u
4E2D
\u6709\u6599
src/main/resources/messages_zh_TW.properties
查看文件 @
facb146
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[{0}}]\u5DF2\u5728{1}}[{2}}]\u4E2D
...
@@ -83,4 +83,5 @@ smfcode.error.barcode.exist=[{0}}]\u5DF2\u5728{1}}[{2}}]\u4E2D
smfcore.barcodeSetting
=
\u
689D
\u
78BC
\u
8A2D
\u
7F6E
smfcore.barcodeSetting
=
\u
689D
\u
78BC
\u
8A2D
\u
7F6E
smfcore.posNotExist
=
\u
5EAB
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.posNotExist
=
\u
5EAB
\u
4F4D
\u
4E0D
\u
5B58
\u5728
smfcore.error
=
\u
51FA
\u
932F{0}
smfcore.error
=
\u
51FA
\u
932F{0}
smfcore.userManager
=
\u7528\u6236\u
7BA1
\u7406
\ No newline at end of file
\ No newline at end of file
smfcore.userManager
=
\u7528\u6236\u
7BA1
\u7406
smfcode.cannotRemove
=
\u
522A
\u9664\u
5EAB
\u
4F4D
\u5931\u6557\u
FF0C
\u
5EAB
\u
4F4D[{0}]
\u
4E2D
\u6709\u6599
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论