Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
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
耿迪迪
zhmes-agecal
Commits
f651a3db
Commit
f651a3db
authored
Jan 29, 2026
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1一键解绑调整
parent
f30d7cec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
CalibrationResultEventHandler.java
...ong/system/netty/event/CalibrationResultEventHandler.java
+17
-4
PalletDeviceBindingServiceImpl.java
...g/system/service/impl/PalletDeviceBindingServiceImpl.java
+3
-3
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/netty/event/CalibrationResultEventHandler.java
View file @
f651a3db
...
@@ -137,6 +137,7 @@ public class CalibrationResultEventHandler {
...
@@ -137,6 +137,7 @@ public class CalibrationResultEventHandler {
// moduleStatus 模块状态
// moduleStatus 模块状态
// simCardStatus 串口状态
// simCardStatus 串口状态
for
(
PalletDeviceBinding
palletDeviceBinding
:
palletDeviceBindings
)
{
for
(
PalletDeviceBinding
palletDeviceBinding
:
palletDeviceBindings
)
{
if
(
StringUtils
.
isBlank
(
palletDeviceBinding
.
getMotherboardCode
()))
continue
;
if
((
"1"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
())
if
((
"1"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
())
||
"3"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
())
||
"3"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
())
||
"4"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
()))
||
"4"
.
equals
(
palletDeviceBinding
.
getDeviceStatus
()))
...
@@ -145,14 +146,26 @@ public class CalibrationResultEventHandler {
...
@@ -145,14 +146,26 @@ public class CalibrationResultEventHandler {
&&
"1"
.
equals
(
palletDeviceBinding
.
getRealTimeStatus
())
&&
"1"
.
equals
(
palletDeviceBinding
.
getRealTimeStatus
())
&&
"4"
.
equals
(
palletDeviceBinding
.
getCalibrationConcentrationStatus
())
&&
"4"
.
equals
(
palletDeviceBinding
.
getCalibrationConcentrationStatus
())
&&
palletDeviceBinding
.
getWriteSelfCheckStatus
()
==
1
&&
palletDeviceBinding
.
getWriteSelfCheckStatus
()
==
1
&&
palletDeviceBinding
.
getRelayStatus
()
==
1
&&
palletDeviceBinding
.
getPulseStatus
()
==
1
&&
palletDeviceBinding
.
getModuleStatus
()
==
1
&&
palletDeviceBinding
.
getModuleStatus
()
==
1
&&
palletDeviceBinding
.
getSimCardStatus
()
==
1
&&
palletDeviceBinding
.
getSimCardStatus
()
==
1
&&
palletDeviceBinding
.
getNetworkStatus
()
==
1
)
{
&&
palletDeviceBinding
.
getNetworkStatus
()
==
1
)
{
palletDeviceBinding
.
setStandardInspectResult
(
"1"
);
palletDeviceBinding
.
setStandardInspectResult
(
"1"
);
}
else
{
}
palletDeviceBinding
.
setStandardInspectResult
(
"0"
);
if
(!
"2"
.
equals
(
palletDeviceBinding
.
getReadingMode
()))
{
if
(
palletDeviceBinding
.
getRelayStatus
()
==
1
)
{
palletDeviceBinding
.
setStandardInspectResult
(
"1"
);
}
else
{
palletDeviceBinding
.
setStandardInspectResult
(
"0"
);
}
}
if
(!
"1"
.
equals
(
palletDeviceBinding
.
getReadingMode
()))
{
if
(
palletDeviceBinding
.
getPulseStatus
()
==
1
)
{
palletDeviceBinding
.
setStandardInspectResult
(
"1"
);
}
else
{
palletDeviceBinding
.
setStandardInspectResult
(
"0"
);
}
}
}
}
}
}
}
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/PalletDeviceBindingServiceImpl.java
View file @
f651a3db
...
@@ -377,14 +377,14 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
...
@@ -377,14 +377,14 @@ public class PalletDeviceBindingServiceImpl implements IPalletDeviceBindingServi
// 处理错误数据逻辑,再弄个错误数据的表
// 处理错误数据逻辑,再弄个错误数据的表
if
(
StringUtils
.
isNotBlank
(
data
))
{
if
(
StringUtils
.
isNotBlank
(
data
))
{
// 存失败记录
// 存失败记录
processPalletDeviceUploadFailure
(
palletDeviceBinding
s
,
data
);
processPalletDeviceUploadFailure
(
mesDeviceDomain
s
,
data
);
}
else
{
}
else
{
iPalletDeviceUploadFailureService
.
batchInsertRealTimeData
(
palletDeviceBinding
s
);
iPalletDeviceUploadFailureService
.
batchInsertRealTimeData
(
mesDeviceDomain
s
);
}
}
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
iPalletDeviceUploadFailureService
.
batchInsertRealTimeData
(
palletDeviceBinding
s
);
iPalletDeviceUploadFailureService
.
batchInsertRealTimeData
(
mesDeviceDomain
s
);
}
}
}
}
}
}
...
...
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