Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 30564558
由
hc
编写于
2024-07-24 18:16:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
fix:备品仓出入库修改
1 个父辈
595d9c52
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
src/main/java/com/neotel/smfcore/custom/luxsan_sp/controller/SpAgvDeviceClientController.java
src/main/java/com/neotel/smfcore/custom/luxsan_sp/controller/SpBoxPutInController.java
src/main/java/com/neotel/smfcore/custom/luxsan_sp/util/SpBoxUtil.java
src/main/java/com/neotel/smfcore/custom/luxsan_sp/util/SpareNoCache.java
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
查看文件 @
3056455
...
@@ -220,7 +220,6 @@ public class BarcodeManagerImpl implements IBarcodeManager {
...
@@ -220,7 +220,6 @@ public class BarcodeManagerImpl implements IBarcodeManager {
}
}
protected
void
validateSave
(
Barcode
barcode
)
throws
ValidateException
{
protected
void
validateSave
(
Barcode
barcode
)
throws
ValidateException
{
barcode
.
setPartNumber
(
barcode
.
getPn
());
if
(
barcode
.
getBarcode
()==
null
)
{
if
(
barcode
.
getBarcode
()==
null
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"barcode"
}
);
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"barcode"
}
);
// throw new ValidateException("barcode.error.empty");
// throw new ValidateException("barcode.error.empty");
...
...
src/main/java/com/neotel/smfcore/custom/luxsan_sp/controller/SpAgvDeviceClientController.java
查看文件 @
3056455
...
@@ -245,8 +245,9 @@ public class SpAgvDeviceClientController {
...
@@ -245,8 +245,9 @@ public class SpAgvDeviceClientController {
log
.
info
(
barcode
.
getBarcode
()+
"生成ctu的任务信息"
+
JSON
.
toJSONString
(
taskData
));
log
.
info
(
barcode
.
getBarcode
()+
"生成ctu的任务信息"
+
JSON
.
toJSONString
(
taskData
));
}
catch
(
Throwable
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
log
.
info
(
e
.
getMessage
());
}
}
return
ResultBean
.
newOkResult
(
taskData
);
return
ResultBean
.
newOkResult
(
taskData
);
}
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan_sp/controller/SpBoxPutInController.java
查看文件 @
3056455
...
@@ -166,7 +166,7 @@ public class SpBoxPutInController {
...
@@ -166,7 +166,7 @@ public class SpBoxPutInController {
boolean
isOk
=
false
;
boolean
isOk
=
false
;
String
codePartNumber
=
codeBarcode
.
getPartNumber
();
String
codePartNumber
=
codeBarcode
.
getPartNumber
();
for
(
Barcode
barcode
:
boxBarcode
.
getSubCodeList
())
{
for
(
Barcode
barcode
:
boxBarcode
.
getSubCodeList
())
{
String
pn
=
barcode
.
getP
n
();
String
pn
=
barcode
.
getP
artNumber
();
int
binNum
=
Integer
.
parseInt
(
barcode
.
getBarcode
().
split
(
"-"
)[
1
]);
int
binNum
=
Integer
.
parseInt
(
barcode
.
getBarcode
().
split
(
"-"
)[
1
]);
if
(
pn
.
equals
(
codePartNumber
)
&&
(
binNum
==
Integer
.
parseInt
(
binCodeStr
.
split
(
"-"
)[
1
])))
{
if
(
pn
.
equals
(
codePartNumber
)
&&
(
binNum
==
Integer
.
parseInt
(
binCodeStr
.
split
(
"-"
)[
1
])))
{
isOk
=
true
;
isOk
=
true
;
...
@@ -238,7 +238,6 @@ public class SpBoxPutInController {
...
@@ -238,7 +238,6 @@ public class SpBoxPutInController {
}
}
LuxsanSpApi
.
spareInHourse
(
new
SpareInHourseRequest
(
baseNo
.
getDeptId
(),
baseNo
.
getNo
(),
baseNo
.
getWhCode
(),
details
));
LuxsanSpApi
.
spareInHourse
(
new
SpareInHourseRequest
(
baseNo
.
getDeptId
(),
baseNo
.
getNo
(),
baseNo
.
getWhCode
(),
details
));
}
}
baseNo
.
setSpareStatus
(
SpareNostatus
.
CLOSE_STATUS
);
}
}
if
(
baseNo
.
getClass
().
equals
(
SpareNo
.
class
))
{
if
(
baseNo
.
getClass
().
equals
(
SpareNo
.
class
))
{
...
@@ -252,7 +251,11 @@ public class SpBoxPutInController {
...
@@ -252,7 +251,11 @@ public class SpBoxPutInController {
//4.开始放入料箱
//4.开始放入料箱
binBarcode
.
setPartNumber
(
codePartNumber
);
binBarcode
.
setAmount
(
binBarcode
.
getAmount
()+
codeBarcode
.
getQty
());
binBarcode
.
setAmount
(
binBarcode
.
getAmount
()+
codeBarcode
.
getQty
());
barcodeManager
.
save
(
binBarcode
);
boxBarcode
.
updateSubCodes
(
binBarcode
);
boxBarcode
.
updateSubCodes
(
binBarcode
);
barcodeManager
.
save
(
boxBarcode
);
barcodeManager
.
save
(
boxBarcode
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan_sp/util/SpBoxUtil.java
查看文件 @
3056455
...
@@ -191,13 +191,11 @@ public class SpBoxUtil {
...
@@ -191,13 +191,11 @@ public class SpBoxUtil {
}
}
public
static
String
getPartNumber
(
List
<
Barcode
>
subCodeList
,
String
reelId
){
public
static
String
getPartNumber
(
List
<
Barcode
>
subCodeList
,
String
reelId
){
for
(
Barcode
barcode
:
subCodeList
)
{
}
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
()){
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
()){
for
(
Barcode
barcode
:
subCodeList
)
{
for
(
Barcode
barcode
:
subCodeList
)
{
if
(
reelId
.
replace
(
"0"
,
""
)
if
(
reelId
.
replace
(
"0"
,
""
)
.
equals
(
barcode
.
getBarcode
().
replace
(
"0"
,
""
))){
.
equals
(
barcode
.
getBarcode
().
replace
(
"0"
,
""
))){
return
barcode
.
getP
n
();
return
barcode
.
getP
artNumber
();
}
}
}
}
}
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan_sp/util/SpareNoCache.java
查看文件 @
3056455
...
@@ -223,6 +223,7 @@ public class SpareNoCache {
...
@@ -223,6 +223,7 @@ public class SpareNoCache {
String
pn
=
detail
.
getPartno
();
String
pn
=
detail
.
getPartno
();
Barcode
newPn
=
new
Barcode
();
Barcode
newPn
=
new
Barcode
();
newPn
.
setPn
(
pn
);
newPn
.
setPn
(
pn
);
newPn
.
setPartNumber
(
pn
);
newPn
.
setAmount
(
0
);
newPn
.
setAmount
(
0
);
newPn
.
setInitialAmount
(
0
);
newPn
.
setInitialAmount
(
0
);
newPn
.
setOut
(
false
);
newPn
.
setOut
(
false
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论