Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a85b7e8f
由
zshaohui
编写于
2024-08-24 09:19:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.优化功能提交
1 个父辈
abe451b6
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
22 行删除
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.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/manual/ManualLineController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
src/main/resources/config/application-prod.yml
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.java
查看文件 @
a85b7e8
...
...
@@ -425,7 +425,7 @@ public class OutLineController {
pidBarcode
.
setReelAmount
(
pidBarcode
.
getReelAmount
()
-
1
);
pidBarcode
.
setAmount
(
pidBarcode
.
getAmount
()
-
amount
);
barcodeManager
.
save
(
pidBarcode
);
pidBarcode
.
updateExtraData
(
barcode
.
getPosName
(),
null
);
int
extendType
=
StringUtils
.
isNotBlank
(
barcode
.
getOrderItemId
())
?
ExtendType
.
VIRTUAL_PICKING_DETAIL
:
ExtendType
.
VIRTUAL_CHECKOUT
;
generateTask
(
barcode
,
opStatus
,
amount
,
opType
,
orderItemId
,
extendType
,
false
);
...
...
@@ -472,7 +472,7 @@ public class OutLineController {
manualCheckOut
(
barcode
);
barcodeByOut
=
barcodeManager
.
save
(
barcodeByOut
);
pidBarcode
.
updateExtraData
(
barcode
.
getPosName
(),
null
);
int
extendType
=
StringUtils
.
isNotBlank
(
barcode
.
getOrderItemId
())
?
ExtendType
.
VIRTUAL_PICKING_DETAIL
:
ExtendType
.
VIRTUAL_CHECKOUT
;
generateTask
(
barcode
,
opStatus
,
amount
,
opType
,
orderItemId
,
extendType
,
false
);
...
...
@@ -492,6 +492,7 @@ public class OutLineController {
}
}
}
pidBarcode
=
barcodeManager
.
save
(
pidBarcode
);
StoragePos
pos
=
BoxHandleUtil
.
locOnePos
(
pidBarcode
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
a85b7e8
...
...
@@ -148,13 +148,15 @@ public class ManualGrPutInController {
Barcode
barcode
=
codeResolve
.
resolveCode
(
boxStr
);
if
(
barcode
!=
null
){
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
if
(
pos
!=
null
){
barcode
=
pos
.
getBarcode
();
barcode
.
setStatus
(
BARCODE_STATUS
.
OUT_NORMAL
);
//设置成 不在库
barcodeManager
.
save
(
barcode
);
pos
.
setBarcode
(
barcode
);
storagePosManager
.
save
(
pos
);
if
(
barcode
.
getStatus
()
==
BARCODE_STATUS
.
IN_STORE
)
{
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
if
(
pos
!=
null
)
{
barcode
=
pos
.
getBarcode
();
barcode
.
setStatus
(
BARCODE_STATUS
.
OUT_NORMAL
);
//设置成 不在库
barcodeManager
.
save
(
barcode
);
pos
.
setBarcode
(
barcode
);
storagePosManager
.
save
(
pos
);
}
}
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualLineController.java
查看文件 @
a85b7e8
...
...
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -185,4 +186,20 @@ public class ManualLineController {
DataLog
dataLog
=
taskService
.
addPutInTaskToExecute
(
storage
,
boxBarcode
,
pos
,
lineNo
+
"_out"
);
return
ResultBean
.
newOkResult
(
""
);
}
@ApiOperation
(
"获取料串目的地接口"
)
@RequestMapping
(
"/material/api/getDestination"
)
@AnonymousAccess
public
ResultBean
getDestination
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
String
materialStr
=
paramMap
.
get
(
"materialStr"
);
String
loc
=
paramMap
.
get
(
"loc"
);
log
.
info
(
"获取料串目的地,料串为:"
+
materialStr
+
",位置为:"
+
loc
);
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"destination"
,
"C2-3F-BG"
);
resultMap
.
put
(
"materialStr"
,
materialStr
);
return
ResultBean
.
newOkResult
(
resultMap
);
}
}
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
查看文件 @
a85b7e8
...
...
@@ -356,6 +356,12 @@ public class BoxHandleUtil {
public
static
StoragePos
locOnePos
(
Barcode
boxBarcode
)
{
//判断信息是否在已经在库位中(出入库只改变料箱位置状态,不从StoragePos表中清除)
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
boxBarcode
.
getBarcode
());
if
(
pos
!=
null
)
{
return
pos
;
}
//默认只差第一个隔口
String
barcode
=
boxBarcode
.
getBarcode
();
String
binCodeStr
=
barcode
+
"-01"
;
...
...
@@ -371,13 +377,6 @@ public class BoxHandleUtil {
boxBarcode
.
setWarehouseCode
(
warehouseCode
);
//判断信息是否在已经在库位中(出入库只改变料箱位置状态,不从StoragePos表中清除)
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
boxBarcode
.
getBarcode
());
if
(
pos
!=
null
)
{
return
pos
;
}
List
<
String
>
cidList
=
new
ArrayList
<>();
List
<
Storage
>
storageList
=
new
ArrayList
<>();
for
(
Storage
storage
:
dataCache
.
getAllStorage
().
values
())
{
...
...
@@ -437,11 +436,12 @@ public class BoxHandleUtil {
if
(
barcode
!=
null
)
{
boxStr
=
barcode
.
getBarcode
();
String
endStr
=
code
.
substring
(
code
.
length
()
-
1
);
//得到是A、B面
/*if (boxSideMap.get(boxStr) != null) {
endStr = boxSideMap.get(boxStr);
} else {
if
(
"A"
.
equals
(
endStr
)
||
"B"
.
equals
(
endStr
)){
boxSideMap
.
put
(
boxStr
,
endStr
);
}*/
}
if
(
boxSideMap
.
get
(
boxStr
)
!=
null
){
endStr
=
boxSideMap
.
get
(
boxStr
);
}
List
<
Barcode
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
==
null
){
subCodeList
=
new
ArrayList
<>();
...
...
src/main/resources/config/application-prod.yml
查看文件 @
a85b7e8
...
...
@@ -11,8 +11,8 @@ login:
spring
:
data
:
mongodb
:
host
:
127.0.0.1
#
host: 10.68.27.88 # 主机地址
#
host: 127.0.0.1
host
:
10.68.27.88
# 主机地址
port
:
27017
# 端口
database
:
smf
#原材料仓数据库
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论