Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit de730ae0
由
LN
编写于
2022-01-14 16:23:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
库位增加设备名称
1 个父辈
15cd16b5
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
46 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/MimoBoxHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/XLCBoxHandler.java
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/storage/rest/dto/StoragePosDto.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/device/handler/impl/MimoBoxHandler.java
查看文件 @
de730ae
...
...
@@ -12,6 +12,7 @@ import com.neotel.smfcore.core.storage.enums.DeviceType;
import
com.neotel.smfcore.core.storage.service.po.Storage
;
import
com.neotel.smfcore.core.storage.service.po.StoragePos
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.core.system.util.DevicesStatusUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
...
...
@@ -56,6 +57,10 @@ public class MimoBoxHandler extends BaseDeviceHandler {
statusBean
=
taskService
.
checkOut
(
storage
,
statusBean
);
}
//获取操作
Map
<
String
,
String
>
opMap
=
DevicesStatusUtil
.
getAndRemoveOp
(
cid
);
statusBean
.
addOp
(
opMap
);
return
statusBean
;
}
@Override
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/XLCBoxHandler.java
查看文件 @
de730ae
...
...
@@ -102,8 +102,8 @@ public class XLCBoxHandler extends BaseDeviceHandler {
}
// if(list.size()<=0) {
// Random r = new Random();
// int num =
r.nextInt(10)
;
// if(num>=3){
// int num =
Integer.parseInt( pos.getId())%5+1
;
//
//
if(num>=3){
// for (int i = 1; i <= num; i++) {
// XLCPosBarcodeDto dto1 = toPosBarcodeDto(pos.getBarcode());
// dto1.setBarcode(i * 1111 + "-" + dto1.getBarcode());
...
...
@@ -111,7 +111,7 @@ public class XLCBoxHandler extends BaseDeviceHandler {
// dto1.setAmount(i * 1111);
// list.add(dto1);
// }
// }
//
//
}
// }
XLCPosBarcodeDto
barcodeDto
=
toPosBarcodeDto
(
pos
.
getBarcode
());
...
...
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
查看文件 @
de730ae
...
...
@@ -46,6 +46,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.*
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
...
...
@@ -254,6 +255,21 @@ public class BoxKanbanController {
return
dto
;
}
@ApiOperation
(
"保存界面的一些操作"
)
@PutMapping
(
"/saveOp"
)
@PreAuthorize
(
"@el.check('storagePos:edit')"
)
public
ResultBean
saveOp
(
@RequestBody
Map
<
String
,
String
>
params
)
{
String
cid
=
params
.
get
(
"cid"
);
if
(!
Strings
.
isNullOrEmpty
(
cid
)){
String
opKey
=
params
.
get
(
"opKey"
);
String
opValue
=
params
.
get
(
"opValue"
);
log
.
info
(
"界面执行操作:"
+
opKey
+
"="
+
opValue
);
DevicesStatusUtil
.
addOp
(
cid
,
opKey
,
opValue
);
return
ResultBean
.
newOkResult
(
"smfcore.msg.ok"
,
"操作成功"
,
""
);
}
return
ResultBean
.
newOkResult
(
"smfcore.msg.noCid"
,
"操作失败,未找到cid"
,
""
);
}
@ApiOperation
(
"获取料架库位报警列表"
)
@GetMapping
(
"/shelfPosErrors"
)
@PreAuthorize
(
"@el.check('boxkanban:list')"
)
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
de730ae
...
...
@@ -92,6 +92,12 @@ public class StoragePosController {
PageData
<
StoragePos
>
pages
=
storagePosManager
.
findByPage
(
query
,
pageable
);
List
<
StoragePosDto
>
StoragePosDtos
=
storagePosMapper
.
toDto
(
pages
.
getContent
());
for
(
int
i
=
0
;
i
<
StoragePosDtos
.
size
();
i
++){
Storage
storage
=
dataCache
.
getStorageById
(
StoragePosDtos
.
get
(
i
).
getStorageId
());
if
(
storage
!=
null
){
StoragePosDtos
.
get
(
i
).
setStorageName
(
storage
.
getName
());
}
}
return
new
PageData
(
StoragePosDtos
,
pages
.
getTotalElements
());
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/dto/StoragePosDto.java
查看文件 @
de730ae
...
...
@@ -69,5 +69,7 @@ public class StoragePosDto implements Serializable {
private
String
temperature
=
""
;
@ApiModelProperty
(
"设备名称"
)
private
String
storageName
;
}
src/main/resources/messages.properties
查看文件 @
de730ae
...
...
@@ -168,3 +168,5 @@ smfcore.internet=\u7269\u8054\u7F51
smfcore.materialBox.qtyError
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u6570\u
91CF
smfcore.posOutput
=
\u
5E93
\u
4F4D
\u
51FA
\u
5E93
smfcore.posOutput.noFile
=
\u
8BF7
\u5148\u
4E0A
\u
4F20
\u
51FA
\u
5E93
\u6587\u
4EF6
smfcore.msg.ok
=
\u
64CD
\u
4F5C
\u6210\u
529F
smfcore.msg.noCid
=
\u
64CD
\u
4F5C
\u5931\u
8D25
\u
FF0C
\u
672A
\u
627E
\u5230
cid
src/main/resources/messages_en_US.properties
查看文件 @
de730ae
...
...
@@ -166,4 +166,6 @@ smfcore.inventory=Inventory
smfcore.barcodes
=
MA.ID
smfcore.internet
=
Connectivity
smfcore.posOutput
=
Position Checkout
smfcore.posOutput.noFile
=
Please upload the file first
\ No newline at end of file
smfcore.posOutput.noFile
=
Please upload the file first
smfcore.msg.ok
=
Operation successful
smfcore.msg.noCid
=
Operation failed, cid not found
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
de730ae
...
...
@@ -166,4 +166,6 @@ smfcore.inventory=\u30A4\u30F3\u30D9\u30F3\u30C8\u30EA\u30FC
smfcore.barcodes
=
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
smfcore.internet
=
\u9023\u
7D50
\u6027
smfcore.posOutput
=
\u
30B9
\u
30C8
\u
30EC
\u
30FC
\u
30B8
\u
306E
\u
53D6
\u
308A
\u
51FA
\u3057
smfcore.posOutput.noFile
=
\u
307E
\u
305A
\u
306F
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u3092\u
30A2
\u
30C3
\u
30D7
\u
30ED
\u
30FC
\u
30C9
\u3057\u3066\u
304F
\u3060\u3055\u3044
\ No newline at end of file
smfcore.posOutput.noFile
=
\u
307E
\u
305A
\u
306F
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u3092\u
30A2
\u
30C3
\u
30D7
\u
30ED
\u
30FC
\u
30C9
\u3057\u3066\u
304F
\u3060\u3055\u3044
smfcore.msg.ok
=
\u
52D5
\u
4F5C
\u
78BA
\u
8A8D
\u
6E08
\u
307F
smfcore.msg.noCid
=
\u
64CD
\u
4F5C
\u
306B
\u5931\u6557\u3057\u
307E
\u3057\u
305F
\u3001
cid
\u
304C
\u
898B
\u3064\u
304B
\u
308A
\u
307E
\u
305B
\u3093
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
de730ae
...
...
@@ -166,4 +166,6 @@ smfcore.inventory=\u5E93\u5B58
smfcore.barcodes
=
\u6761\u
5F62
\u7801
smfcore.internet
=
\u7269\u8054\u
7F51
smfcore.posOutput
=
\u
5E93
\u
4F4D
\u
51FA
\u
5E93
smfcore.posOutput.noFile
=
\u
8BF7
\u5148\u
4E0A
\u
4F20
\u
51FA
\u
5E93
\u6587\u
4EF6
\ No newline at end of file
smfcore.posOutput.noFile
=
\u
8BF7
\u5148\u
4E0A
\u
4F20
\u
51FA
\u
5E93
\u6587\u
4EF6
smfcore.msg.ok
=
\u
64CD
\u
4F5C
\u6210\u
529F
smfcore.msg.noCid
=
\u
64CD
\u
4F5C
\u5931\u
8D25
\u
FF0C
\u
672A
\u
627E
\u5230
cid
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
de730ae
...
...
@@ -166,4 +166,6 @@ smfcore.inventory=\u5EAB\u5B58
smfcore.barcodes
=
\u
689D
\u
5F62
\u
78BC
smfcore.internet
=
\u7269\u
806F
\u
7DB2
smfcore.posOutput
=
\u
5EAB
\u
4F4D
\u
51FA
\u
5EAB
smfcore.posOutput.noFile
=
\u
8ACB
\u5148\u
4E0A
\u
50B3
\u
51FA
\u
5EAB
\u6587\u
4EF6
\ No newline at end of file
smfcore.posOutput.noFile
=
\u
8ACB
\u5148\u
4E0A
\u
50B3
\u
51FA
\u
5EAB
\u6587\u
4EF6
smfcore.msg.ok
=
\u
64CD
\u
4F5C
\u6210\u
529F
smfcore.msg.noCid
=
\u
64CD
\u
4F5C
\u5931\u6557\u
FF0C
\u
672A
\u
627E
\u5230
cid
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论