Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1227cf10
由
张少辉
编写于
2026-03-30 14:48:20 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.异常出库以及报表查询优化
1 个父辈
e1fb0a67
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/custom/lizhen/report/bean/query/ReportQueryCondition.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
1227cf1
...
@@ -639,11 +639,24 @@ public class StoragePosController {
...
@@ -639,11 +639,24 @@ public class StoragePosController {
@ApiOperation
(
"根据料箱号查询barcode信息"
)
@ApiOperation
(
"根据料箱号查询barcode信息"
)
@GetMapping
(
"/getBarcodeInfo"
)
@GetMapping
(
"/getBarcodeInfo"
)
public
BarcodeDto
getBarcodeInfo
(
String
boxStr
)
{
public
BarcodeDto
getBarcodeInfo
(
String
boxStr
,
String
barcodeStr
)
{
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
boxStr
);
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
boxStr
);
if
(
pos
!=
null
)
{
if
(
pos
!=
null
)
{
StoragePosDto
dto
=
storagePosMapper
.
toDto
(
pos
);
StoragePosDto
dto
=
storagePosMapper
.
toDto
(
pos
);
BarcodeDto
barcode
=
dto
.
getBarcode
();
BarcodeDto
barcode
=
dto
.
getBarcode
();
List
<
BarcodeDto
>
newSubCodeList
=
new
ArrayList
<>();
List
<
BarcodeDto
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
()){
for
(
BarcodeDto
barcodeDto
:
subCodeList
)
{
if
(
StringUtils
.
isNotEmpty
(
barcodeStr
)){
if
(!
barcodeStr
.
equals
(
barcodeDto
.
getBarcode
())){
continue
;
}
}
newSubCodeList
.
add
(
barcodeDto
);
}
}
barcode
.
setSubCodeList
(
newSubCodeList
);
return
barcode
;
return
barcode
;
}
}
return
null
;
return
null
;
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/report/bean/query/ReportQueryCondition.java
查看文件 @
1227cf1
...
@@ -52,7 +52,7 @@ public class ReportQueryCondition {
...
@@ -52,7 +52,7 @@ public class ReportQueryCondition {
@ApiModelProperty
(
"唯一码"
)
@ApiModelProperty
(
"唯一码"
)
@QueryCondition
(
blurry
=
"barcode"
)
@QueryCondition
(
propName
=
"barcode"
)
private
String
barcode
;
private
String
barcode
;
@QueryCondition
(
blurry
=
"posName"
)
@QueryCondition
(
blurry
=
"posName"
)
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
1227cf1
...
@@ -1717,7 +1717,7 @@ public class CDeviceController {
...
@@ -1717,7 +1717,7 @@ public class CDeviceController {
Barcode
barcode
=
codeBean
.
getBarcode
();
Barcode
barcode
=
codeBean
.
getBarcode
();
if
(
StringUtils
.
isEmpty
(
barcode
.
getPosName
()))
{
if
(
StringUtils
.
isEmpty
(
barcode
.
getPosName
()))
{
log
.
info
(
code
+
"对应的库位为空,直接返回ok"
);
log
.
info
(
code
+
"对应的库位为空,直接返回ok"
);
return
ResultBean
.
new
OkResult
(
"
"
);
return
ResultBean
.
new
ErrorResult
(-
1
,
""
,
code
+
"对应的库位为空,请库存处理后,重新入库
"
);
}
}
//按位置进行加锁
//按位置进行加锁
Object
lockObj
=
lockBoxMap
.
get
(
currentLoc
);
Object
lockObj
=
lockBoxMap
.
get
(
currentLoc
);
...
@@ -1736,7 +1736,7 @@ public class CDeviceController {
...
@@ -1736,7 +1736,7 @@ public class CDeviceController {
if
(
currentBoxPos
!=
null
)
{
if
(
currentBoxPos
!=
null
)
{
currentBoxBarcode
=
currentBoxPos
.
getBarcode
();
currentBoxBarcode
=
currentBoxPos
.
getBarcode
();
}
}
String
errorMsg
=
notifyCurrentBarcodeToWms
(
barcode
,
currentLoc
,
stacker
);
String
errorMsg
=
notifyCurrentBarcodeToWms
(
barcode
,
currentLoc
,
""
);
//标记一下信息
//标记一下信息
currentBoxBarcode
.
updateExtraData
(
CommonUtil
.
outExpPrefix
+
posName
,
posName
);
currentBoxBarcode
.
updateExtraData
(
CommonUtil
.
outExpPrefix
+
posName
,
posName
);
currentBoxBarcode
.
removeFromSubCodes
(
barcode
);
currentBoxBarcode
.
removeFromSubCodes
(
barcode
);
...
@@ -1877,7 +1877,7 @@ public class CDeviceController {
...
@@ -1877,7 +1877,7 @@ public class CDeviceController {
,
barcode
.
getWarehouseCode
(),
orderItem
.
getBrand
(),
orderItem
.
getFace
(),
batchCode
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
,
barcode
.
getWarehouseCode
(),
orderItem
.
getBrand
(),
orderItem
.
getFace
(),
batchCode
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
//绑定线体
//绑定线体
String
targetLoc
=
order
.
getLoc
();
String
targetLoc
=
order
.
getLoc
();
if
(
StringUtils
.
isNotEmpty
(
targetLoc
)){
if
(
StringUtils
.
isNotEmpty
(
targetLoc
)
&&
StringUtils
.
isNotEmpty
(
stacker
)
){
if
(
targetLoc
.
endsWith
(
"BG"
))
{
if
(
targetLoc
.
endsWith
(
"BG"
))
{
log
.
info
(
barcode
.
getBarcode
()+
"自动绑定料串["
+
stacker
+
"]目的地:C2-3F-BG"
);
log
.
info
(
barcode
.
getBarcode
()+
"自动绑定料串["
+
stacker
+
"]目的地:C2-3F-BG"
);
MaterialLocUtil
.
updateStackerLoc
(
stacker
,
""
,
"C2-3F-BG"
,
1
,
orderItem
.
getOrderNo
(),
barcode
);
MaterialLocUtil
.
updateStackerLoc
(
stacker
,
""
,
"C2-3F-BG"
,
1
,
orderItem
.
getOrderNo
(),
barcode
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论