Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zh-mes-device-data-process
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zh-mes-device-data-process
Commits
d2d305e4
Commit
d2d305e4
authored
Jul 01, 2025
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/zh-mes-device-data-process
parents
d683daea
ee45fbd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ScanCodeResultServiceImpl.java
...va/com/zehong/service/impl/ScanCodeResultServiceImpl.java
+3
-2
No files found.
src/main/java/com/zehong/service/impl/ScanCodeResultServiceImpl.java
View file @
d2d305e4
package
com
.
zehong
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.zehong.constant.MesDeviceDataConstant
;
import
com.zehong.constant.PCBACodeRules
;
...
...
@@ -123,7 +124,7 @@ public class ScanCodeResultServiceImpl implements ScanCodeResultService{
*/
private
int
addNbAndCardCode
(
Map
<
String
,
Object
>
analysisResult
){
Map
<
String
,
Object
>
cache
=
redisCache
.
getCacheMap
(
MesDeviceDataConstant
.
EQUIPMENT_DOCKING
+
":"
+
MesDeviceDataConstant
.
PCBA_DEVICE_KEY
);
if
(
null
!=
cache
){
if
(
null
!=
cache
&&
cache
.
containsKey
(
"pcbaProductionTasksNumber"
)
&&
cache
.
containsKey
(
"materialInfoId"
)
){
PCBADevices
devices
=
new
PCBADevices
();
devices
.
setMotherboardCode
(
analysisResult
.
get
(
"nbCode"
).
toString
());
List
<
String
>
codes
=
(
List
<
String
>)
analysisResult
.
get
(
PCBACodeRules
.
CARDBATCHCODE
.
name
());
...
...
@@ -143,7 +144,7 @@ public class ScanCodeResultServiceImpl implements ScanCodeResultService{
*/
private
int
addMainBoardCodeAndSensorBatchCode
(
Map
<
String
,
Object
>
analysisResult
){
Map
<
String
,
Object
>
cache
=
redisCache
.
getCacheMap
(
MesDeviceDataConstant
.
EQUIPMENT_DOCKING
+
":"
+
MesDeviceDataConstant
.
PCBA_DEVICE_KEY
);
if
(
null
!=
cache
){
if
(
null
!=
cache
&&
cache
.
containsKey
(
"pcbaProductionTasksNumber"
)
&&
cache
.
containsKey
(
"materialInfoId"
)
){
PCBADevices
devices
=
new
PCBADevices
();
List
<
String
>
mainCodes
=
(
List
<
String
>)
analysisResult
.
get
(
PCBACodeRules
.
MAINBOARDCODE
.
name
());
devices
.
setMotherboardCode
(
mainCodes
.
get
(
0
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment