Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
Gree
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 30a75ffa
由
sunke
编写于
2021-07-01 11:27:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
流水线在横移上锁定非紧急料架位,当返回码为99时,不放上托盘
需求单出库为0时关闭 执行队列页面显示绑定数量 取消任务时增加PN需求单判断 Http请求增加URLEncode
1 个父辈
60d34fd3
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
2 行删除
myproject/src/main/java/com/myproject/bean/qisda/InquiryShelfBean.java
myproject/src/main/java/com/myproject/bean/qisda/InquiryShelfBean.java
查看文件 @
30a75ff
...
...
@@ -264,9 +264,17 @@ public class InquiryShelfBean {
if
(
hSerial
!=
null
){
Map
<
String
,
ShelfInfo
>
shelfMap
=
hSerialShelfMap
.
get
(
hSerial
);
if
(
shelfMap
!=
null
){
List
<
ShelfInfo
>
shelfList
=
new
ArrayList
<>(
shelfMap
.
values
());
shelfList
.
sort
(
new
Comparator
<
ShelfInfo
>()
{
@Override
public
int
compare
(
ShelfInfo
o1
,
ShelfInfo
o2
)
{
Integer
index1
=
o1
.
getRfidIndex
();
Integer
index2
=
o2
.
getRfidIndex
();
return
index1
.
compareTo
(
index2
);
}
});
ShelfInfo
minIndexShelf
=
null
;
for
(
ShelfInfo
shelf
:
shelfMap
.
values
())
{
for
(
ShelfInfo
shelf
:
shelfList
)
{
if
(
shelf
.
isFull
()){
//已经放满,查找下一个
continue
;
...
...
@@ -290,12 +298,24 @@ public class InquiryShelfBean {
log
.
error
(
"任务条码["
+
task
.
getBarcode
()+
"]已无料架可放"
);
return
null
;
}
else
{
//这里判断是否有未绑定过的料架
boolean
hasEmptyShelf
=
false
;
for
(
String
rfid
:
rfidList
)
{
ShelfInfo
shelf
=
findShelfByRealRfid
(
rfid
);
if
(
shelf
==
null
){
hasEmptyShelf
=
true
;
break
;
}
}
if
(
hasEmptyShelf
){
lockLoc
=
minIndexShelf
.
lockOneEmptyLoc
(
task
);
if
(
lockLoc
!=
null
){
shelfInfo
=
minIndexShelf
;
}
}
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论