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
3601b927
Commit
3601b927
authored
Sep 16, 2025
by
junshizhonglangjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 上电断电调整
2 查询设备信息调整
parent
831b3771
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
AgingCabinetInspectionAndPowerCheckTask.java
.../system/task/AgingCabinetInspectionAndPowerCheckTask.java
+4
-3
TStoreyInfoMapper.xml
...em/src/main/resources/mapper/system/TStoreyInfoMapper.xml
+1
-1
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/task/AgingCabinetInspectionAndPowerCheckTask.java
View file @
3601b927
...
...
@@ -84,7 +84,7 @@ public class AgingCabinetInspectionAndPowerCheckTask {
// 10 层
List
<
Integer
>
registerOffsets
=
Arrays
.
asList
(
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
);
try
{
master
=
Modbus4jUtils
.
getMaster
(
equipmentInfo
.
getf
Ip
(),
equipmentInfo
.
getf
Port
());
master
=
Modbus4jUtils
.
getMaster
(
equipmentInfo
.
getf
PowerOutageIp
(),
equipmentInfo
.
getfPowerOutage
Port
());
Map
<
Integer
,
Object
>
integerObjectMap
=
Modbus4jUtils
.
batchReadAgingCabinetStatus
(
master
,
registerOffsets
);
equipmentInfo
.
setRegisterValues
(
integerObjectMap
);
...
...
@@ -170,13 +170,14 @@ public class AgingCabinetInspectionAndPowerCheckTask {
for
(
Map
.
Entry
<
Integer
,
Object
>
entry
:
registerValues
.
entrySet
())
{
Integer
registerOffset
=
entry
.
getKey
();
Object
registerValue
=
entry
.
getValue
();
log
.
info
(
"registerValue = "
+
registerValue
);
if
(
"true"
.
equals
(
registerValue
))
{
eventPublisher
.
publishEvent
(
new
CheckPowerOnCommandEvent
(
this
,
modbusDeviceData
.
getfEquipmentCode
(),
modbusDeviceData
.
getfPowerOutageIp
(),
modbusDeviceData
.
getfPowerOutagePort
(),
registerOffset
registerOffset
+
1
));
isRun
=
true
;
// 要给这个 层 发断电的 指令
...
...
@@ -187,7 +188,7 @@ public class AgingCabinetInspectionAndPowerCheckTask {
modbusDeviceData
.
getfEquipmentCode
(),
modbusDeviceData
.
getfPowerOutageIp
(),
modbusDeviceData
.
getfPowerOutagePort
(),
registerOffset
registerOffset
+
1
));
}
}
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TStoreyInfoMapper.xml
View file @
3601b927
...
...
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"queryByDepartmentId"
parameterType=
"long"
resultMap=
"TStoreyInfoResult"
>
<include
refid=
"selectTStoreyInfoVo"
/>
where f_equipment_id = #{fEquipmentId}
where
storeyInfo.
f_equipment_id = #{fEquipmentId}
</select>
<select
id=
"selectTStoreyInfoById"
parameterType=
"Long"
resultMap=
"TStoreyInfoResult"
>
...
...
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