Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f17887c5
由
LN
编写于
2026-01-04 15:24:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
PN库存只显示数量>0的数据
1 个父辈
2841fbe8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
1 行删除
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialController.java
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
查看文件 @
f17887c
...
@@ -10,6 +10,8 @@ import com.neotel.smfcore.core.message.enums.MessageType;
...
@@ -10,6 +10,8 @@ import com.neotel.smfcore.core.message.enums.MessageType;
import
com.neotel.smfcore.core.message.service.manager.IMessageManager
;
import
com.neotel.smfcore.core.message.service.manager.IMessageManager
;
import
com.neotel.smfcore.core.message.service.po.Message
;
import
com.neotel.smfcore.core.message.service.po.Message
;
import
com.neotel.smfcore.core.order.util.OrderFileWatch
;
import
com.neotel.smfcore.core.order.util.OrderFileWatch
;
import
com.neotel.smfcore.custom.micron1053.api.APIMODE
;
import
com.neotel.smfcore.custom.micron1053.task.bean.dto.TaskDto
;
import
com.neotel.smfcore.security.service.manager.IMenuManager
;
import
com.neotel.smfcore.security.service.manager.IMenuManager
;
import
com.neotel.smfcore.security.service.manager.IRoleManager
;
import
com.neotel.smfcore.security.service.manager.IRoleManager
;
import
com.neotel.smfcore.security.service.manager.IUserManager
;
import
com.neotel.smfcore.security.service.manager.IUserManager
;
...
@@ -112,6 +114,27 @@ public class DataInitManager {
...
@@ -112,6 +114,27 @@ public class DataInitManager {
dataCache
.
getAllInventory
(
null
,
""
);
dataCache
.
getAllInventory
(
null
,
""
);
//未完成的dto改为非处理状态
String
[]
apiMode
=
new
String
[]{
APIMODE
.
PCBPRETASK
,
APIMODE
.
MCLPRETASK
,
APIMODE
.
LINEPREP
,
APIMODE
.
CTRLDISPATCH
,
APIMODE
.
OUTSIDESHELF
};
for
(
String
mode
:
apiMode
)
{
TaskDto
dto
=
new
TaskDto
();
String
key
=
Constants
.
CACHE_DISPATCH
+
mode
;
//先从缓存中获取数据
try
{
dto
=
dataCache
.
getCache
(
key
);
}
catch
(
Exception
ex
){
}
if
(
dto
!=
null
&&
dto
.
getApiProStatus
()==
1
){
log
.
info
(
"mode="
+
mode
+
",当前getApiProStatus=1,operationId="
+
dto
.
getOperationId
()+
",更改为0"
);
dto
.
setApiProStatus
(
0
);
dataCache
.
updateCache
(
key
,
dto
);
}
}
}
catch
(
Exception
exception
)
{
}
catch
(
Exception
exception
)
{
log
.
error
(
"初始化环境出错..."
+
exception
.
toString
(),
exception
);
log
.
error
(
"初始化环境出错..."
+
exception
.
toString
(),
exception
);
}
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialController.java
查看文件 @
f17887c
...
@@ -108,7 +108,7 @@ public class MaterialController {
...
@@ -108,7 +108,7 @@ public class MaterialController {
List
<
InventoryItemDto
>
resultList
=
new
ArrayList
<>();
List
<
InventoryItemDto
>
resultList
=
new
ArrayList
<>();
//过滤掉没有库存的
//过滤掉没有库存的
for
(
InventoryItemDto
inventoryItemDto
:
dtoList
)
{
for
(
InventoryItemDto
inventoryItemDto
:
dtoList
)
{
if
(
inventoryItemDto
.
getStockReel
()
>
0
)
{
if
(
inventoryItemDto
.
getStockReel
()
>
0
&&
inventoryItemDto
.
getStockCount
()>
0
)
{
resultList
.
add
(
inventoryItemDto
);
resultList
.
add
(
inventoryItemDto
);
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论