Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5f3615fb
由
zshaohui
编写于
2024-08-20 18:04:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.UID出库 接口拆分
2.手动入库 bug修改,库位名信息 3.看板 完成/取消 的任务 不展示
1 个父辈
3fa505cd
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
31 行增加
和
11 行删除
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/BarcodeDto.java
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/station/StationController.java
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/BarcodeDto.java
查看文件 @
5f3615f
...
...
@@ -163,6 +163,9 @@ public class BarcodeDto implements Serializable {
@Transient
private
List
<
String
>
relationCodes
;
private
boolean
needExpand
=
false
;
/**
* 是否是锡膏
*/
...
...
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
查看文件 @
5f3615f
...
...
@@ -133,6 +133,11 @@ public class BoxKanbanController {
List
<
BoxTaskDto
>
dtos
=
new
ArrayList
<>();
for
(
DataLog
datalog
:
allTasks
)
{
if
(
datalog
.
isFinished
()
||
datalog
.
isCancel
()){
continue
;
}
//判断类型
if
(
criteria
.
getType
()
!=
null
&&
(!
criteria
.
getType
().
equals
(
datalog
.
getType
())))
{
continue
;
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
5f3615f
...
...
@@ -503,21 +503,30 @@ public class StoragePosController {
barcodeDto
.
setFirstPutInDate
(
barcodeDto
.
getCreateDate
());
//storagePosDto.setBarcode(barcode);
}
Barcode
barcode
=
barcodeManager
.
findByBarcode
(
barcodeDto
.
getBarcode
());
if
(
ObjectUtil
.
isNotNull
(
barcode
))
{
barcodeDto
.
setLabelId
(
barcode
.
getLabelId
());
barcodeDto
.
setPosName
(
storagePosDto
.
getPosName
());
List
<
BarcodeDto
>
subCodeList
=
barcodeDto
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
()){
barcodeDto
.
setNeedExpand
(
true
);
barcodeDto
.
setSubCodeList
(
new
ArrayList
<>());
}
}
}
// for (StoragePosDto storagePosDto : StoragePosDtos) {
// BarcodeDto barcode = storagePosDto.getBarcode();
// List<BarcodeDto> subCodes = Lists.newArrayList(barcode);
// barcode.setSubCodeList(subCodes);
// storagePosDto.setBarcode(barcode);
// }
return
new
PageData
(
StoragePosDtos
,
pages
.
getTotalElements
());
}
@ApiOperation
(
"根据料箱号查询barcode信息"
)
@GetMapping
(
"/getBarcodeInfo"
)
public
BarcodeDto
getBarcodeInfo
(
String
boxStr
)
{
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
boxStr
);
if
(
pos
!=
null
)
{
StoragePosDto
dto
=
storagePosMapper
.
toDto
(
pos
);
BarcodeDto
barcode
=
dto
.
getBarcode
();
return
barcode
;
}
return
null
;
}
@ApiOperation
(
"根据条件查找出库"
)
@GetMapping
(
"/out"
)
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
5f3615f
...
...
@@ -256,6 +256,7 @@ public class TaskService {
public
void
addTaskToExecute
(
DataLog
taskToExecute
)
throws
ValidateException
{
Collection
<
DataLog
>
tasks
=
taskMap
.
values
();
for
(
DataLog
task
:
tasks
)
{
if
(!
task
.
isFinished
()
&&
!
task
.
isCancel
())
{
String
barcode
=
taskToExecute
.
getBarcode
();
String
posName
=
taskToExecute
.
getPosName
();
if
(
task
.
getType
()
==
taskToExecute
.
getType
())
{
...
...
@@ -268,6 +269,7 @@ public class TaskService {
}
}
}
}
updateQueueTask
(
taskToExecute
);
}
...
...
@@ -325,6 +327,7 @@ public class TaskService {
//从正在执行和等待列表中移除
removeQueueTask
(
task
);
task
.
setStatus
(
OP_STATUS
.
CANCEL
.
name
());
task
.
setOperator
(
SecurityUtils
.
getLoginUsername
());
task
.
setUpdateDate
(
new
Date
());
updateFinishedTask
(
task
);
log
.
info
(
"任务["
+
task
.
getId
()
+
"] posName["
+
task
.
getPosName
()
+
"] Reel Id["
+
task
.
getBarcode
()
+
"]取消成功"
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
5f3615f
...
...
@@ -208,7 +208,7 @@ public class ManualGrPutInController {
int
w
=
7
;
int
h
=
8
;
Component
component
=
componentManager
.
findByPartNumberAndProvider
(
noDbBarcode
.
getPartNumber
(),
noDbBarcode
.
getProvider
())
;
Component
component
=
null
;
if
(
component
==
null
)
{
BrandQtyResult
result
=
LuxsanApi
.
brandQtyUrl
(
new
BrandQtyRequest
(
noDbBarcode
.
getPartNumber
(),
noDbBarcode
.
getProvider
()));
if
(
result
==
null
)
{
...
...
@@ -391,7 +391,7 @@ public class ManualGrPutInController {
if
(
storage
.
isVirtual
()){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"料箱:"
+
boxStr
+
"所属的库位为:"
+
pos
.
getPosName
()+
",属于虚拟仓,请在虚拟仓页面进行操作"
);
}
boxBarcode
.
setPosName
(
pos
.
getPosName
());
pos
.
setBarcode
(
boxBarcode
);
storagePosManager
.
save
(
pos
);
log
.
info
(
boxStr
+
"入库到智能仓,分配的储位为:"
+
pos
.
getPosName
());
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/station/StationController.java
0 → 100644
查看文件 @
5f3615f
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论