Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 64849811
由
LN
编写于
2022-01-10 13:21:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
菜单文本修改
1 个父辈
5d02a7f6
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
42 行增加
和
19 行删除
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
src/main/resources/config/application.yml
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/common/init/DataInitManager.java
查看文件 @
6484981
...
...
@@ -21,6 +21,7 @@ import com.neotel.smfcore.security.service.po.Role;
import
com.neotel.smfcore.security.service.po.User
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.mongodb.core.query.Criteria
;
import
org.springframework.data.mongodb.core.query.Query
;
import
org.springframework.stereotype.Component
;
...
...
@@ -53,10 +54,16 @@ public class DataInitManager {
@Autowired
OrderFileWatch
orderFileWatch
;
/**
* 当前版本
*/
@Value
(
"${app.version}"
)
private
String
version
;
@PostConstruct
public
void
DataInit
()
{
try
{
log
.
info
(
"初始化环境..."
);
log
.
info
(
"
smfcore版本号:["
+
version
+
"]。
初始化环境..."
);
//查询admin的用户是否存在
String
userName
=
Constants
.
SUPER_USERNAME
;
User
admin
=
userManager
.
findByUserName
(
userName
);
...
...
@@ -212,11 +219,11 @@ public class DataInitManager {
//物料管理:工单出库,查找出库(UID出库,PN出库),物料标签,料盒操作,出库策略,工单设置
Menu
poutOut
=
Menu
.
CreatePMenu
(
"物料管理"
,
20
,
"order"
,
2
,
"workOrder"
);
Menu
menuOrder
=
new
Menu
(
new
ArrayList
<
Menu
>(),
1
,
"workOrder"
,
"工单出库"
,
1
,
"workOrder"
,
"neolight/workOrder/index"
,
""
,
0
,
"
workOrder
"
);
Menu
menuOrder
=
new
Menu
(
new
ArrayList
<
Menu
>(),
1
,
"workOrder"
,
"工单出库"
,
1
,
"workOrder"
,
"neolight/workOrder/index"
,
""
,
0
,
"
orderOut
"
);
Menu
out
=
Menu
.
CreatePMenu
(
"查找出库"
,
20
,
"searchOut"
,
2
,
"
export1
"
);
Menu
out
=
Menu
.
CreatePMenu
(
"查找出库"
,
20
,
"searchOut"
,
2
,
"
findOut
"
);
Menu
menuOut
=
new
Menu
(
new
ArrayList
<
Menu
>(),
1
,
"checkOut"
,
"UID出库"
,
1
,
"singleOuput"
,
"neolight/singleOuput/index"
,
""
,
0
,
"export1"
);
Menu
celueOut
=
new
Menu
(
new
ArrayList
<
Menu
>(),
1
,
"tacticsOuput"
,
"PN出库"
,
1
,
"tacticsOuput"
,
"neolight/tacticsOuput/index"
,
""
,
0
,
"
workOrder
"
);
Menu
celueOut
=
new
Menu
(
new
ArrayList
<
Menu
>(),
1
,
"tacticsOuput"
,
"PN出库"
,
1
,
"tacticsOuput"
,
"neolight/tacticsOuput/index"
,
""
,
0
,
"
tacticsOuput
"
);
out
.
setChildren
(
Arrays
.
asList
((
new
Menu
[]{
menuOut
,
celueOut
})));
...
...
src/main/resources/config/application.yml
查看文件 @
6484981
...
...
@@ -32,3 +32,8 @@ spring:
rsa
:
private_key
:
MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEA0vfvyTdGJkdbHkB8mp0f3FE0GYP3AYPaJF7jUd1M0XxFSE2ceK3k2kw20YvQ09NJKk+OMjWQl9WitG9pB6tSCQIDAQABAkA2SimBrWC2/wvauBuYqjCFwLvYiRYqZKThUS3MZlebXJiLB+Ue/gUifAAKIg1avttUZsHBHrop4qfJCwAI0+YRAiEA+W3NK/RaXtnRqmoUUkb59zsZUBLpvZgQPfj1MhyHDz0CIQDYhsAhPJ3mgS64NbUZmGWuuNKp5coY2GIj/zYDMJp6vQIgUueLFXv/eZ1ekgz2Oi67MNCk5jeTF2BurZqNLR3MSmUCIFT3Q6uHMtsB9Eha4u7hS31tj1UWE+D+ADzp59MGnoftAiBeHT7gDMuqeJHPL4b+kC+gzV4FGTfhR9q3tTbklZkD2A==
app
:
version
:
'
@project.version@'
build
:
time
:
'
@build.time@'
\ No newline at end of file
src/main/resources/messages.properties
查看文件 @
6484981
...
...
@@ -72,7 +72,7 @@ smfcore.storagePos=\u5E93\u4F4D\u7BA1\u7406
smfcore.menu
=
\u
83DC
\u5355\u
7BA1
\u7406
smfcore.materiel
=
\u6863\u6848\u
7BA1
\u7406
smfcore.componentParts
=
\u5143\u5668\u
4EF6
smfcore.barcode
=
\u6761\u
5F62
\u7801
smfcore.barcode
=
\u6761\u
7801\u
7BA1
\u7406
smfcore.log
=
\u
65E5
\u
5FD7
\u
7BA1
\u7406
smfcore.taskLog
=
\u7269\u6599\u
65E5
\u
5FD7
smfcore.user
=
\u7528\u6237\u
7BA1
\u7406
...
...
@@ -149,7 +149,7 @@ smfcore.solderPasteKanban=\u8BBE\u5907\u6982\u89C8
smfcore.solderPasteManage
=
\u
5E93
\u
5B58
smfcore.solderPasteData
=
\u
8FFD
\u
6EAF
\u6027
smfcore.solderPasteSetting
=
\u
8BBE
\u
7F6E
smfcore.orderSetting
=
\u
5
DE5
\u5355\u
8BBE
\u
7F6E
smfcore.orderSetting
=
\u5
171\u
4EAB
\u6587\u
4EF6
\u5939
smfcore.enterCorrectFolder
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u6587\u
4EF6
\u5939
smfcore.taskHasEnd
=
\u
4EFB
\u
52A1{0}
\u
5DF2
\u
53D6
\u
6D88
\u6216\u
5DF2
\u
7ED3
\u
675F
smfcore.virtual.notFound
=
\u
672A
\u
627E
\u5230\u
865A
\u
62DF
\u
4ED3
...
...
@@ -162,4 +162,7 @@ smfcore.observability=\u53EF\u89C2\u6D4B\u6027
smfcore.materialChart
=
\u7269\u6599\u
8FFD
\u
8E2A
smfcore.report
=
\u
62A5
\u8868
smfcore.inOutData
=
\u
51FA
\u5165\u
5E93
smfcore.inventory
=
\u
5E93
\u
5B58
\ No newline at end of file
smfcore.inventory
=
\u
5E93
\u
5B58
smfcore.barcodes
=
\u6761\u
5F62
\u7801
smfcore.internet
=
\u7269\u8054\u
7F51
smfcore.materialBox.qtyError
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u6570\u
91CF
src/main/resources/messages_en_US.properties
查看文件 @
6484981
...
...
@@ -72,7 +72,7 @@ smfcore.storagePos=Storage Location
smfcore.menu
=
Menu Manager
smfcore.materiel
=
Product Info
smfcore.componentParts
=
Component
smfcore.barcode
=
M
aterial ID
smfcore.barcode
=
M
A ID Manager
smfcore.log
=
Big Data
smfcore.taskLog
=
Material Log
smfcore.user
=
Users
...
...
@@ -149,7 +149,7 @@ smfcore.solderPasteKanban=Equipment Overview
smfcore.solderPasteManage
=
Inventory
smfcore.solderPasteData
=
Traceability
smfcore.solderPasteSetting
=
Setting
smfcore.orderSetting
=
Order Setting
smfcore.orderSetting
=
Shared Folder
smfcore.enterCorrectFolder
=
Please enter the correct folder
smfcore.taskHasEnd
=
Task {0} has been cancelled or has ended
smfcore.virtual.notFound
=
No virtual warehouse found
...
...
@@ -162,4 +162,6 @@ smfcore.observability=Observability
smfcore.materialChart
=
Material Tracking
smfcore.report
=
Report
smfcore.inOutData
=
Records
smfcore.inventory
=
Inventory
\ No newline at end of file
smfcore.inventory
=
Inventory
smfcore.barcodes
=
MA.ID
smfcore.internet
=
Connectivity
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
6484981
...
...
@@ -72,7 +72,7 @@ smfcore.storagePos=\u30B9\u30C8\u30EC\u30FC\u30B8\u7BA1\u7406
smfcore.menu
=
\u
30E1
\u
30CB
\u
30E5
\u
30FC
\u
7BA1
\u7406
smfcore.materiel
=
\u
30A2
\u
30FC
\u
30AB
\u
30A4
\u
30D6
\u
7BA1
\u7406
smfcore.componentParts
=
\u
30B3
\u
30F3
\u
30DD
\u
30FC
\u
30CD
\u
30F3
\u
30C8
smfcore.barcode
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
smfcore.barcode
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
7BA1
\u7406
smfcore.log
=
\u
30ED
\u
30B0
\u
7BA1
\u7406
smfcore.taskLog
=
\u
30DE
\u
30C6
\u
30EA
\u
30A2
\u
30EB
\u
30ED
\u
30B0
smfcore.user
=
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
7BA1
\u7406
...
...
@@ -149,7 +149,7 @@ smfcore.solderPasteKanban=\u6A5F\u5668\u6982\u8981
smfcore.solderPasteManage
=
\u
30A4
\u
30F3
\u
30D9
\u
30F3
\u
30C8
\u
30EA
\u
30FC
smfcore.solderPasteData
=
\u9061\u
53CA
smfcore.solderPasteSetting
=
\u
8A2D
\u
5B9A
smfcore.orderSetting
=
\u
30EF
\u
30FC
\u
30AF
\u
30AA
\u
30FC
\u
30C0
\u
30FC
\u
306E
\u
8A2D
\u
5B9A
smfcore.orderSetting
=
\u
5171\u6709\u
30D5
\u
30A9
\u
30EB
\u
30C0
\u
30FC
smfcore.enterCorrectFolder
=
\u
6B63
\u3057\u3044\u
30D5
\u
30A9
\u
30EB
\u
30C0
\u3092\u5165\u
529B
\u3057\u3066\u
304F
\u3060\u3055\u3044
smfcore.taskHasEnd=
\u
30BF
\u
30B9
\u
30AF{0}
\u
304C
\u
30AD
\u
30E3
\u
30F3
\u
30BB
\u
30EB
\u3055\u
308C
\u
305F
\u
304B
\u
7D42
\u
4E86
\u3057\u
305F
smfcore.virtual.notFound
=
\u
30D0
\u
30FC
\u
30C1
\u
30E3
\u
30EB
\u
30A6
\u
30A8
\u
30A2
\u
30CF
\u
30A6
\u
30B9
\u
304C
\u
898B
\u3064\u
304B
\u
308A
\u
307E
\u
305B
\u3093
...
...
@@ -162,4 +162,6 @@ smfcore.observability=\u89B3\u6E2C\u53EF\u80FD\u6027
smfcore.materialChart
=
\u
30DE
\u
30C6
\u
30EA
\u
30A2
\u
30EB
\u
30C8
\u
30E9
\u
30C3
\u
30AD
\u
30F3
\u
30B0
smfcore.report
=
\u
30B9
\u
30C6
\u
30FC
\u
30C8
\u
30E1
\u
30F3
\u
30C8
smfcore.inOutData
=
\u
8A18
\u9332
smfcore.inventory
=
\u
30A4
\u
30F3
\u
30D9
\u
30F3
\u
30C8
\u
30EA
\u
30FC
\ No newline at end of file
smfcore.inventory
=
\u
30A4
\u
30F3
\u
30D9
\u
30F3
\u
30C8
\u
30EA
\u
30FC
smfcore.barcodes
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
smfcore.internet
=
\u9023\u
7D50
\u6027
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
6484981
...
...
@@ -72,7 +72,7 @@ smfcore.storagePos=\u5E93\u4F4D\u7BA1\u7406
smfcore.menu
=
\u
83DC
\u5355\u
7BA1
\u7406
smfcore.materiel
=
\u6863\u6848\u
7BA1
\u7406
smfcore.componentParts
=
\u5143\u5668\u
4EF6
smfcore.barcode
=
\u6761\u
5F62
\u7801
smfcore.barcode
=
\u6761\u
7801\u
7BA1
\u7406
smfcore.log
=
\u
65E5
\u
5FD7
\u
7BA1
\u7406
smfcore.taskLog
=
\u7269\u6599\u
65E5
\u
5FD7
smfcore.user
=
\u7528\u6237\u
7BA1
\u7406
...
...
@@ -149,7 +149,7 @@ smfcore.solderPasteKanban=\u8BBE\u5907\u6982\u89C8
smfcore.solderPasteManage
=
\u
5E93
\u
5B58
smfcore.solderPasteData
=
\u
8FFD
\u
6EAF
\u6027
smfcore.solderPasteSetting
=
\u
8BBE
\u
7F6E
smfcore.orderSetting
=
\u
5
DE5
\u5355\u
8BBE
\u
7F6E
smfcore.orderSetting
=
\u5
171\u
4EAB
\u6587\u
4EF6
\u5939
smfcore.enterCorrectFolder
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u6587\u
4EF6
\u5939
smfcore.taskHasEnd
=
\u
4EFB
\u
52A1{0}
\u
5DF2
\u
53D6
\u
6D88
\u6216\u
5DF2
\u
7ED3
\u
675F
smfcore.virtual.notFound
=
\u
672A
\u
627E
\u5230\u
865A
\u
62DF
\u
4ED3
...
...
@@ -162,4 +162,6 @@ smfcore.observability=\u53EF\u89C2\u6D4B\u6027
smfcore.materialChart
=
\u7269\u6599\u
8FFD
\u
8E2A
smfcore.report
=
\u
62A5
\u8868
smfcore.inOutData
=
\u
51FA
\u5165\u
5E93
smfcore.inventory
=
\u
5E93
\u
5B58
\ No newline at end of file
smfcore.inventory
=
\u
5E93
\u
5B58
smfcore.barcodes
=
\u6761\u
5F62
\u7801
smfcore.internet
=
\u7269\u8054\u
7F51
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
6484981
...
...
@@ -72,7 +72,7 @@ smfcore.storagePos=\u5EAB\u4F4D\u7BA1\u7406
smfcore.menu
=
\u
83DC
\u
55AE
\u
7BA1
\u7406
smfcore.materiel
=
\u
6A94
\u6848\u
7BA1
\u7406
smfcore.componentParts
=
\u5143\u5668\u
4EF6
smfcore.barcode
=
\u
689D
\u
5F62
\u
78BC
smfcore.barcode
=
\u
689D
\u
78BC
\u
7BA1
\u7406
smfcore.log
=
\u
65E5
\u
5FD7
\u
7BA1
\u7406
smfcore.taskLog
=
\u7269\u6599\u
65E5
\u
5FD7
smfcore.user
=
\u7528\u6236\u
7BA1
\u7406
...
...
@@ -149,7 +149,7 @@ smfcore.solderPasteKanban=\u8A2D\u5099\u6982\u89BD
smfcore.solderPasteManage
=
\u
5EAB
\u
5B58
smfcore.solderPasteData
=
\u
8FFD
\u
6EAF
\u6027
smfcore.solderPasteSetting
=
\u
8A2D
\u
7F6E
smfcore.orderSetting
=
\u
5
DE5
\u5355\u
8A2D
\u
7F6
E
smfcore.orderSetting
=
\u5
171\u
4EAB
\u6587\u
4EF6
\u
593
E
smfcore.enterCorrectFolder
=
\u
8ACB
\u
8F38
\u5165\u
6B63
\u
78BA
\u7684\u6587\u
4EF6
\u
593E
smfcore.taskHasEnd
=
\u
4EFB
\u
52D9{0}
\u
5DF2
\u
53D6
\u
6D88
\u6216\u
5DF2
\u
7D50
\u
675F
smfcore.virtual.notFound
=
\u
672A
\u
627E
\u5230\u
865B
\u
64EC
\u5009
...
...
@@ -162,4 +162,6 @@ smfcore.observability=\u53EF\u89C0\u6E2C\u6027
smfcore.materialChart
=
\u7269\u6599\u
8FFD
\u
8E64
smfcore.report
=
\u5831\u8868
smfcore.inOutData
=
\u
51FA
\u5165\u
5EAB
smfcore.inventory
=
\u
5EAB
\u
5B58
\ No newline at end of file
smfcore.inventory
=
\u
5EAB
\u
5B58
smfcore.barcodes
=
\u
689D
\u
5F62
\u
78BC
smfcore.internet
=
\u7269\u
806F
\u
7DB2
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论