Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9a36ed5f
由
zshaohui
编写于
2023-02-21 14:47:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
内仓出入库报表提交
1 个父辈
4c40302a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
9 行删除
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
src/main/java/com/neotel/smfcore/core/storage/service/manager/impl/StoragePosManagerImpl.java
src/main/java/com/neotel/smfcore/custom/lizhen/innerBox/enums/ExtendType.java
src/main/java/com/neotel/smfcore/custom/lizhen/report/inner/InnerReportController.java
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
查看文件 @
9a36ed5
...
@@ -566,7 +566,10 @@ public class LiteOrderCache {
...
@@ -566,7 +566,10 @@ public class LiteOrderCache {
task
.
setSubSourceId
(
orderItem
.
getId
());
task
.
setSubSourceId
(
orderItem
.
getId
());
task
.
setSubSourceInfo
(
orderItem
.
getFeederInfo
());
task
.
setSubSourceInfo
(
orderItem
.
getFeederInfo
());
task
.
setType
(
OP
.
CHECKOUT
);
task
.
setType
(
OP
.
CHECKOUT
);
task
.
setExtendType
(
ExtendType
.
STORAGE_CHECKOUT
);
//智能仓储出库
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
SMD_XLR
}))
{
task
.
setExtendType
(
ExtendType
.
STORAGE_CHECKOUT
);
//智能仓储出库
}
task
.
setLightColor
(
nextColor
.
getRgb
());
task
.
setLightColor
(
nextColor
.
getRgb
());
task
.
setStatus
(
OP_STATUS
.
WAIT
.
name
());
task
.
setStatus
(
OP_STATUS
.
WAIT
.
name
());
task
.
setPartNumber
(
pos
.
getBarcode
().
getPartNumber
());
//料号
task
.
setPartNumber
(
pos
.
getBarcode
().
getPartNumber
());
//料号
...
@@ -801,13 +804,13 @@ public class LiteOrderCache {
...
@@ -801,13 +804,13 @@ public class LiteOrderCache {
//料仓信息
//料仓信息
List
<
String
>
availableStorageIds
=
new
ArrayList
<>();
List
<
String
>
availableStorageIds
=
new
ArrayList
<>();
String
virtualId
=
""
;
//
String virtualId = "";
for
(
Storage
storage
:
dataCache
.
getAllStorage
().
values
())
{
for
(
Storage
storage
:
dataCache
.
getAllStorage
().
values
())
{
if
(
storage
.
isVirtual
())
{
/*
if (storage.isVirtual()) {
virtualId = storage.getId();
virtualId = storage.getId();
}
else
{
} else {
*/
availableStorageIds
.
add
(
storage
.
getId
());
availableStorageIds
.
add
(
storage
.
getId
());
}
//
}
}
}
...
@@ -864,10 +867,11 @@ public class LiteOrderCache {
...
@@ -864,10 +867,11 @@ public class LiteOrderCache {
String
brand
=
orderItem
.
getBrand
();
//供应商
String
brand
=
orderItem
.
getBrand
();
//供应商
String
pn
=
orderItem
.
getPn
();
//料号
String
pn
=
orderItem
.
getPn
();
//料号
log
.
info
(
"查询库位时间开始"
);
log
.
info
(
"查询库位时间开始"
);
StoragePos
pos
=
storagePosManager
.
findPartNumberInStorages
(
Arrays
.
asList
(
virtualId
),
pn
,
excludeIds
,
checkoutType
,
warehouseCode
,
brand
,
false
);
/*
StoragePos pos = storagePosManager.findPartNumberInStorages(Arrays.asList(virtualId),pn, excludeIds, checkoutType, warehouseCode, brand,false);
if (pos == null){
if (pos == null){
pos = storagePosManager.findPartNumberInStorages(availableStorageIds, pn, excludeIds, checkoutType, warehouseCode, brand,true);
pos = storagePosManager.findPartNumberInStorages(availableStorageIds, pn, excludeIds, checkoutType, warehouseCode, brand,true);
}
}*/
StoragePos
pos
=
storagePosManager
.
findPartNumberInStorages
(
availableStorageIds
,
pn
,
excludeIds
,
checkoutType
,
warehouseCode
,
brand
,
true
);
if
(
pos
==
null
){
if
(
pos
==
null
){
pos
=
storagePosManager
.
findPartNumberInStorages
(
availableStorageIds
,
pn
,
excludeIds
,
checkoutType
,
warehouseCode
,
brand
,
false
);
pos
=
storagePosManager
.
findPartNumberInStorages
(
availableStorageIds
,
pn
,
excludeIds
,
checkoutType
,
warehouseCode
,
brand
,
false
);
}
}
...
...
src/main/java/com/neotel/smfcore/core/storage/service/manager/impl/StoragePosManagerImpl.java
查看文件 @
9a36ed5
...
@@ -353,7 +353,7 @@ public class StoragePosManagerImpl implements IStoragePosManager {
...
@@ -353,7 +353,7 @@ public class StoragePosManagerImpl implements IStoragePosManager {
c
.
and
(
"barcode.subCodeList.isOut"
).
is
(
isOut
);
c
.
and
(
"barcode.subCodeList.isOut"
).
is
(
isOut
);
}
}
//Sort sort = getSortByCheckOutType(checkOutType);
//Sort sort = getSortByCheckOutType(checkOutType);
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.subCodeList.createDate"
/*,"canCheckOutTime", "barcode.usedCount"*/
);
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.subCodeList.createDate"
,
"createDate"
/*,"canCheckOutTime", "barcode.usedCount"*/
);
Query
q
=
new
Query
(
c
);
Query
q
=
new
Query
(
c
);
q
.
with
(
sort
);
q
.
with
(
sort
);
StoragePos
pos
=
storagePosDao
.
findOne
(
q
);
StoragePos
pos
=
storagePosDao
.
findOne
(
q
);
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/innerBox/enums/ExtendType.java
查看文件 @
9a36ed5
...
@@ -38,4 +38,14 @@ public class ExtendType {
...
@@ -38,4 +38,14 @@ public class ExtendType {
* 清空库位
* 清空库位
*/
*/
public
final
static
int
CLEAR_POS
=
6
;
public
final
static
int
CLEAR_POS
=
6
;
/**
* 料架入库
*/
public
final
static
int
NLSHELF_PUTIN
=
7
;
/**
* 料架出库
*/
public
final
static
int
NLSHELF_CHECKOUT
=
8
;
}
}
src/main/java/com/neotel/smfcore/custom/lizhen/report/inner/InnerReportController.java
查看文件 @
9a36ed5
...
@@ -545,7 +545,7 @@ public class InnerReportController {
...
@@ -545,7 +545,7 @@ public class InnerReportController {
public
ResultBean
getInAndOutCount
(
ReportQueryCondition
queryCondition
)
{
public
ResultBean
getInAndOutCount
(
ReportQueryCondition
queryCondition
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
List
<
String
>
titleList
=
new
ArrayList
();
List
<
String
>
titleList
=
new
ArrayList
();
String
[]
title
=
{
"全部入库"
,
"全部出库"
,
"智能仓入库"
,
"智能仓出库"
,
"虚拟仓入库"
,
"虚拟仓出库"
,
"手动清空库位"
,
"手动喂料"
,
"手动
出库"
};
String
[]
title
=
{
"全部入库"
,
"全部出库"
,
"智能仓入库"
,
"智能仓出库"
,
"虚拟仓入库"
,
"虚拟仓出库"
,
"手动清空库位"
,
"手动喂料"
,
"手动出库"
,
"料架入库"
,
"料架
出库"
};
titleList
.
addAll
(
Arrays
.
asList
(
title
));
titleList
.
addAll
(
Arrays
.
asList
(
title
));
List
<
Integer
>
countList
=
new
ArrayList
();
List
<
Integer
>
countList
=
new
ArrayList
();
...
@@ -608,6 +608,21 @@ public class InnerReportController {
...
@@ -608,6 +608,21 @@ public class InnerReportController {
//手动出库
//手动出库
int
manualCheckOutCount
=
dataLogManager
.
getInOutData
(
startDate
,
endDate
,
OP
.
CHECKOUT
,
queryCondition
.
getPartNumber
(),
ExtendType
.
MANUAL_CHECKOUT
,
""
);
int
manualCheckOutCount
=
dataLogManager
.
getInOutData
(
startDate
,
endDate
,
OP
.
CHECKOUT
,
queryCondition
.
getPartNumber
(),
ExtendType
.
MANUAL_CHECKOUT
,
""
);
countList
.
add
(
manualCheckOutCount
);
countList
.
add
(
manualCheckOutCount
);
//料架入库
int
nlShelfPutInCount
=
inCount
-
storageInCount
-
virtualInCount
;
countList
.
add
(
nlShelfPutInCount
);
log
.
info
(
inCount
+
""
);
log
.
info
((
storageInCount
+
virtualInCount
)
+
""
);
log
.
info
(
outCount
+
""
);
log
.
info
((
storageOutCount
+
virtualOutCount
+
clearCount
+
feedingCount
+
manualCheckOutCount
)
+
""
);
//料架出库
int
nlShelfCheckOutCount
=
outCount
-
storageOutCount
-
virtualOutCount
-
clearCount
-
feedingCount
-
manualCheckOutCount
;
countList
.
add
(
nlShelfCheckOutCount
);
//resultMap.put("manualCheckOutCount",manualCheckOutCount);
//resultMap.put("manualCheckOutCount",manualCheckOutCount);
resultMap
.
put
(
"title"
,
titleList
);
resultMap
.
put
(
"title"
,
titleList
);
resultMap
.
put
(
"count"
,
countList
);
resultMap
.
put
(
"count"
,
countList
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论