Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c7059fb9
由
hc
编写于
2024-07-03 13:17:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
fix:获取料箱信息方法修改
1 个父辈
1085ac77
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
查看文件 @
c7059fb
...
...
@@ -8,6 +8,7 @@ import com.neotel.smfcore.common.utils.StringUtils;
import
com.neotel.smfcore.core.barcode.enums.BARCODE_STATUS
;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.utils.CodeResolve
;
import
com.neotel.smfcore.core.device.enums.OP
;
import
com.neotel.smfcore.core.device.enums.OP_STATUS
;
import
com.neotel.smfcore.core.device.util.DataCache
;
...
...
@@ -62,6 +63,13 @@ public class BoxHandleUtil {
BoxHandleUtil
.
taskService
=
service
;
}
private
static
CodeResolve
codeResolve
;
@Autowired
public
void
setCodeResolve
(
CodeResolve
resolve
)
{
BoxHandleUtil
.
codeResolve
=
resolve
;
}
/**
* key 为料箱号
...
...
@@ -369,23 +377,27 @@ public class BoxHandleUtil {
String
platsize
=
""
;
int
boxAllCount
=
0
;
int
boxRemainingCount
=
0
;
String
boxStr
=
""
;
;
String
msg
=
""
;
String
boxStr
=
""
;
List
<
List
<
Integer
>>
boxPartitionCounts
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotBlank
(
code
))
{
if
(
code
.
startsWith
(
"C07"
)
||
code
.
startsWith
(
"C13"
)
||
code
.
startsWith
(
"C15"
))
{
//1、获取料箱的
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
if
(
barcode
!=
null
)
{
boxStr
=
barcode
.
getBarcode
();
String
endStr
=
code
.
substring
(
code
.
length
()
-
1
);
//得到是A、B面
boxStr
=
getBoxStr
(
code
,
false
);
if
(
boxSideMap
.
get
(
boxStr
)
!=
null
)
{
endStr
=
boxSideMap
.
get
(
boxStr
);
}
else
{
boxSideMap
.
put
(
boxStr
,
endStr
);
}
//1、获取料箱的
Barcode
barcode
=
barcodeManager
.
findByBarcode
(
boxStr
);
if
(
barcode
!=
null
)
{
List
<
Barcode
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
())
{
if
(
subCodeList
==
null
){
subCodeList
=
new
ArrayList
<>();
}
//if (subCodeList != null && !subCodeList.isEmpty()) {
if
(
boxAllCountMap
.
get
(
boxStr
)
==
null
)
{
boxAllCountMap
.
put
(
boxStr
,
subCodeList
.
size
());
}
...
...
@@ -475,7 +487,7 @@ public class BoxHandleUtil {
boxRemainingCount
=
subCodeList
.
size
();
}
}
}
//
}
}
resultMap
.
put
(
"platsize"
,
platsize
);
resultMap
.
put
(
"boxPartitionCounts"
,
boxPartitionCounts
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论