Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 60d9ee1f
由
LN
编写于
2026-01-08 15:26:27 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master'
2 个父辈
ff4e6d38
69d90fc2
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
93 行增加
和
0 行删除
src/main/java/com/neotel/smfcore/core/system/service/manager/IDataLogManager.java
src/main/java/com/neotel/smfcore/core/system/service/manager/impl/DataLogManagerImpl.java
src/main/java/com/neotel/smfcore/custom/jiahe1671/JiaHe1671DeviceController.java
src/main/resources/messages.properties
src/main/resources/messages_de_DE.properties
src/main/resources/messages_en_US.properties
src/main/resources/messages_fr_FR.properties
src/main/resources/messages_ja_JP.properties
src/main/resources/messages_zh_CN.properties
src/main/resources/messages_zh_TW.properties
src/main/java/com/neotel/smfcore/core/system/service/manager/IDataLogManager.java
查看文件 @
60d9ee1
...
...
@@ -17,4 +17,6 @@ public interface IDataLogManager extends IBaseManager<DataLog> {
List
<
SpDailyLog
>
getSpDailyLogs
(
Date
start
,
Date
end
,
String
inoutType
);
List
<
SpDailyLog
>
getSpPnSummaryLists
(
String
inoutType
);
DataLog
findOne
(
Query
query
);
}
src/main/java/com/neotel/smfcore/core/system/service/manager/impl/DataLogManagerImpl.java
查看文件 @
60d9ee1
...
...
@@ -83,4 +83,9 @@ public class DataLogManagerImpl implements IDataLogManager {
return
dataLogDao
.
getSpPnSummaryLists
(
inoutType
);
}
@Override
public
DataLog
findOne
(
Query
query
)
{
return
dataLogDao
.
findOne
(
query
);
}
}
src/main/java/com/neotel/smfcore/custom/jiahe1671/JiaHe1671DeviceController.java
0 → 100644
查看文件 @
60d9ee1
package
com
.
neotel
.
smfcore
.
custom
.
jiahe1671
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.utils.CodeResolve
;
import
com.neotel.smfcore.core.order.service.manager.ILiteOrderItemManager
;
import
com.neotel.smfcore.core.order.service.po.LiteOrderItem
;
import
com.neotel.smfcore.core.system.service.manager.IDataLogManager
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.security.annotation.AnonymousAccess
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.mongodb.core.query.Criteria
;
import
org.springframework.data.mongodb.core.query.Query
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.HashMap
;
import
java.util.Map
;
@Api
(
tags
=
"客户端对接"
)
@Slf4j
@RestController
@RequestMapping
(
"/1671device"
)
public
class
JiaHe1671DeviceController
{
@Autowired
private
CodeResolve
codeResolve
;
@Autowired
private
IDataLogManager
dataLogManager
;
@Autowired
private
ILiteOrderItemManager
liteOrderItemManager
;
@ApiOperation
(
"根据barcode获取最后一条出库任务对应的站位信息"
)
@RequestMapping
(
"/getLastestOrderTask"
)
@ResponseBody
@AnonymousAccess
public
ResultBean
getLastestOrderTask
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
String
code
=
paramMap
.
get
(
"code"
);
log
.
info
(
"收到获取站位信息:"
+
code
);
Barcode
barcode
=
null
;
try
{
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
}
catch
(
ValidateException
e
)
{
return
ResultBean
.
newErrorResult
(-
1
,
e
.
getMsgKey
(),
e
.
getMessage
(),
e
.
getMsgParam
());
}
//开始寻找最后一条任务
Criteria
c
=
Criteria
.
where
(
"barcode"
).
is
(
barcode
.
getBarcode
());
Query
query
=
new
Query
(
c
);
query
.
with
(
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createDate"
));
DataLog
dataLog
=
dataLogManager
.
findOne
(
query
);
if
(
dataLog
!=
null
&&
dataLog
.
isCheckOutTask
()){
String
subSourceId
=
dataLog
.
getSubSourceId
();
if
(
StringUtils
.
isNotBlank
(
subSourceId
)){
LiteOrderItem
item
=
liteOrderItemManager
.
get
(
subSourceId
);
if
(
item
!=
null
){
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"slotNum"
,
item
.
getSlotNum
());
resultMap
.
put
(
"feederInfo"
,
item
.
getFeederInfo
());
resultMap
.
put
(
"barcode"
,
barcode
.
getBarcode
());
resultMap
.
put
(
"partNumber"
,
barcode
.
getPartNumber
());
resultMap
.
put
(
"w"
,
barcode
.
getPlateSize
());
resultMap
.
put
(
"h"
,
barcode
.
getHeight
());
return
ResultBean
.
newOkResult
(
resultMap
);
}
}
}
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.barcode.notFindFeerder"
,
"未找到[{0}]站位信息"
,
new
String
[]{
barcode
.
getBarcode
()});
}
}
src/main/resources/messages.properties
查看文件 @
60d9ee1
...
...
@@ -461,4 +461,5 @@ smfcore.reelPosMove.paramerror=\u53C2\u6570\u4E0D\u5B8C\u6574
smfcore.reelPosMove.posIsNull
=
\u
5E93
\u
4F4D[{1}]
\u
4E3A
\u
7A7A
smfcore.liteOrder.exist
=
\u9700\u
6C42
\u5355
{0}
\u
5DF2
\u
5B58
\u5728
smfcore.reelPosMove.barcodeError
=
\u
5E93
\u
4F4D{0}
\u6761\u7801\u
4E3A{1}
\u
FF0C
\u
4E0E
\u
79FB
\u
5E93
\u6761\u7801
{1}
\u
4E0D
\u
4E00
\u
81F4
smfcore.barcode.notFindFeerder
=
\u
672A
\u
627E
\u5230
[{0}]
\u
7AD9
\u
4F4D
\u
4FE1
\u
606F
src/main/resources/messages_de_DE.properties
查看文件 @
60d9ee1
...
...
@@ -451,3 +451,4 @@ smfcore.reelPosMove.paramerror=Incomplete Parameter
smfcore.reelPosMove.posIsNull
=
Lagerort [{1}] ist leer
smfcore.liteOrder.exist
=
Bedarfsauftrag {0} existiert bereits
smfcore.reelPosMove.barcodeError
=
Der Barcode des Lagerorts {0} ist {1}, nicht identisch mit dem Umzugscode {1}
smfcore.barcode.notFindFeerder
=
Stationsinformation [{0}] nicht gefunden
\ No newline at end of file
src/main/resources/messages_en_US.properties
查看文件 @
60d9ee1
...
...
@@ -452,3 +452,4 @@ smfcore.reelPosMove.paramerror=Incomplete parameters
smfcore.reelPosMove.posIsNull
=
Location [{1}] is empty
smfcore.liteOrder.exist
=
Requirement order {0} already exists
smfcore.reelPosMove.barcodeError
=
Location {0} barcode is {1}, inconsistent with the transfer barcode {1}
smfcore.barcode.notFindFeerder
=
Station information [{0}] not found
\ No newline at end of file
src/main/resources/messages_fr_FR.properties
查看文件 @
60d9ee1
...
...
@@ -451,3 +451,4 @@ smfcore.reelPosMove.paramerror=Param\u00E8tres incomplets
smfcore.reelPosMove.posIsNull
=
L'emplacement [{1}] est vide
smfcore.liteOrder.exist
=
Le bon de commande {0} existe d
\u
00E9j
\u
00E0
smfcore.reelPosMove.barcodeError
=
Le code-barres de l'emplacement {0} est {1}, incompatible avec le code-barres de transfert {1}
smfcore.barcode.notFindFeerder
=
Informations de station [{0}] non trouv
\u
00E9es
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
60d9ee1
...
...
@@ -448,3 +448,4 @@ smfcore.reelPosMove.paramerror=\u30D1\u30E9\u30E1\u30FC\u30BF\u304C\u4E0D\u5B8C\
smfcore.reelPosMove.posIsNull
=
\u
5EAB
\u
4F4D [{1}]
\u
304C
\u
7A7A
\u3067\u3059
smfcore.liteOrder.exist
=
\u8981\u
6C42
\u5358
{0}
\u
306F
\u
65E2
\u
306B
\u
5B58
\u5728\u3057\u
307E
\u3059
smfcore.reelPosMove.barcodeError
=
\u
5EAB
\u
4F4D {0}
\u
306E
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9
\u
306F {1}
\u3067\u3001\u
79FB
\u
5EAB
\u
30D0
\u
30FC
\u
30B3
\u
30FC
\u
30C9 {1}
\u3068\u
4E0D
\u
4E00
\u
81F4
\u3067\u3059
smfcore.barcode.notFindFeerder
=
[{0}]
\u
30B9
\u
30C6
\u
30FC
\u
30B7
\u
30E7
\u
30F3
\u
60C5
\u5831\u
304C
\u
898B
\u3064\u
304B
\u
308A
\u
307E
\u
305B
\u3093
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
60d9ee1
...
...
@@ -448,3 +448,4 @@ smfcore.reelPosMove.paramerror=\u53C2\u6570\u4E0D\u5B8C\u6574
smfcore.reelPosMove.posIsNull
=
\u
5E93
\u
4F4D[{1}]
\u
4E3A
\u
7A7A
smfcore.liteOrder.exist
=
\u9700\u
6C42
\u5355
{0}
\u
5DF2
\u
5B58
\u5728
smfcore.reelPosMove.barcodeError
=
\u
5E93
\u
4F4D{0}
\u6761\u7801\u
4E3A{1}
\u
FF0C
\u
4E0E
\u
79FB
\u
5E93
\u6761\u7801
{1}
\u
4E0D
\u
4E00
\u
81F4
smfcore.barcode.notFindFeerder
=
\u
672A
\u
627E
\u5230
[{0}]
\u
7AD9
\u
4F4D
\u
4FE1
\u
606F
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
60d9ee1
...
...
@@ -448,3 +448,4 @@ smfcore.reelPosMove.paramerror=\u53C3\u6578\u4E0D\u5B8C\u6574
smfcore.reelPosMove.posIsNull
=
\u
5EAB
\u
4F4D [{1}]
\u
70BA
\u
7A7A
smfcore.liteOrder.exist
=
\u9700\u
6C42
\u
55AE {0}
\u
5DF2
\u
5B58
\u5728
smfcore.reelPosMove.barcodeError
=
\u
5EAB
\u
4F4D {0}
\u
689D
\u
78BC
\u
70BA {1}
\u
FF0C
\u8207\u
79FB
\u
5EAB
\u
689D
\u
78BC {1}
\u
4E0D
\u
4E00
\u
81F4
smfcore.barcode.notFindFeerder
=
\u
672A
\u
627E
\u5230
[{0}]
\u
7AD9
\u
4F4D
\u
8CC7
\u
8A0A
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论