Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 05db7f97
由
zshaohui
编写于
2024-07-24 15:01:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.手动入库时 如果是虚拟仓的库位,提示用户去虚拟仓页面操作
2.uid出库 增加在库/不在库查询
1 个父辈
95deb08c
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
78 行增加
和
1 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
05db7f9
...
...
@@ -451,6 +451,18 @@ public class StoragePosController {
criteria
.
setPartNumber
(
null
);
}
if
(
StringUtils
.
isEmpty
(
criteria
.
getBoxStatus
())){
criteria
.
setBoxStatusList
(
Arrays
.
asList
(-
1
,
0
,
1
,
2
));
}
else
{
if
(
criteria
.
getBoxStatus
().
equals
(
0
)){
criteria
.
setBoxStatusList
(
Arrays
.
asList
(
0
));
}
else
{
criteria
.
setBoxStatusList
(
Arrays
.
asList
(-
1
,
1
,
2
));
}
criteria
.
setBoxStatus
(
""
);
}
Query
query
=
QueryHelp
.
getQuery
(
criteria
);
Criteria
baseCriteria
=
Criteria
.
where
(
"used"
).
is
(
true
).
and
(
"barcode"
).
exists
(
true
);
...
...
@@ -689,12 +701,52 @@ public class StoragePosController {
@Override
public
List
<
List
<
Object
>>
getPageData
(
Query
query
,
Pageable
pageable
)
{
List
<
List
<
Object
>>
dataList
=
new
ArrayList
<>();
DateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
List
<
StoragePos
>
storagePos
=
storagePosManager
.
findByQuery
(
query
,
pageable
);
for
(
StoragePos
pos
:
storagePos
)
{
Barcode
barcode
=
pos
.
getBarcode
();
List
<
Object
>
boxData
=
new
ArrayList
<>();
boxData
.
add
(
barcode
.
getBarcode
());
boxData
.
add
(
""
);
boxData
.
add
(
""
);
boxData
.
add
(
""
);
boxData
.
add
(
""
);
boxData
.
add
(
""
);
boxData
.
add
(
""
);
boxData
.
add
(
""
);
long
boxPutInTime
=
barcode
.
getPutInTime
();
if
(
boxPutInTime
!=
-
1
){
boxData
.
add
(
dateFormat
.
format
(
boxPutInTime
));
}
else
{
boxData
.
add
(
""
);
}
Date
boxPutInDate
=
barcode
.
getPutInDate
();
if
(
boxPutInDate
!=
null
){
boxData
.
add
(
dateFormat
.
format
(
boxPutInDate
));
}
else
{
boxData
.
add
(
""
);
}
boxData
.
add
(
""
);
boxData
.
add
(
pos
.
getPosName
());
int
boxStatus
=
barcode
.
getStatus
();
if
(
boxStatus
==
BARCODE_STATUS
.
IN_STORE
){
boxData
.
add
(
"在库"
);
}
else
{
boxData
.
add
(
""
);
}
boxData
.
add
(
""
);
dataList
.
add
(
boxData
);
List
<
Barcode
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
()){
for
(
Barcode
subCode
:
subCodeList
)
{
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
查看文件 @
05db7f9
...
...
@@ -103,6 +103,12 @@ public class StoragePosFindCriteria {
@QueryCondition
(
propName
=
"barcode.barcode"
)
private
String
box
;
private
String
boxStatus
;
@ApiModelProperty
(
"料箱状态,是否在库"
)
@QueryCondition
(
type
=
QueryCondition
.
Type
.
IN
,
propName
=
"barcode.status"
)
private
List
<
Integer
>
boxStatusList
;
public
int
getComponentType
(){
int
componentType
=
getType
();
if
(
componentType
!=
-
1
)
{
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.java
查看文件 @
05db7f9
...
...
@@ -673,6 +673,7 @@ public class OutLineController {
}
}
}
if
(
dataLog
!=
null
){
if
(!
dataLog
.
isOutFromPos
()){
taskService
.
moveTaskToFinished
(
dataLog
);
...
...
@@ -690,6 +691,17 @@ public class OutLineController {
barcodeManager
.
save
(
posBarcode
);
pos
.
setBarcode
(
posBarcode
);
storagePosManager
.
save
(
pos
);
//如果出库任务为空的时候,生成一个完成的出库任务
if
(
dataLog
==
null
){
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
DataLog
checkOutDataLog
=
new
DataLog
(
storage
,
barcode
,
pos
);
checkOutDataLog
.
setType
(
OP
.
CHECKOUT
);
checkOutDataLog
.
setStatus
(
OP_STATUS
.
FINISHED
.
name
());
checkOutDataLog
.
setOperator
(
SecurityUtils
.
getLoginUsername
()+
"人工页面扫描出库"
);
taskService
.
updateFinishedTask
(
checkOutDataLog
);
}
}
//判断是否有出库任务,如果有就完成
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
05db7f9
...
...
@@ -368,10 +368,17 @@ public class ManualGrPutInController {
if
(
pos
==
null
)
{
return
ResultBean
.
newErrorResult
(-
1
,
""
,
boxStr
+
"未找到可用库位"
);
}
//如果是虚拟仓的库位,提示出来
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
if
(
storage
.
isVirtual
()){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"料箱:"
+
boxStr
+
"所属的库位为:"
+
pos
.
getPosName
()+
",属于虚拟仓,请在虚拟仓页面进行操作"
);
}
pos
.
setBarcode
(
boxBarcode
);
storagePosManager
.
save
(
pos
);
log
.
info
(
boxStr
+
"入库到智能仓,分配的储位为:"
+
pos
.
getPosName
());
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
DataLog
dataLog
=
taskService
.
addPutInTaskToExecute
(
storage
,
boxBarcode
,
pos
,
TaskCurrentLoc
.
Manual_DischargeHole
);
return
ResultBean
.
newOkResult
(
""
);
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论