Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e93d765e
由
LN
编写于
2022-05-23 18:24:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库单增加凭证号
1 个父辈
87ee10ab
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
28 行增加
和
6 行删除
src/main/java/com/neotel/smfcore/core/hik/rest/SingleInController.java
src/main/java/com/neotel/smfcore/core/inList/rest/InListController.java
src/main/java/com/neotel/smfcore/core/inList/rest/bean/dto/InListDto.java
src/main/java/com/neotel/smfcore/core/inList/service/po/InList.java
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
src/main/java/com/neotel/smfcore/core/system/rest/bean/dto/TaskDto.java
src/main/java/com/neotel/smfcore/core/hik/rest/SingleInController.java
查看文件 @
e93d765
...
...
@@ -15,6 +15,7 @@ import com.neotel.smfcore.core.device.enums.OP;
import
com.neotel.smfcore.core.device.enums.OP_STATUS
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.hik.bean.ShelfPosInfo
;
import
com.neotel.smfcore.core.inList.service.po.InList
;
import
com.neotel.smfcore.core.inList.util.InListCache
;
import
com.neotel.smfcore.core.kanban.rest.bean.dto.BoxStatusDto
;
import
com.neotel.smfcore.core.storage.bean.UsageItem
;
...
...
@@ -281,7 +282,9 @@ public class SingleInController {
dataLog
.
setType
(
OP
.
PUT_IN
);
dataLog
.
setInType
(
inType
);
if
(
inType
.
equals
(
5
)){
InList
inList
=
inListCache
.
getInList
(
docName
);
dataLog
.
setSourceName
(
docName
);
dataLog
.
setSubSourceInfo
(
inList
.
getDocNo
());
}
barcode
.
setPutInTime
(
System
.
currentTimeMillis
());
...
...
src/main/java/com/neotel/smfcore/core/inList/rest/InListController.java
查看文件 @
e93d765
...
...
@@ -103,7 +103,8 @@ public class InListController {
if
(
inListItems
.
size
()
<=
0
)
{
continue
;
}
InList
inList
=
new
InList
(
name
,
INLIST_STATUS
.
WAIT
,-
1
,
inListItems
);
String
docNo
=
""
;
InList
inList
=
new
InList
(
name
,
docNo
,
INLIST_STATUS
.
WAIT
,-
1
,
inListItems
);
InList
dbList
=
inListManager
.
findByName
(
name
);
if
(
dbList
!=
null
)
{
...
...
@@ -266,14 +267,22 @@ public class InListController {
//新建入库单
List
<
InListItem
>
inListItems
=
new
ArrayList
<>();
String
docNo
=
""
;
for
(
TransferOrderInfo
obj
:
inOrderLists
)
{
InListItem
item
=
obj
.
creatInListItem
();
item
.
setName
(
name
);
inListItems
.
add
(
item
);
if
(
ObjectUtil
.
isEmpty
(
docNo
)){
docNo
=
obj
.
getDocNo
();
}
}
if
(
name
.
equals
(
docNo
)){
inList
=
new
InList
(
name
,
""
,
INLIST_STATUS
.
WAIT
,
type
,
inListItems
);
}
else
{
inList
=
new
InList
(
name
,
docNo
,
INLIST_STATUS
.
WAIT
,
type
,
inListItems
);
}
inList
=
new
InList
(
name
,
INLIST_STATUS
.
WAIT
,
type
,
inListItems
);
log
.
info
(
"获取到转储单,新增加入库单:"
+
inList
.
getName
()
+
",共"
+
inListItems
.
size
()
+
"条工单详情"
);
log
.
info
(
"获取到转储单,新增加入库单:"
+
inList
.
getName
()
+
","
+
docNo
+
",共"
+
inListItems
.
size
()
+
"条工单详情"
);
inList
=
inListManager
.
createWithItems
(
inList
);
inListCache
.
addInListToMap
(
inList
);
return
ResultBean
.
newOkResult
(
name
);
...
...
src/main/java/com/neotel/smfcore/core/inList/rest/bean/dto/InListDto.java
查看文件 @
e93d765
...
...
@@ -19,6 +19,9 @@ public class InListDto implements Serializable {
@ApiModelProperty
(
value
=
"入库单名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"凭证号"
)
private
String
docNo
;
@ApiModelProperty
(
value
=
"入库单状态,0=等待,1=异常,2=OK"
)
private
int
status
=
INLIST_STATUS
.
WAIT
;
@ApiModelProperty
(
value
=
"创建时间"
)
...
...
src/main/java/com/neotel/smfcore/core/inList/service/po/InList.java
查看文件 @
e93d765
...
...
@@ -19,6 +19,11 @@ public class InList extends BasePo implements Serializable {
* 入库单名称
*/
private
String
name
;
/**
*凭证号 交货单,agv任务单类型回的是物料凭证的单号
*/
private
String
docNo
;
/**
* 入库单状态,0=等待,1=异常,2=OK
*/
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
查看文件 @
e93d765
...
...
@@ -56,15 +56,18 @@ public class StoragePosFindCriteria {
@QueryCondition
(
blurry
=
"barcode.providerNumber"
)
private
String
providerNumber
;
@ApiModelProperty
(
"物料编号"
)
@QueryCondition
(
blurry
=
"barcode.partNumber"
)
private
String
partNumber
;
@QueryCondition
(
blurry
=
"barcode.memo"
)
private
String
memo
;
@QueryCondition
(
propName
=
"barcode.lockId"
)
private
String
lockId
;
@ApiModelProperty
(
"批次"
)
@QueryCondition
(
blurry
=
"barcode.batch"
)
private
String
batch
;
@ApiModelProperty
(
"供应商"
)
@QueryCondition
(
blurry
=
"barcode.provider"
)
private
String
provider
;
@QueryCondition
(
blurry
=
"barcode.otherField1"
)
...
...
src/main/java/com/neotel/smfcore/core/system/rest/bean/dto/TaskDto.java
查看文件 @
e93d765
...
...
@@ -98,9 +98,8 @@ public class TaskDto implements Serializable {
* 子来源 ID(单个站位)
*/
private
String
subSourceId
;
/**
* 子来源名称
*/
@ApiModelProperty
(
"子来源名称 来源二"
)
private
String
subSourceInfo
;
/**
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论