Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2757b55c
由
zshaohui
编写于
2025-03-25 10:26:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.退回大库,选择库别
2.展示禁用料 具体信息
1 个父辈
20869713
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
16 行删除
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/ReturnTowerController.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
查看文件 @
2757b55
...
...
@@ -1143,6 +1143,8 @@ public class LuxsanApi extends DefaultSmfApiListener {
}
log
.
info
(
"批量禁用入参为:"
+
JSON
.
toJSONString
(
paramList
));
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>();
List
<
String
>
reelList
=
new
ArrayList
<>();
try
{
String
resultStr
=
HttpHelper
.
postJson
(
batchCheckReelUrl
,
paramList
);
...
...
@@ -1162,8 +1164,10 @@ public class LuxsanApi extends DefaultSmfApiListener {
for
(
int
j
=
0
;
j
<
resultList
.
size
();
j
++)
{
JSONObject
result
=
resultList
.
getJSONObject
(
j
);
String
reelId
=
result
.
getString
(
"reelId"
);
String
message
=
result
.
getString
(
"message"
);
if
(
StringUtils
.
isNotBlank
(
reelId
)){
reelList
.
add
(
reelId
);
resultMap
.
put
(
reelId
,
message
);
}
}
}
...
...
@@ -1176,7 +1180,8 @@ public class LuxsanApi extends DefaultSmfApiListener {
for
(
Barcode
barcode
:
barcodeList
)
{
if
(
reelList
.
contains
(
barcode
.
getBarcode
()))
{
barcode
.
setDisableMsg
(
"禁用料"
);
String
message
=
resultMap
.
get
(
barcode
.
getBarcode
());
barcode
.
setDisableMsg
(
message
);
barcodeManager
.
save
(
barcode
);
}
else
{
if
(
StringUtils
.
isNotEmpty
(
barcode
.
getDisableMsg
()))
{
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/ReturnTowerController.java
查看文件 @
2757b55
...
...
@@ -44,16 +44,16 @@ public class ReturnTowerController {
log
.
info
(
"退回大库为:"
+
JSON
.
toJSONString
(
paramMap
));
String
materialStr
=
paramMap
.
get
(
"materialStr"
);
//
String warehouseCode = paramMap.get("warehouseCode");
String
warehouseCode
=
paramMap
.
get
(
"warehouseCode"
);
String
codeStr
=
paramMap
.
get
(
"codeStr"
);
if
(
StringUtils
.
isEmpty
(
materialStr
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"料串信息"
});
}
/*
if (StringUtils.isEmpty(warehouseCode)) {
if
(
StringUtils
.
isEmpty
(
warehouseCode
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"库别信息"
});
}
*/
}
//判断料串信息是否正确
if
(
StringUtils
.
isEmpty
(
materialStr
)
||
!
materialStr
.
startsWith
(
"B00"
))
{
...
...
@@ -71,18 +71,6 @@ public class ReturnTowerController {
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.error.barcode.noValidCode"
,
"条码无效"
);
}
String
warehouseCode
=
barcode
.
getWarehouseCode
();
if
(
StringUtils
.
isEmpty
(
warehouseCode
)){
Barcode
reelBarcode
=
LuxsanApi
.
fetchReel
(
barcode
);
if
(
reelBarcode
==
null
){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到"
+
barcode
.
getBarcode
()+
"的库别信息"
);
}
warehouseCode
=
reelBarcode
.
getWarehouseCode
();
if
(
StringUtils
.
isEmpty
(
warehouseCode
))
{
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到"
+
barcode
.
getBarcode
()+
"的库别信息"
);
}
}
//获取尺寸信息
BrandQtyResult
result
=
LuxsanApi
.
brandQtyUrl
(
new
BrandQtyRequest
(
barcode
.
getPartNumber
(),
barcode
.
getProvider
()));
if
(
result
==
null
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论