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
eb99eb55
Commit
eb99eb55
authored
Dec 30, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 写自检后 判断下 是否写成功
parent
5cdc4adf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
AgingStageThreeProcessJob.java
...ava/com/zehong/system/task/AgingStageThreeProcessJob.java
+3
-5
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/task/AgingStageThreeProcessJob.java
View file @
eb99eb55
...
...
@@ -188,8 +188,6 @@ public class AgingStageThreeProcessJob implements Job {
// 重用之前的master连接进行写操作
master
=
Modbus4jUtils
.
createModbusMaster
(
ip
,
port
);
checkAndUpdateTime
(
master
,
deviceId
,
binding
);
}
else
{
binding
.
setStatus
(
result
[
1
]
+
""
);
}
// 处理 继电器状态,脉冲状态,模组状态,SIM卡状态,网络状态
...
...
@@ -222,7 +220,7 @@ public class AgingStageThreeProcessJob implements Job {
}
binding
.
setStatus
(
"5"
);
binding
.
setWriteTimeStatus
(
"0"
);
binding
.
setR
eal
TimeStatus
(
"0"
);
binding
.
setR
un
TimeStatus
(
"0"
);
palletDeviceBindingMapper
.
updatePalletDeviceBinding
(
binding
);
errorCount
.
incrementAndGet
();
return
false
;
...
...
@@ -268,7 +266,7 @@ public class AgingStageThreeProcessJob implements Job {
if
(
timeRegisters
.
length
<
9
)
{
log
.
warn
(
"设备{}时间寄存器读取失败或数据长度不足"
,
deviceId
);
binding
.
setWriteTimeStatus
(
"0"
);
binding
.
setR
eal
TimeStatus
(
"0"
);
binding
.
setR
un
TimeStatus
(
"0"
);
recordAlarmByBinding
(
binding
,
"设备时间寄存器读取失败"
);
return
;
}
...
...
@@ -304,7 +302,7 @@ public class AgingStageThreeProcessJob implements Job {
}
catch
(
ModbusTransportException
e
)
{
binding
.
setWriteTimeStatus
(
"0"
);
binding
.
setR
eal
TimeStatus
(
"0"
);
binding
.
setR
un
TimeStatus
(
"0"
);
log
.
error
(
"设备{}时间写入异常"
,
deviceId
,
e
);
recordAlarmByBinding
(
binding
,
"设备时间写入异常: "
+
e
.
getMessage
());
}
...
...
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