Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 10cb1e1f
由
zshaohui
编写于
2025-07-04 09:17:57 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.库存报表优化
2.增加料串获取目的地接口
1 个父辈
6b2c7deb
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
51 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/storage/service/manager/impl/StoragePosManagerImpl.java
src/main/java/com/neotel/smfcore/core/system/rest/bean/query/TaskQueryCondition.java
src/main/java/com/neotel/smfcore/custom/lizhen/report/outer/OuterReportController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/java/com/neotel/smfcore/core/storage/service/manager/impl/StoragePosManagerImpl.java
查看文件 @
10cb1e1
...
...
@@ -862,7 +862,7 @@ public class StoragePosManagerImpl implements IStoragePosManager {
Criteria
c
=
Criteria
.
where
(
"barcode"
).
exists
(
true
)
.
and
(
"enabled"
).
is
(
true
);
//可用;
Query
query
=
new
Query
(
c
);
query
.
fields
().
include
(
"posName"
).
include
(
"storageId"
).
include
(
"barcode.barcode"
).
include
(
"barcode.subCodeList.posName"
);
query
.
fields
().
include
(
"posName"
).
include
(
"storageId"
).
include
(
"barcode.barcode"
).
include
(
"barcode.subCodeList.posName"
)
.
include
(
"barcode.subCodeList.barcode"
)
;
return
storagePosDao
.
findByQuery
(
query
);
}
...
...
src/main/java/com/neotel/smfcore/core/system/rest/bean/query/TaskQueryCondition.java
查看文件 @
10cb1e1
...
...
@@ -35,6 +35,9 @@ public class TaskQueryCondition {
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
BetweenData
<
Date
>
updateDate
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
EQ
,
propName
=
"sourceName"
)
private
String
sourceName
;
@QueryCondition
@ApiModelProperty
(
"來源ID"
)
private
String
sourceId
;
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/report/outer/OuterReportController.java
查看文件 @
10cb1e1
...
...
@@ -508,14 +508,16 @@ public class OuterReportController {
}
}*/
//获取隔口信息
if
(
countMap
.
get
(
posName
)
==
null
)
{
if
(
pos
==
null
){
pos
=
new
StoragePos
();
}
Barcode
pidBarcode
=
pos
.
getBarcode
();
if
(
pidBarcode
==
null
)
{
if
(
pidBarcode
==
null
)
{
pidBarcode
=
barcodeManager
.
findByBarcode
(
newPosName
);
}
if
(
countMap
.
get
(
posName
)
==
null
)
{
if
(
pidBarcode
!=
null
)
{
List
<
Barcode
>
subCodeList
=
pidBarcode
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
())
{
...
...
@@ -558,8 +560,8 @@ public class OuterReportController {
dto
.
setPutInDate
(
barcode
.
getPutInDate
());
dto
.
setCreator
(
barcode
.
getCreator
());
dto
.
setBarcode
(
barcode
.
getBarcode
());
dto
.
setSeq
(
barcode
.
getSeq
()
);
int
seq
=
getSeq
(
pidBarcode
,
barcode
);
dto
.
setSeq
(
seq
);
long
putInTime
=
barcode
.
getPutInTime
();
if
(
putInTime
!=
-
1
){
long
inStockDays
=
DateUtil
.
betweenDay
(
new
Date
(
putInTime
),
new
Date
(),
false
);
...
...
@@ -1021,6 +1023,30 @@ public class OuterReportController {
});
}
private
int
getSeq
(
Barcode
pidBarcode
,
Barcode
barcode
)
{
int
seq
=
barcode
.
getSeq
();
if
(
pidBarcode
!=
null
)
{
List
<
Barcode
>
newSubCodeList
=
new
ArrayList
<>();
List
<
Barcode
>
subCodeList
=
pidBarcode
.
getSubCodeList
();
for
(
Barcode
subCode
:
subCodeList
)
{
if
(
barcode
.
getPosName
().
equals
(
subCode
.
getPosName
()))
{
newSubCodeList
.
add
(
subCode
);
}
}
if
(
newSubCodeList
!=
null
&&
!
newSubCodeList
.
isEmpty
())
{
newSubCodeList
=
newSubCodeList
.
stream
().
sorted
(
Comparator
.
comparing
(
Barcode:
:
getSeq
)).
collect
(
Collectors
.
toList
());
for
(
int
i
=
0
;
i
<
newSubCodeList
.
size
();
i
++)
{
Barcode
subCode
=
newSubCodeList
.
get
(
i
);
if
(
barcode
.
getBarcode
().
equals
(
subCode
.
getBarcode
()))
{
seq
=
(
i
+
1
);
break
;
}
}
}
}
return
seq
;
}
private
List
<
LiteOrderItem
>
getLackItems
(
Collection
<
LiteOrder
>
liteOrders
,
ReportQueryCondition
queryCondition
)
{
List
<
LiteOrderItem
>
items
=
new
ArrayList
<>();
//开始比较库存
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
10cb1e1
...
...
@@ -1653,4 +1653,21 @@ public class CDeviceController {
return
ResultBean
.
newOkResult
(
full
);
}
@ApiOperation
(
"根据料串编号,获取目的地信息"
)
@RequestMapping
(
"/getStackerDestination"
)
@AnonymousAccess
public
ResultBean
getStackerDestination
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
log
.
info
(
"获取料串信息:"
+
JSON
.
toJSONString
(
paramMap
));
String
stacker
=
paramMap
.
get
(
"stacker"
);
MaterialLoc
materialLoc
=
MaterialLocUtil
.
getStacker
(
stacker
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"stacker"
,
stacker
);
String
destination
=
materialLoc
.
getDestination
();
if
(
StringUtils
.
isEmpty
(
destination
))
{
destination
=
""
;
}
resultMap
.
put
(
"destination"
,
destination
);
return
ResultBean
.
newOkResult
(
resultMap
);
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论