Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ab67cd70
由
张少辉
编写于
2026-04-27 11:22:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.优化odn抛送
1 个父辈
d7e71a98
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
31 行增加
和
6 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/util/StationCacheUtil.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/bean/dto/AutoDispatchDto.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/AutoDispatchInfoController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/AutoDispatchInventoryController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/OdnCheckOutNewController.java
src/main/resources/config/application-prod.yml
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
ab67cd7
...
...
@@ -284,6 +284,8 @@ public class Barcode extends BasePo implements Serializable {
private
String
odn
;
private
String
sto
;
/**
* 是否是锡膏
*/
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/util/StationCacheUtil.java
查看文件 @
ab67cd7
...
...
@@ -41,7 +41,7 @@ public class StationCacheUtil {
log
.
info
(
"开始工位缓存信息"
);
for
(
int
i
=
1
;
i
<=
5
;
i
++)
{
String
stationName
=
"s"
+
i
;
Station
station
=
dataCache
.
getCache
(
stationName
);
Station
station
=
new
Station
(
);
if
(
station
==
null
){
station
=
new
Station
();
station
.
setName
(
stationName
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
查看文件 @
ab67cd7
...
...
@@ -1223,7 +1223,7 @@ public class LuxsanApi extends DefaultSmfApiListener {
log
.
info
(
"autoSto接口返回结果为:"
+
resultStr
);
AutoStoResult
result
=
JSONObject
.
parseObject
(
resultStr
,
AutoStoResult
.
class
);
return
result
;
}
catch
(
Api
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"autoSto请求失败:"
+
e
.
getMessage
());
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
e
.
getMessage
()});
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/bean/dto/AutoDispatchDto.java
查看文件 @
ab67cd7
...
...
@@ -14,4 +14,5 @@ public class AutoDispatchDto {
private
String
posName
;
private
String
modelFamily
;
private
int
amount
;
private
String
sto
;
}
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/AutoDispatchInfoController.java
查看文件 @
ab67cd7
...
...
@@ -112,6 +112,7 @@ public class AutoDispatchInfoController {
barcode
.
setCurrentRequestId
(
""
);
barcode
.
setOdn
(
""
);
barcode
.
setMemo
(
autoStoResult
.
getMSGTX
());
barcode
.
setSto
(
""
);
barcodeManager
.
save
(
barcode
);
pos
.
setBarcode
(
barcode
);
storagePosManager
.
save
(
pos
);
...
...
@@ -126,6 +127,7 @@ public class AutoDispatchInfoController {
if
(
barcode
!=
null
)
{
if
(
key_id
.
equals
(
barcode
.
getCurrentRequestId
()))
{
barcode
.
setOdn
(
data
);
barcode
.
setSto
(
autoStoResult
.
getDETAIL
());
barcodeManager
.
save
(
barcode
);
pos
.
setBarcode
(
barcode
);
storagePosManager
.
save
(
pos
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/AutoDispatchInventoryController.java
查看文件 @
ab67cd7
...
...
@@ -48,7 +48,7 @@ public class AutoDispatchInventoryController {
public
ResultBean
getDispathSetting
()
{
Boolean
dispath
=
dataCache
.
getCache
(
Constants
.
CACHE_AutoDispatchInventory
);
if
(
dispath
==
null
){
dispath
=
tru
e
;
dispath
=
fals
e
;
}
return
ResultBean
.
newOkResult
(
dispath
);
}
...
...
@@ -58,7 +58,7 @@ public class AutoDispatchInventoryController {
@AnonymousAccess
public
ResultBean
openOrClosdDispath
(
Boolean
dispath
)
{
if
(
dispath
==
null
)
{
dispath
=
tru
e
;
dispath
=
fals
e
;
}
dataCache
.
updateCache
(
Constants
.
CACHE_AutoDispatchInventory
,
dispath
);
return
ResultBean
.
newOkResult
(
""
);
...
...
@@ -73,7 +73,7 @@ public class AutoDispatchInventoryController {
Query
q
=
QueryHelp
.
getQuery
(
criteria
);
Criteria
c
=
Criteria
.
where
(
"barcode"
).
exists
(
true
)
.
and
(
"enabled"
).
is
(
true
);
q
.
addCriteria
(
c
).
fields
().
include
(
"id"
,
"posName"
,
"barcode.barcode"
,
"barcode.amount"
,
"barcode.palletId"
,
"barcode.partNumber"
,
"barcode.warehouseCode"
,
"barcode.currentRequestId"
,
"barcode.odn"
,
"barcode.modelFamily"
);
q
.
addCriteria
(
c
).
fields
().
include
(
"id"
,
"posName"
,
"barcode.barcode"
,
"barcode.amount"
,
"barcode.palletId"
,
"barcode.partNumber"
,
"barcode.warehouseCode"
,
"barcode.currentRequestId"
,
"barcode.odn"
,
"barcode.modelFamily"
,
"barcode.sto"
);
//查询所有的,把hold的排除
Map
<
String
,
FetchHoldInfoRequest
>
fetchHoldInfoRequestMap
=
new
HashMap
<>();
...
...
@@ -128,6 +128,7 @@ public class AutoDispatchInventoryController {
dto
.
setPosName
(
pos
.
getPosName
());
dto
.
setModelFamily
(
barcode
.
getModelFamily
());
dto
.
setAmount
(
barcode
.
getAmount
());
dto
.
setSto
(
barcode
.
getSto
());
autoDispatchDtoList
.
add
(
dto
);
}
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/wipstor/controller/OdnCheckOutNewController.java
查看文件 @
ab67cd7
...
...
@@ -65,6 +65,25 @@ public class OdnCheckOutNewController {
return
ResultBean
.
newOkResult
(
FetchShipmentInfoDto
.
convertFetchShipmentInfoDto
(
resultList
));
}
@ApiOperation
(
"根据odn查询已绑定的料箱信息"
)
@RequestMapping
(
"/getOdnBindBox"
)
@AnonymousAccess
public
ResultBean
getOdnBindBox
(
String
odn
)
{
List
<
String
>
palletIdList
=
new
ArrayList
<>();
Query
query
=
new
Query
();
Criteria
criteria
=
Criteria
.
where
(
"barcode.odn"
).
is
(
odn
);
query
.
addCriteria
(
criteria
).
fields
().
include
(
"barcode.palletId"
,
"barcode.barcode"
);
List
<
StoragePos
>
storagePosList
=
storagePosManager
.
findByQuery
(
query
);
if
(
storagePosList
!=
null
&&
!
storagePosList
.
isEmpty
())
{
for
(
StoragePos
pos
:
storagePosList
)
{
palletIdList
.
add
(
pos
.
getBarcode
().
getPalletId
());
}
}
return
ResultBean
.
newOkResult
(
palletIdList
);
}
@ApiOperation
(
"获取odn要出库的箱子"
)
@RequestMapping
(
"/getOdnCheckOutBox"
)
@AnonymousAccess
...
...
src/main/resources/config/application-prod.yml
查看文件 @
ab67cd7
...
...
@@ -20,7 +20,7 @@ spring:
backup-mongodb
:
host
:
10.68.27.128
# 主机地址
port
:
27017
# 端口
database
:
wipsmf
# 数据库
database
:
8001
# 数据库
username
:
neotel
password
:
neotel
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论