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
e750be92
Commit
e750be92
authored
Aug 04, 2026
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 老化过程中 获取卡号,获取IOT状态调整中
parent
cf69dc85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
TStoreyInfoServiceImpl.java
...om/zehong/system/service/impl/TStoreyInfoServiceImpl.java
+1
-0
RealTimeReadAgingDataFunction.java
...com/zehong/system/task/RealTimeReadAgingDataFunction.java
+23
-2
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/TStoreyInfoServiceImpl.java
View file @
e750be92
...
...
@@ -727,6 +727,7 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
map
.
put
(
"concentration"
,
result
.
getModbusResult
()[
0
]);
map
.
put
(
"status"
,
result
.
getModbusResult
()[
1
]);
map
.
put
(
"modbusResult"
,
result
.
getModbusResult
());
map
.
put
(
"simCard"
,
result
.
getSimCard
());
}
map
.
put
(
"message"
,
result
.
getMessage
());
return
map
;
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/task/RealTimeReadAgingDataFunction.java
View file @
e750be92
...
...
@@ -378,7 +378,16 @@ public class RealTimeReadAgingDataFunction {
result
.
setSerpentineNumber
(
serpentineNumber
);
// 一条龙排列中的编号
result
.
setRow
(
row
);
result
.
setCol
(
col
);
if
(
modbusResult
!=
null
){
result
.
setModbusResult
(
modbusResult
);
// 设置卡号
StringBuilder
simCardNoBuilder
=
new
StringBuilder
();
for
(
int
i
=
17
;
i
<=
36
;
i
++)
{
simCardNoBuilder
.
append
(
modbusResult
[
i
]);
}
String
simCardNo
=
simCardNoBuilder
.
toString
();
result
.
setSimCard
(
simCardNo
);
}
result
.
setSuccess
(
success
);
result
.
setMessage
(
message
);
...
...
@@ -396,10 +405,13 @@ public class RealTimeReadAgingDataFunction {
private
boolean
success
;
// 处理是否成功
private
String
message
;
// 处理消息
private
String
simCard
;
public
DeviceResult
()
{
}
public
DeviceResult
(
String
convertedDeviceId
,
Integer
serpentineNumber
,
int
row
,
int
col
,
int
[]
modbusResult
,
boolean
success
,
String
message
)
{
public
DeviceResult
(
String
convertedDeviceId
,
Integer
serpentineNumber
,
int
row
,
int
col
,
int
[]
modbusResult
,
boolean
success
,
String
message
,
String
simCard
)
{
this
.
convertedDeviceId
=
convertedDeviceId
;
this
.
serpentineNumber
=
serpentineNumber
;
this
.
row
=
row
;
...
...
@@ -407,6 +419,7 @@ public class RealTimeReadAgingDataFunction {
this
.
modbusResult
=
modbusResult
;
this
.
success
=
success
;
this
.
message
=
message
;
this
.
simCard
=
simCard
;
}
public
String
getConvertedDeviceId
()
{
...
...
@@ -465,6 +478,14 @@ public class RealTimeReadAgingDataFunction {
this
.
col
=
col
;
}
public
String
getSimCard
()
{
return
simCard
;
}
public
void
setSimCard
(
String
simCard
)
{
this
.
simCard
=
simCard
;
}
@Override
public
String
toString
()
{
return
"DeviceResult{"
+
...
...
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