Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d618b12f
由
zshaohui
编写于
2024-09-28 18:56:20 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.pk挑料 排除入库任务
2.barcode 在库问题修改
1 个父辈
69a85b13
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
src/main/resources/config/application.yml
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
d618b12
...
@@ -412,7 +412,7 @@ public class Barcode extends BasePo implements Serializable {
...
@@ -412,7 +412,7 @@ public class Barcode extends BasePo implements Serializable {
}
}
this
.
putInDate
=
new
Date
(
putInTime
);
this
.
putInDate
=
new
Date
(
putInTime
);
status
=
BARCODE_STATUS
.
IN_STORE
;
//
status = BARCODE_STATUS.IN_STORE;
updateExpTime
();
updateExpTime
();
...
...
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
查看文件 @
d618b12
...
@@ -699,6 +699,24 @@ public class LiteOrderCache {
...
@@ -699,6 +699,24 @@ public class LiteOrderCache {
return
operatingPosIds
;
return
operatingPosIds
;
}
}
public
Collection
<
String
>
excludePosIds
()
{
//排除掉正在执行的仓位
List
<
DataLog
>
allTasks
=
taskService
.
getAllTasks
();
Collection
<
String
>
operatingPosIds
=
new
HashSet
<>();
for
(
DataLog
task
:
allTasks
)
{
//if(task.isCheckOutTask()){
if
(!
task
.
isFinished
()
&&
!
task
.
isCancel
())
{
String
posId
=
task
.
getPosId
();
if
(!
Strings
.
isNullOrEmpty
(
posId
))
{
operatingPosIds
.
add
(
task
.
getPosId
());
}
//}
}
}
return
operatingPosIds
;
}
private
DataLog
newTask
(
StoragePos
pos
)
{
private
DataLog
newTask
(
StoragePos
pos
)
{
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
Storage
storage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
...
@@ -980,7 +998,7 @@ public class LiteOrderCache {
...
@@ -980,7 +998,7 @@ public class LiteOrderCache {
//List<StoragePos> allStoragePosList = new ArrayList();
//List<StoragePos> allStoragePosList = new ArrayList();
//6.排除的仓位信息
//6.排除的仓位信息
Collection
excludeIdList
=
exclude
Out
PosIds
();
Collection
excludeIdList
=
excludePosIds
();
//7.判断是否指定的itemId
//7.判断是否指定的itemId
/*if (orderItemIds != null && !orderItemIds.isEmpty()) {
/*if (orderItemIds != null && !orderItemIds.isEmpty()) {
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
d618b12
...
@@ -10,6 +10,7 @@ import com.neotel.smfcore.common.utils.ReelLockPosUtil;
...
@@ -10,6 +10,7 @@ import com.neotel.smfcore.common.utils.ReelLockPosUtil;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.core.api.SmfApi
;
import
com.neotel.smfcore.core.api.SmfApi
;
import
com.neotel.smfcore.core.barcode.enums.BARCODE_STATUS
;
import
com.neotel.smfcore.core.barcode.enums.COMPONENT_TYPE
;
import
com.neotel.smfcore.core.barcode.enums.COMPONENT_TYPE
;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
...
@@ -1083,6 +1084,7 @@ public class TaskService {
...
@@ -1083,6 +1084,7 @@ public class TaskService {
barcode
.
setInOpor
(
opUser
);
barcode
.
setInOpor
(
opUser
);
barcode
.
setCheckOutDate
(
null
,
""
);
barcode
.
setCheckOutDate
(
null
,
""
);
barcode
.
setPosName
(
task
.
getPosName
());
barcode
.
setPosName
(
task
.
getPosName
());
barcode
.
setStatus
(
BARCODE_STATUS
.
IN_STORE
);
barcodeManager
.
save
(
barcode
);
barcodeManager
.
save
(
barcode
);
...
...
src/main/resources/config/application.yml
查看文件 @
d618b12
...
@@ -33,7 +33,7 @@ lizhen:
...
@@ -33,7 +33,7 @@ lizhen:
url
:
#http://172.30.88.19:8001/smf-core/api/Mes/machineCallMaterial
url
:
#http://172.30.88.19:8001/smf-core/api/Mes/machineCallMaterial
F3
:
F3
:
name
:
3F
name
:
3F
line
:
C03-3FSMT-13,C02-3FSMT-12,C02-3FSMT-18,C02-3FSMT-19,C03-1FSMT-12,C02-3FSMT-11,C03-1FSMT-11,C02-3FSMT-17,C02-3FSMT-14,C03-1FSMT-12,C02-3FSMT-13,C02-3FSMT-16,C02-3FSMT-15
line
:
C03-3FSMT-13,C02-3FSMT-12,C02-3FSMT-18,C02-3FSMT-19,C03-1FSMT-12,C02-3FSMT-11,C03-1FSMT-11,C02-3FSMT-17,C02-3FSMT-14,C03-1FSMT-12,C02-3FSMT-13,C02-3FSMT-16,C02-3FSMT-15
,C02-3FSMT-19
url
:
http://10.68.27.85/smf-core/wcs/machineCallMaterial
url
:
http://10.68.27.85/smf-core/wcs/machineCallMaterial
F5
:
F5
:
name
:
3FCG
name
:
3FCG
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论