Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 652927be
由
zshaohui
编写于
2023-12-15 09:40:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
如果有正在执行的任务,跳过createMA验证
1 个父辈
44842ca9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
23 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/barcode/utils/CodeResolve.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpApiListener.java
src/main/java/com/neotel/smfcore/core/barcode/utils/CodeResolve.java
查看文件 @
652927b
...
...
@@ -215,12 +215,12 @@ public class CodeResolve {
needUpdate
=
true
;
}
Date
expireDate
=
barcodeFromRule
.
getExpireDate
();
/*
Date expireDate = barcodeFromRule.getExpireDate();
if (expireDate != null){
barcode.setExpireDate(expireDate);
log.info("重新设置"+codeBeanFromRule.getCodeStr()+"的过期日期");
needUpdate = true;
}
}
*/
if
(
needUpdate
){
try
{
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
查看文件 @
652927b
...
...
@@ -507,12 +507,12 @@ public class Micron20031Api {
e
.
printStackTrace
();
}
/*
Object expiredDateObj = resultMap.get("expiredDate");
Object
expiredDateObj
=
resultMap
.
get
(
"expiredDate"
);
if
(
expiredDateObj
!=
null
)
{
Date expiredDate = DateUtil.toDate(expiredDateObj.toString(), "MM-dd-yyyy");
Date
expiredDate
=
DateUtil
.
toDate
(
expiredDateObj
.
toString
(),
"MM-dd-yyyy
HH:mm:ss
"
);
log
.
info
(
"重新设置镁光的过期时间为:"
+
expiredDate
);
barcode
.
setExpireDate
(
expiredDate
);
}
*/
}
return
barcode
;
}
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpApiListener.java
查看文件 @
652927b
...
...
@@ -11,10 +11,13 @@ import com.neotel.smfcore.core.inList.service.po.InList;
import
com.neotel.smfcore.core.inList.service.po.InListItem
;
import
com.neotel.smfcore.core.inList.util.InListCache
;
import
com.neotel.smfcore.core.storage.service.po.Storage
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -24,6 +27,11 @@ public class MicronSpApiListener extends BaseSmfApiListener {
@Autowired
private
InListCache
inListCache
;
@Autowired
private
TaskService
taskService
;
@Override
public
boolean
isForThisApi
(
String
apiName
)
{
if
(
Micron20031Api
.
isEnable
())
{
...
...
@@ -35,6 +43,16 @@ public class MicronSpApiListener extends BaseSmfApiListener {
@Override
public
Barcode
canPutInAfterResolve
(
String
inCheckUrl
,
CodeValidateParam
params
,
Barcode
barcode
)
throws
ValidateException
{
//判断有没有正在执行的入库操作,如果有 直接返回
Collection
<
DataLog
>
queueTasks
=
taskService
.
getQueueTasks
();
for
(
DataLog
queueTask
:
queueTasks
)
{
if
(
barcode
.
getBarcode
().
equals
(
queueTask
.
getBarcode
()))
{
if
(
queueTask
.
isPutInTask
())
{
return
barcode
;
}
}
}
List
<
Storage
>
ids
=
params
.
getStorageList
();
if
(
ids
==
null
||
ids
.
size
()<=
0
){
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论