Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3f07527a
由
zshaohui
编写于
2025-06-04 16:33:20 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.虚拟仓操作优化
1 个父辈
7de555d2
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/virtual/controller/VirtualOperateController.java
src/main/java/com/neotel/smfcore/core/virtual/controller/VirtualOperateController.java
查看文件 @
3f07527
...
@@ -160,7 +160,7 @@ public class VirtualOperateController {
...
@@ -160,7 +160,7 @@ public class VirtualOperateController {
log
.
info
(
"条码"
+
subBarcode
.
getBarcode
()
+
"["
+
subBarcode
.
getPartNumber
()
+
"]入库到料盒["
+
barcode
.
getBarcode
()
+
"]数量:"
+
barcode
.
getAmount
());
log
.
info
(
"条码"
+
subBarcode
.
getBarcode
()
+
"["
+
subBarcode
.
getPartNumber
()
+
"]入库到料盒["
+
barcode
.
getBarcode
()
+
"]数量:"
+
barcode
.
getAmount
());
}
else
if
(
"ri"
.
equals
(
putInType
))
{
}
else
if
(
"ri"
.
equals
(
putInType
))
{
//解析条码
//解析条码
Barcode
subCode
=
codeResolve
.
resolveOneValideBarcode
(
operageStr
);
Barcode
subCode
=
codeResolve
.
resolveOneValideBarcode
(
"=1x1="
+
operageStr
);
if
(
subCode
==
null
)
{
if
(
subCode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
operageStr
});
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
operageStr
});
}
}
...
@@ -194,7 +194,7 @@ public class VirtualOperateController {
...
@@ -194,7 +194,7 @@ public class VirtualOperateController {
}
}
int
opQty
=
Integer
.
valueOf
(
amountStr
);
int
opQty
=
Integer
.
valueOf
(
amountStr
);
int
opType
=
OP
.
NON_OP
;
int
opType
=
OP
.
NON_OP
;
if
(
opQty
<
0
)
{
if
(
opQty
>
0
)
{
opType
=
OP
.
CHECKOUT
;
opType
=
OP
.
CHECKOUT
;
}
else
{
}
else
{
//请输入正确的数量
//请输入正确的数量
...
@@ -218,7 +218,7 @@ public class VirtualOperateController {
...
@@ -218,7 +218,7 @@ public class VirtualOperateController {
barcode
=
finishTask
(
barcode
,
opType
,
subBarcode
,
opQty
);
barcode
=
finishTask
(
barcode
,
opType
,
subBarcode
,
opQty
);
log
.
info
(
subBarcode
.
getPartNumber
()
+
"从料盒["
+
barcode
.
getPosName
()
+
"]出库,物料数量:"
+
oldAmount
+
" - "
+
opQty
+
" = "
+
newAmount
);
log
.
info
(
subBarcode
.
getPartNumber
()
+
"从料盒["
+
barcode
.
getPosName
()
+
"]出库,物料数量:"
+
oldAmount
+
" - "
+
opQty
+
" = "
+
newAmount
);
}
else
if
(
"ri"
.
equals
(
checkOutType
))
{
}
else
if
(
"ri"
.
equals
(
checkOutType
))
{
CodeBean
codeBean
=
codeResolve
.
resolveSingleCode
(
operageStr
);
CodeBean
codeBean
=
codeResolve
.
resolveSingleCode
(
"=1x1="
+
operageStr
);
if
(!
codeBean
.
isValid
())
{
if
(!
codeBean
.
isValid
())
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
operageStr
});
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
operageStr
});
}
}
...
@@ -255,7 +255,7 @@ public class VirtualOperateController {
...
@@ -255,7 +255,7 @@ public class VirtualOperateController {
String
describe
=
paramMap
.
get
(
"describe"
);
String
describe
=
paramMap
.
get
(
"describe"
);
//判断料箱是否存在
//判断料箱是否存在
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
boxStr
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
"=1x1="
+
boxStr
);
if
(
barcode
==
null
)
{
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
boxStr
});
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
boxStr
});
}
}
...
@@ -289,7 +289,7 @@ public class VirtualOperateController {
...
@@ -289,7 +289,7 @@ public class VirtualOperateController {
public
ResultBean
boxOutFromPosName
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
public
ResultBean
boxOutFromPosName
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
String
boxStr
=
paramMap
.
get
(
"boxStr"
);
String
boxStr
=
paramMap
.
get
(
"boxStr"
);
//判断料箱是否存在
//判断料箱是否存在
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
boxStr
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
"=1x1="
+
boxStr
);
if
(
barcode
==
null
)
{
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
boxStr
});
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"{0}不是有效的条码"
,
new
String
[]{
boxStr
});
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论