Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c9e6fd04
由
zshaohui
编写于
2024-09-03 17:46:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.增加展示3F缺料
1 个父辈
a59128fd
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
82 行增加
和
4 行删除
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/MaterialShortageController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
src/main/resources/config/application.yml
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
查看文件 @
c9e6fd0
...
...
@@ -202,6 +202,9 @@ public class DataInitManager {
addNewFunctionMenu
(
8
,
raw
,
"returnInventoryAndPutShelves"
,
"退货上架"
,
"returnInventoryAndPutShelves"
,
"returnInventoryAndPutShelves/index"
,
"returnInPut"
,
functionMenuMap
);
addNewFunctionMenu
(
9
,
raw
,
"materialShortage"
,
"3F缺料"
,
"materialShortage"
,
"materialShortage/index"
,
"materialNull"
,
functionMenuMap
);
Menu
manual
=
Menu
.
CreatePMenu
(
"手动出入库"
,
5
,
"manual"
,
2
,
"manual"
,
raw
);
//手动入库
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
c9e6fd0
...
...
@@ -578,6 +578,7 @@ public class CDeviceController {
String
face
=
""
;
String
brand
=
""
;
String
batchCode
=
""
;
String
targetLoc
=
""
;
LiteOrderItem
orderItem
=
liteOrderItemManager
.
get
(
orderItemId
);
if
(
orderItem
!=
null
){
orderNo
=
orderItem
.
getOrderNo
();
...
...
@@ -590,6 +591,7 @@ public class CDeviceController {
}
LiteOrder
order
=
liteOrderManager
.
get
(
orderItem
.
getOrderId
());
if
(
order
!=
null
){
targetLoc
=
order
.
getLoc
();
checkType
=
order
.
getCheckType
();
}
}
...
...
@@ -599,6 +601,17 @@ public class CDeviceController {
try
{
LuxsanApi
.
pickingIssue
(
new
PickingIssueRequest
(
CommonUtil
.
plantCode
,
orderNo
,
pkItemId
,
barcode
.
getPartNumber
()
,
barcode
.
getWarehouseCode
(),
brand
,
face
,
batchCode
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
//同时 更新下 缓存目的地
if
(
StringUtils
.
isNotEmpty
(
targetLoc
)){
if
(
targetLoc
.
endsWith
(
"BG"
)){
log
.
info
(
"自动绑定料串["
+
materialStr
+
"]目的地:C2-3F-BG"
);
MaterialLocUtil
.
updateStackerLoc
(
materialStr
,
""
,
"C2-3F-BG"
);
}
else
if
(
targetLoc
.
endsWith
(
"CG"
)){
log
.
info
(
"自动绑定料串["
+
materialStr
+
"]目的地:C2-3F-CG"
);
MaterialLocUtil
.
updateStackerLoc
(
materialStr
,
""
,
"C2-3F-CG"
);
}
}
}
catch
(
Exception
e
)
{
log
.
info
(
barcode
.
getBarcode
()
+
"PK发料失败:"
+
e
.
getMessage
()
+
",隔口:"
+
barcode
.
getPosName
()
+
"需要清空出库信息"
);
...
...
@@ -794,8 +807,9 @@ public class CDeviceController {
callAgvTask
(
stackerId
,
stackerBarcode
);
}
catch
(
Exception
e
)
{
log
.
info
(
"入料机构获取可用料格:"
+
stackerId
+
"结果异常:"
+
e
.
getMessage
());
e
.
printStackTrace
();
//log.info("入料机构获取可用料格:"+stackerId+"结果异常:"+e.getMessage());
log
.
info
(
"入料机构获取可用料格:"
+
stackerId
+
"结果异常:"
,
e
);
log
.
info
(
e
.
getMessage
());
return
ResultBean
.
newErrorResult
(-
1
,
""
,
stackerId
+
"获取可用料格失败:"
+
e
.
getMessage
());
}
isProcess
.
set
(
false
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/MaterialShortageController.java
0 → 100644
查看文件 @
c9e6fd0
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
factory_c
.
rawstor
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.utils.DateUtil
;
import
com.neotel.smfcore.common.utils.HttpHelper
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.core.order.service.po.LiteOrderItem
;
import
com.neotel.smfcore.security.annotation.AnonymousAccess
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.*
;
import
java.util.logging.SimpleFormatter
;
@Api
(
tags
=
"展示的3楼缺料信息"
)
@RestController
@RequestMapping
(
"/materialShortage"
)
public
class
MaterialShortageController
{
@Value
(
"${lizhen.shortage.bg}"
)
private
String
bgShortageUrl
=
""
;
@Value
(
"${lizhen.shortage.cg}"
)
private
String
cgShortageUrl
=
""
;
@ApiOperation
(
"缺料详情"
)
@RequestMapping
(
"/detail"
)
@AnonymousAccess
public
ResultBean
detail
()
{
List
<
LiteOrderItem
>
bgItemList
=
new
ArrayList
<>();
List
<
LiteOrderItem
>
cgItemList
=
new
ArrayList
<>();
//获取BG/CG的缺料信息
bgItemList
=
getShortageDetail
(
bgShortageUrl
);
cgItemList
=
getShortageDetail
(
cgShortageUrl
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"BG"
,
bgItemList
);
resultMap
.
put
(
"CG"
,
cgItemList
);
resultMap
.
put
(
"updateTime"
,
DateUtil
.
toDateString
(
new
Date
(),
"yyyy-MM-dd HH:mm:ss"
));
return
ResultBean
.
newOkResult
(
resultMap
);
}
private
List
<
LiteOrderItem
>
getShortageDetail
(
String
url
)
{
String
result
=
HttpHelper
.
sendGet
(
url
);
if
(
StringUtils
.
isEmpty
(
result
)){
return
new
ArrayList
<>();
}
return
JSONObject
.
parseArray
(
result
,
LiteOrderItem
.
class
);
}
}
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
查看文件 @
c9e6fd0
...
...
@@ -572,7 +572,7 @@ public class BoxHandleUtil {
task
.
setNum
(
opQty
);
task
.
setType
(
opType
);
task
.
setPosName
(
barcode
.
getPosName
());
task
.
setOperator
(
SecurityUtils
.
get
Current
Username
());
task
.
setOperator
(
SecurityUtils
.
get
Login
Username
());
task
.
setDateCode
(
barcode
.
getDateCode
());
task
.
setBatchInfo
(
barcode
.
getBatch
());
task
.
setProvider
(
barcode
.
getProvider
());
...
...
src/main/resources/config/application.yml
查看文件 @
c9e6fd0
...
...
@@ -46,6 +46,10 @@ lizhen:
manual
:
url
:
http://10.68.27.85/smf-core/wcs/manualTower
cgUrl
:
http://10.68.27.79/smf-core/wcs/manualTower
shortage
:
bg
:
http://10.68.27.85/smf-core/api/orders/shortageDetail
cg
:
http://10.68.27.79/smf-core/api/orders/shortageDetail
#
#转发地址
...
...
@@ -108,5 +112,5 @@ app:
menu
:
show
:
show
:
materialShortage
hide
:
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论