Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fe8546e1
由
zshaohui
编写于
2024-07-18 10:21:05 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
单据缺料时 通知wms
1 个父辈
b11b766b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
36 行增加
和
0 行删除
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
查看文件 @
fe8546e
...
@@ -38,11 +38,15 @@ import com.neotel.smfcore.custom.lizhen.innerBox.util.StorageExportUtil;
...
@@ -38,11 +38,15 @@ import com.neotel.smfcore.custom.lizhen.innerBox.util.StorageExportUtil;
import
com.neotel.smfcore.custom.lizhen.third.maicheng.api.MaiZhengApi
;
import
com.neotel.smfcore.custom.lizhen.third.maicheng.api.MaiZhengApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.FetchHoldInfoRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.FetchHoldInfoRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.TicketPickLabelList
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.TicketPickRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.FetchHoldInfoResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.FetchHoldInfoResult
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.CommonUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.CommonUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.DisableBarcodeUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.DisableBarcodeUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.enums.LiteorderCheckType
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.enums.LiteorderCheckType
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.enums.TaskCurrentLoc
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.enums.TaskCurrentLoc
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.util.BinCacheUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.util.BoxHandleUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.wipstor.util.TaskLocUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.wipstor.util.TaskLocUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -437,6 +441,38 @@ public class LiteOrderCache {
...
@@ -437,6 +441,38 @@ public class LiteOrderCache {
}
}
}
}
finishedOrderTasks
(
order
);
finishedOrderTasks
(
order
);
//如果是单据领料的话,一盘都没有出的,通知wms,缺料
if
(
LiteorderCheckType
.
TICKET_CHECKOUT
==
order
.
getCheckType
())
{
List
<
LiteOrderItem
>
orderItems
=
order
.
getOrderItems
();
for
(
LiteOrderItem
orderItem
:
orderItems
)
{
if
(
orderItem
.
getTotalOutNum
()
<=
0
)
{
log
.
info
(
"行号:"
+
orderItem
.
getTicketItem
()+
",单据号:"
+
orderItem
.
getTicketCode
()+
",发料数量为0,通知wms缺料"
);
try
{
String
binCode
=
""
;
Map
<
String
,
String
>
binCacheMap
=
BinCacheUtil
.
binCodeCacheMap
(
orderItem
.
getSrcWarehouse
());
for
(
String
code
:
binCacheMap
.
keySet
())
{
binCode
=
code
;
break
;
}
TicketPickRequest
request
=
new
TicketPickRequest
();
request
.
setBIN_CODE
(
binCode
);
request
.
setLABEL_LIST
(
new
ArrayList
<>());
request
.
setPLANT_CODE
(
CommonUtil
.
plantCode
);
request
.
setQTY
(
0
);
request
.
setTICKET_CODE
(
orderItem
.
getTicketCode
());
request
.
setTICKET_ITEM
(
orderItem
.
getTicketItem
());
LuxsanApi
.
ticketPick
(
request
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
info
(
"行号:"
+
orderItem
.
getTicketItem
()+
",单据号:"
+
orderItem
.
getTicketCode
()+
",通知缺料失败:"
+
e
.
getMessage
());
}
}
}
}
}
}
liteOrderManager
.
save
(
order
);
liteOrderManager
.
save
(
order
);
liteOrderMap
.
put
(
orderNo
,
order
);
liteOrderMap
.
put
(
orderNo
,
order
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论