Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5444868a
由
zshaohui
编写于
2023-05-10 13:10:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.料盒出库,取出指定料盘
2.消息列表导出修改
1 个父辈
37298b2d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
22 行增加
和
4 行删除
src/main/java/com/neotel/smfcore/common/utils/FileUtil.java
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialBoxController.java
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
src/main/java/com/neotel/smfcore/common/utils/FileUtil.java
查看文件 @
5444868
...
...
@@ -345,6 +345,9 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
}
// 写出响应
os
.
write
(
0xef
);
os
.
write
(
0xbb
);
os
.
write
(
0xbf
);
os
.
write
(
buf
.
toString
().
getBytes
(
"UTF-8"
));
os
.
flush
();
os
.
close
();
...
...
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
5444868
...
...
@@ -463,6 +463,19 @@ public class Barcode extends BasePo implements Serializable {
return
null
;
}
public
Barcode
getSubCode
(
String
barcodeStr
,
String
pnStr
)
{
if
(
subCodeList
==
null
)
{
return
null
;
}
for
(
Barcode
barcode
:
subCodeList
)
{
if
(
barcode
.
getPartNumber
().
equals
(
pnStr
)
&&
barcode
.
getBarcode
().
equals
(
barcodeStr
))
{
return
barcode
;
}
}
return
null
;
}
public
void
UpdateSubCode
(
Barcode
barcode
)
{
if
(
subCodeList
==
null
)
{
...
...
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
查看文件 @
5444868
...
...
@@ -183,7 +183,7 @@ public class DeviceController {
for
(
DataLog
dataLog
:
taskService
.
getQueueTasks
())
{
//判断是否有正在执行的任务
if
(
dataLog
.
isCheckOutTask
())
{
/*
if (dataLog.isCheckOutTask()) {
String cid = dataLog.getCid();
Storage storage = dataCache.getStorage(cid);
if (storage != null && storage.isXLC()) {
...
...
@@ -194,7 +194,7 @@ public class DeviceController {
return resultMap;
}
}
}
}
*/
//已经在任务当中,返回对应的信息
if
(
dataLog
.
getBarcode
().
equals
(
barcode
.
getBarcode
()))
{
throw
new
ValidateException
(
"smfcore.error.barcode.executing"
,
"条码[{0}}]任务正在执行"
,
new
String
[]{
barcode
.
getBarcode
()});
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialBoxController.java
查看文件 @
5444868
...
...
@@ -153,12 +153,12 @@ public class MaterialBoxController {
String
code
=
paramMap
.
get
(
"barcode"
);
//料盒条码
String
subPN
=
paramMap
.
get
(
"subPN"
);
//物料条码
String
qtyStr
=
paramMap
.
get
(
"qty"
);
//数量
String
subCode
=
paramMap
.
get
(
"subCode"
);
//料盒中物料信息
Barcode
barcode
=
barcodeManager
.
findByBarcode
(
code
);
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.materialBox.invalid"
,
"未找到料盒信息{0}"
,
new
String
[]{
code
});
}
Barcode
subBarcode
=
barcode
.
getSubCode
(
subPN
);
Barcode
subBarcode
=
barcode
.
getSubCode
(
sub
Code
,
sub
PN
);
if
(
subBarcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.materialBox.noReel"
,
"料盒中未找到对应物料"
);
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
查看文件 @
5444868
...
...
@@ -9,4 +9,6 @@ public class CheckOutDto {
private
String
[]
pids
;
@ApiModelProperty
(
"是否是单盘出库"
)
private
String
singleOut
;
@ApiModelProperty
(
"物料唯一码"
)
private
String
[]
barcodeStrs
;
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论