Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 19bbb964
由
LN
编写于
2021-09-08 14:02:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
条码设置菜单文字修改
1 个父辈
e36c55b2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
15 行增加
和
15 行删除
src/main/java/com/neotel/smfcore/core/order/rest/OrderController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.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/order/rest/OrderController.java
查看文件 @
19bbb96
...
@@ -103,14 +103,14 @@ public class OrderController {
...
@@ -103,14 +103,14 @@ public class OrderController {
String
image
=
"csv"
;
String
image
=
"csv"
;
String
fileType
=
FileUtil
.
getExtensionName
(
orderFile
.
getOriginalFilename
());
String
fileType
=
FileUtil
.
getExtensionName
(
orderFile
.
getOriginalFilename
());
if
(
fileType
!=
null
&&
!
image
.
contains
(
fileType
))
{
if
(
fileType
!=
null
&&
!
image
.
contains
(
fileType
))
{
throw
new
ValidateException
(
"smfco
d
e.feleFormatError"
,
"文件格式错误!, 仅支持{0}格式"
,
new
String
[]{
image
});
throw
new
ValidateException
(
"smfco
r
e.feleFormatError"
,
"文件格式错误!, 仅支持{0}格式"
,
new
String
[]{
image
});
}
}
File
folder
=
new
File
(
properties
.
getPath
(),
"pos"
);
File
folder
=
new
File
(
properties
.
getPath
(),
"pos"
);
File
localFile
=
FileUtil
.
upload
(
orderFile
,
folder
.
getAbsolutePath
());
File
localFile
=
FileUtil
.
upload
(
orderFile
,
folder
.
getAbsolutePath
());
List
<
LiteOrderItem
>
liteOrderItems
=
handleOrderCsv
(
localFile
.
getAbsolutePath
());
List
<
LiteOrderItem
>
liteOrderItems
=
handleOrderCsv
(
localFile
.
getAbsolutePath
());
if
(
liteOrderItems
==
null
||
liteOrderItems
.
size
()
<=
0
)
{
if
(
liteOrderItems
==
null
||
liteOrderItems
.
size
()
<=
0
)
{
throw
new
ValidateException
(
"smfco
d
e.fileError"
,
"文件解析失败"
);
throw
new
ValidateException
(
"smfco
r
e.fileError"
,
"文件解析失败"
);
}
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
19bbb96
...
@@ -249,8 +249,8 @@ public class StoragePosController {
...
@@ -249,8 +249,8 @@ public class StoragePosController {
@ApiOperation
(
"解析出库条码"
)
@ApiOperation
(
"解析出库条码"
)
@PutMapping
(
"/resolveCode"
)
@PutMapping
(
"/resolveCode
/{blurry}
"
)
public
CodeDto
resolveCode
(
@
RequestParam
(
"blurry"
)
String
blurry
){
public
CodeDto
resolveCode
(
@
PathVariable
String
blurry
){
String
barcodeStr
=
blurry
;
String
barcodeStr
=
blurry
;
Barcode
barcode
=
codeResolve
.
resolveCode
(
barcodeStr
);
Barcode
barcode
=
codeResolve
.
resolveCode
(
barcodeStr
);
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
19bbb96
...
@@ -594,7 +594,7 @@ public class TaskService {
...
@@ -594,7 +594,7 @@ public class TaskService {
}
}
if
(
availbleStorageList
.
isEmpty
()){
if
(
availbleStorageList
.
isEmpty
()){
throw
new
ValidateException
(
"smfco
r
e.noValidStorage"
,
"料仓列表中未找到可用的料仓"
);
throw
new
ValidateException
(
"smfco
d
e.noValidStorage"
,
"料仓列表中未找到可用的料仓"
);
}
}
availbleStorageList
.
sort
(
new
Comparator
<
Storage
>()
{
availbleStorageList
.
sort
(
new
Comparator
<
Storage
>()
{
...
...
src/main/resources/messages.properties
查看文件 @
19bbb96
...
@@ -78,9 +78,9 @@ smfcore.user=\u7528\u6237\u7BA1\u7406
...
@@ -78,9 +78,9 @@ smfcore.user=\u7528\u6237\u7BA1\u7406
smfcore.peoples
=
\u7528\u6237\u
7BA1
\u7406
smfcore.peoples
=
\u7528\u6237\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcode.menuNotExist
=
\u
83DC
\u5355
{0}
\u
4E0D
\u
5B58
\u5728
smfcode.menuNotExist
=
\u
83DC
\u5355
{0}
\u
4E0D
\u
5B58
\u5728
smfco
r
e.noValidStorage
=
\u6599\u
4ED3
\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u
4ED3
smfco
d
e.noValidStorage
=
\u6599\u
4ED3
\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u
4ED3
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfco
d
e.barcodeSetting
=
\u6761\u7801\u
8BBE
\u
7F6E
smfco
r
e.barcodeSetting
=
\u6761\u7801\u
8BBE
\u
7F6E
...
...
src/main/resources/messages_en_US.properties
查看文件 @
19bbb96
...
@@ -78,6 +78,6 @@ smfcore.user=User Management
...
@@ -78,6 +78,6 @@ smfcore.user=User Management
smfcore.peoples
=
User Management
smfcore.peoples
=
User Management
smfcore.role
=
Role Management
smfcore.role
=
Role Management
smfcode.menuNotExist
=
Menu{0} does not exist
smfcode.menuNotExist
=
Menu{0} does not exist
smfco
r
e.noValidStorage
=
No available bin found in bin list
smfco
d
e.noValidStorage
=
No available bin found in bin list
smfcode.error.barcode.exist
=
[{0}}] is already in {1}}[{2}}]
smfcode.error.barcode.exist
=
[{0}}] is already in {1}}[{2}}]
smfcode.barcodeSetting
=
Barcode setting
\ No newline at end of file
\ No newline at end of file
smfcore.barcodeSetting
=
Barcode setting
\ No newline at end of file
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
19bbb96
...
@@ -78,6 +78,6 @@ smfcore.user=\u30E6\u30FC\u30B6\u30FC\u7BA1\u7406
...
@@ -78,6 +78,6 @@ smfcore.user=\u30E6\u30FC\u30B6\u30FC\u7BA1\u7406
smfcore.peoples
=
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
7BA1
\u7406
smfcore.peoples
=
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
7BA1
\u7406
smfcore.role
=
\u
5F79
\u5272\u
7BA1
\u7406
smfcore.role
=
\u
5F79
\u5272\u
7BA1
\u7406
smfcode.menuNotExist
=
\u
30E1
\u
30CB
\u
30E5
\u
30FC{0}
\u
304C
\u
5B58
\u5728\u3057\u
306A
\u3044
smfcode.menuNotExist
=
\u
30E1
\u
30CB
\u
30E5
\u
30FC{0}
\u
304C
\u
5B58
\u5728\u3057\u
306A
\u3044
smfco
r
e.noValidStorage
=
\u
30D3
\u
30F3
\u
30EA
\u
30B9
\u
30C8
\u
306B
\u5229\u7528\u
53EF
\u
80FD
\u
306A
\u
30D3
\u
30F3
\u
304C
\u
898B
\u3064\u
304B
\u3089\u
306A
\u3044
smfco
d
e.noValidStorage
=
\u
30D3
\u
30F3
\u
30EA
\u
30B9
\u
30C8
\u
306B
\u5229\u7528\u
53EF
\u
80FD
\u
306A
\u
30D3
\u
30F3
\u
304C
\u
898B
\u3064\u
304B
\u3089\u
306A
\u3044
smfcode.error.barcode.exist
=
[0}}]
\u
306F
\u3059\u3067\u
306B{1}[{2}}
\u
306B
\u5165\u3063\u3066\u3044\u
307E
\u3059\u3002
smfcode.error.barcode.exist
=
[0}}]
\u
306F
\u3059\u3067\u
306B{1}[{2}}
\u
306B
\u5165\u3063\u3066\u3044\u
307E
\u3059\u3002
smfcode.barcodeSetting
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
8A2D
\u
5B9A
\ No newline at end of file
\ No newline at end of file
smfcore.barcodeSetting
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
8A2D
\u
5B9A
\ No newline at end of file
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
19bbb96
...
@@ -78,7 +78,7 @@ smfcore.user=\u7528\u6237\u7BA1\u7406
...
@@ -78,7 +78,7 @@ smfcore.user=\u7528\u6237\u7BA1\u7406
smfcore.peoples
=
\u7528\u6237\u
7BA1
\u7406
smfcore.peoples
=
\u7528\u6237\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcode.menuNotExist
=
\u
83DC
\u5355
{0}
\u
4E0D
\u
5B58
\u5728
smfcode.menuNotExist
=
\u
83DC
\u5355
{0}
\u
4E0D
\u
5B58
\u5728
smfco
r
e.noValidStorage
=
\u6599\u
4ED3
\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u
4ED3
smfco
d
e.noValidStorage
=
\u6599\u
4ED3
\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u
4ED3
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfco
d
e.barcodeSetting
=
\u6761\u7801\u
8BBE
\u
7F6E
smfco
r
e.barcodeSetting
=
\u6761\u7801\u
8BBE
\u
7F6E
src/main/resources/messages_zh_TW.properties
查看文件 @
19bbb96
...
@@ -78,6 +78,6 @@ smfcore.user=\u7528\u6236\u7BA1\u7406
...
@@ -78,6 +78,6 @@ smfcore.user=\u7528\u6236\u7BA1\u7406
smfcore.peoples
=
\u7528\u6236\u
7BA1
\u7406
smfcore.peoples
=
\u7528\u6236\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcore.role
=
\u
89D2
\u8272\u
7BA1
\u7406
smfcode.menuNotExist
=
\u
83DC
\u
55AE{0}
\u
4E0D
\u
5B58
\u5728
smfcode.menuNotExist
=
\u
83DC
\u
55AE{0}
\u
4E0D
\u
5B58
\u5728
smfco
r
e.noValidStorage
=
\u6599\u5009\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u5009
smfco
d
e.noValidStorage
=
\u6599\u5009\u5217\u8868\u
4E2D
\u
672A
\u
627E
\u5230\u
53EF
\u7528\u7684\u6599\u5009
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfcode.error.barcode.exist
=
[{0}}]
\u
5DF2
\u5728
{1}}[{2}}]
\u
4E2D
smfcode.barcodeSetting
=
\u
689D
\u
78BC
\u
8A2D
\u
7F6E
\ No newline at end of file
\ No newline at end of file
smfcore.barcodeSetting
=
\u
689D
\u
78BC
\u
8A2D
\u
7F6E
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论