Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 85cc036c
由
zshaohui
编写于
2024-12-30 15:55:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.量测功能修改
1 个父辈
06b2cfa4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
12 行删除
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
src/main/java/com/neotel/smfcore/custom/lizhen/LizhenApi.java
src/main/resources/config/application-21088prod.yml
src/main/resources/config/application-21088test.yml
src/main/java/com/neotel/smfcore/core/device/rest/DeviceController.java
查看文件 @
85cc036
...
@@ -197,16 +197,6 @@ public class DeviceController {
...
@@ -197,16 +197,6 @@ public class DeviceController {
throw
new
ValidateException
(
""
,
"335S00571/155S00462的料号不允许入到智能仓"
);
throw
new
ValidateException
(
""
,
"335S00571/155S00462的料号不允许入到智能仓"
);
}
}
//判断是否过期
barcode
=
lizhenApi
.
getInDate
(
barcode
);
//判断物料是否过期
Date
expireDate
=
barcode
.
getExpireDate
();
if
(
expireDate
!=
null
)
{
if
(
System
.
currentTimeMillis
()
>
expireDate
.
getTime
())
{
throw
new
ValidateException
(
"smfcore.error.barcode.expired"
,
"物料已过期,无法入库."
);
}
}
//判断虚拟仓有没有存在,如果有,把虚拟仓库位置空
//判断虚拟仓有没有存在,如果有,把虚拟仓库位置空
StoragePos
storagePos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
StoragePos
storagePos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
if
(
storagePos
!=
null
)
{
if
(
storagePos
!=
null
)
{
...
@@ -238,6 +228,17 @@ public class DeviceController {
...
@@ -238,6 +228,17 @@ public class DeviceController {
barcode
=
barcodeCanPutIn
;
barcode
=
barcodeCanPutIn
;
}
}
//判断是否过期
barcode
=
lizhenApi
.
getInDate
(
barcode
);
//判断物料是否过期
Date
expireDate
=
barcode
.
getExpireDate
();
if
(
expireDate
!=
null
)
{
if
(
System
.
currentTimeMillis
()
>
expireDate
.
getTime
())
{
throw
new
ValidateException
(
"smfcore.error.barcode.expired"
,
"物料已过期,无法入库."
);
}
}
Barcode
barcodeApi
=
lizhenApi
.
barcodeInfo
(
barcode
);
Barcode
barcodeApi
=
lizhenApi
.
barcodeInfo
(
barcode
);
//如果是L开头的去量测
//如果是L开头的去量测
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/LizhenApi.java
查看文件 @
85cc036
...
@@ -258,6 +258,7 @@ public class LizhenApi extends DefaultSmfApiListener {
...
@@ -258,6 +258,7 @@ public class LizhenApi extends DefaultSmfApiListener {
//保存禁用料记录
//保存禁用料记录
Barcode
barcodeOri
=
barcodeManager
.
findByBarcode
(
barcode
.
getBarcode
());
Barcode
barcodeOri
=
barcodeManager
.
findByBarcode
(
barcode
.
getBarcode
());
if
(
barcodeOri
!=
null
){
if
(
barcodeOri
!=
null
){
barcodeOri
.
setExpireDate
(
barcode
.
getExpireDate
());
barcodeOri
.
setDisableMsg
(
resultStr
);
barcodeOri
.
setDisableMsg
(
resultStr
);
barcode
=
barcodeManager
.
save
(
barcodeOri
);
barcode
=
barcodeManager
.
save
(
barcodeOri
);
StoragePos
storagePos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
StoragePos
storagePos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
...
...
src/main/resources/config/application-21088prod.yml
查看文件 @
85cc036
...
@@ -22,6 +22,6 @@ api:
...
@@ -22,6 +22,6 @@ api:
#获取有限期
#获取有限期
getInDateUrl
:
http://10.68.30.22:8082/api/mes/GetInDate
getInDateUrl
:
http://10.68.30.22:8082/api/mes/GetInDate
#散料是否量测
#散料是否量测
checkReelMeasure
Url
:
http://10.68.25.75:8001/Sct/CheckReelMeasure
checkReelMeasure
:
http://10.68.25.75:8001/Sct/CheckReelMeasure
#获取尺寸信息
#获取尺寸信息
brandQtyUrl
:
http://10.68.30.22:8082/api/wcs/brandQty
brandQtyUrl
:
http://10.68.30.22:8082/api/wcs/brandQty
\ No newline at end of file
\ No newline at end of file
src/main/resources/config/application-21088test.yml
查看文件 @
85cc036
...
@@ -23,6 +23,6 @@ api:
...
@@ -23,6 +23,6 @@ api:
#获取有限期
#获取有限期
getInDateUrl
:
http://10.42.220.171:8082/api/mes/GetInDate
getInDateUrl
:
http://10.42.220.171:8082/api/mes/GetInDate
#散料是否量测
#散料是否量测
checkReelMeasure
Url
:
http://10.68.25.75:8001/Sct/CheckReelMeasure
checkReelMeasure
:
http://10.68.25.75:8001/Sct/CheckReelMeasure
#获取尺寸信息
#获取尺寸信息
brandQtyUrl
:
http://10.42.220.171:8082/api/mlb/brandQty
brandQtyUrl
:
http://10.42.220.171:8082/api/mlb/brandQty
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论