Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1a544c4e
由
张少辉
编写于
2026-03-17 14:47:55 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master'
2 个父辈
a2600699
8e65d489
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/solder/rest/SpBoxController.java
src/main/java/com/neotel/smfcore/custom/sp/SpApi.java
src/main/java/com/neotel/smfcore/core/solder/rest/SpBoxController.java
查看文件 @
1a544c4
...
...
@@ -173,7 +173,7 @@ public class SpBoxController {
}
}
log
.
info
(
"outSolder 锡膏定时出库,storageId="
+
storageId
+
",共需要出"
+
num
+
",查找到F库位="
+
fNum
+
",B库位="
+
bNum
);
log
.
info
(
"outSolder 锡膏定时出库,storageId="
+
storageId
+
",
pn="
+
pn
+
",
共需要出"
+
num
+
",查找到F库位="
+
fNum
+
",B库位="
+
bNum
);
setOutDate
(
solderPosList
,
outDate
);
}
return
ResultBean
.
newOkResult
(
""
);
...
...
src/main/java/com/neotel/smfcore/custom/sp/SpApi.java
查看文件 @
1a544c4
...
...
@@ -29,6 +29,11 @@ import java.util.*;
@Service
@Slf4j
public
class
SpApi
extends
BaseSmfApiListener
{
//api:
// name: sp
// codeResolveUrl: http://172.30.11.214:8036/SmartRefrigerator/warehousing
// inNotifyUrl: http://172.30.11.214:8036/SmartRefrigerator/warehousingStatus
// outNotifyUrl: http://172.30.11.214:8036/SmartRefrigerator/exitWarehouseStatus
@Autowired
IBarcodeManager
barcodeManager
;
...
...
@@ -109,8 +114,24 @@ public class SpApi extends BaseSmfApiListener {
}
String
produceDateStr
=
getData
(
dataMap
,
"produceDate"
);
if
(
Strings
.
isNotBlank
(
produceDateStr
))
{
Date
produceDate
=
DateUtil
.
toDate
(
produceDateStr
,
"yyyy-MM-dd HH:mm:ss"
);
barcode
.
setProduceDate
(
produceDate
);
Date
produceDate
=
null
;
try
{
produceDate
=
DateUtil
.
toDate
(
produceDateStr
,
"yyyy-MM-dd HH:mm:ss"
);
}
catch
(
Exception
ex
)
{
log
.
error
(
"生成日期["
+
produceDateStr
+
"]转换出错:"
+
ex
.
toString
());
}
if
(
produceDate
==
null
)
{
try
{
produceDate
=
DateUtil
.
toDate
(
produceDateStr
,
"yyyyMMdd"
);
}
catch
(
Exception
ex
)
{
log
.
error
(
"生成日期["
+
produceDateStr
+
"]转换出错:"
+
ex
.
toString
());
}
}
if
(
produceDate
!=
null
)
{
log
.
info
(
"保存生成日期:["
+
produceDate
.
toString
()+
"]"
);
barcode
.
setProduceDate
(
produceDate
);
}
}
String
expireDateStr
=
getData
(
dataMap
,
"expireDate"
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论