Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fbfebb1e
由
sunke
编写于
2022-12-20 08:56:25 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master'
2 个父辈
9f353c5f
73b47153
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
28 行删除
src/main/java/com/neotel/smfcore/common/init/MenuInit.java
src/main/java/com/neotel/smfcore/custom/micron20031/MicronController.java
src/main/java/com/neotel/smfcore/common/init/MenuInit.java
查看文件 @
fbfebb1
...
@@ -93,6 +93,9 @@ public class MenuInit {
...
@@ -93,6 +93,9 @@ public class MenuInit {
//设备看板
//设备看板
addDefaultFunctionMenu
(
1
,
null
,
"设备看板"
,
"lockMaterial"
,
"lockMaterial/material/index"
,
"kanban"
,
DEFAULT_SHOW_MENU
);
addDefaultFunctionMenu
(
1
,
null
,
"设备看板"
,
"lockMaterial"
,
"lockMaterial/material/index"
,
"kanban"
,
DEFAULT_SHOW_MENU
);
//20031锡膏料仓菜单
addDefaultFunctionMenu
(
1
,
null
,
"设备概览"
,
"spKanban"
,
"neolight/spKanban/index"
,
"sKanban"
);
//物料管理:工单出库,查找出库(UID出库,PN出库),物料标签,料盒操作,出库策略,工单设置
//物料管理:工单出库,查找出库(UID出库,PN出库),物料标签,料盒操作,出库策略,工单设置
Menu
poutOut
=
Menu
.
CreatePMenu
(
"物料管理"
,
1
,
"order"
,
"workOrder"
,
null
);
Menu
poutOut
=
Menu
.
CreatePMenu
(
"物料管理"
,
1
,
"order"
,
"workOrder"
,
null
);
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/MicronController.java
查看文件 @
fbfebb1
...
@@ -32,7 +32,7 @@ public class MicronController {
...
@@ -32,7 +32,7 @@ public class MicronController {
@GetMapping
(
"/posUsedData"
)
@GetMapping
(
"/posUsedData"
)
@AnonymousAccess
@AnonymousAccess
public
Map
<
String
,
List
<
PosRowDto
>>
posUsedData
(
String
storageId
)
{
public
Map
<
String
,
List
<
PosRowDto
>>
posUsedData
(
String
storageId
)
{
if
(
ObjectUtil
.
isEmpty
(
storageId
))
{
if
(
ObjectUtil
.
isEmpty
(
storageId
))
{
return
new
HashMap
<>();
return
new
HashMap
<>();
}
}
Query
query
=
new
Query
(
Criteria
.
where
(
"storageId"
).
is
(
storageId
));
Query
query
=
new
Query
(
Criteria
.
where
(
"storageId"
).
is
(
storageId
));
...
@@ -40,17 +40,16 @@ public class MicronController {
...
@@ -40,17 +40,16 @@ public class MicronController {
Map
<
String
,
List
<
PosRowDto
>>
resultMap
=
new
HashMap
<>();
Map
<
String
,
List
<
PosRowDto
>>
resultMap
=
new
HashMap
<>();
List
<
StoragePos
>
posList
=
storagePosManager
.
findByQuery
(
query
);
List
<
StoragePos
>
posList
=
storagePosManager
.
findByQuery
(
query
);
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"labelName"
,
"posName"
);
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"labelName"
,
"posName"
);
String
currPos
=
""
;
Map
<
Integer
,
Integer
>
currMap
=
new
HashMap
<>();
Map
<
String
,
Map
<
String
,
Map
<
Integer
,
Integer
>>>
allMap
=
new
HashMap
<>();
//labelName, posN
Map
<
String
,
Map
<
String
,
Map
<
Integer
,
Integer
>>>
allMap
=
new
HashMap
<>();
for
(
StoragePos
pos
:
for
(
StoragePos
pos
:
posList
)
{
posList
)
{
String
posName
=
pos
.
getPosName
();
String
posName
=
pos
.
getPosName
();
String
posN
=
posName
.
substring
(
0
,
2
);
String
posN
=
posName
.
substring
(
0
,
2
);
Integer
num
=
Convert
.
toInt
(
posName
.
substring
(
2
,
posName
.
length
()
));
Integer
num
=
Convert
.
toInt
(
posName
.
substring
(
2
,
posName
.
length
()));
Integer
used
=
0
;
Integer
used
=
0
;
if
(
pos
.
isUsed
())
{
if
(
pos
.
isUsed
())
{
...
@@ -58,37 +57,25 @@ public class MicronController {
...
@@ -58,37 +57,25 @@ public class MicronController {
}
}
// used=1;
// used=1;
if
(
currPos
.
equals
(
posN
))
{
currMap
.
put
(
num
,
used
);
}
else
{
if
(
ObjectUtil
.
isNotEmpty
(
currPos
)){
String
labelName
=
pos
.
getLabelName
();
if
(!
allMap
.
containsKey
(
labelName
)){
allMap
.
put
(
labelName
,
new
HashMap
<>());
}
if
(
allMap
.
get
(
labelName
).
containsKey
(
currPos
)){
String
labelName
=
pos
.
getLabelName
();
allMap
.
get
(
labelName
).
get
(
currPos
).
putAll
(
currMap
);
if
(!
allMap
.
containsKey
(
labelName
))
{
}
allMap
.
put
(
labelName
,
new
HashMap
<>());
else
{
allMap
.
get
(
labelName
).
put
(
currPos
,
currMap
);
}
}
}
if
(
allMap
.
get
(
labelName
).
containsKey
(
posN
))
{
//开始新的
allMap
.
get
(
labelName
).
get
(
posN
).
put
(
num
,
used
);
currPos
=
posN
;
}
else
{
currM
ap
=
new
HashMap
<>();
Map
<
Integer
,
Integer
>
m
ap
=
new
HashMap
<>();
currM
ap
.
put
(
num
,
used
);
m
ap
.
put
(
num
,
used
);
allMap
.
get
(
labelName
).
put
(
posN
,
map
);
}
}
}
}
Map
<
Integer
,
Integer
>
currMap
=
new
HashMap
<>();
for
(
String
lableName
:
for
(
String
lableName
:
allMap
.
keySet
())
{
allMap
.
keySet
())
{
Map
<
String
,
Map
<
Integer
,
Integer
>>
labelMap
=
allMap
.
get
(
lableName
);
Map
<
String
,
Map
<
Integer
,
Integer
>>
labelMap
=
allMap
.
get
(
lableName
);
List
<
PosRowDto
>
posRowDtos
=
new
ArrayList
<>();
List
<
PosRowDto
>
posRowDtos
=
new
ArrayList
<>();
for
(
String
name
:
labelMap
.
keySet
())
{
for
(
String
name
:
labelMap
.
keySet
())
{
//记录此列
//记录此列
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论