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
1504025b
Commit
1504025b
authored
Jun 06, 2025
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
断电、上电指令
parent
bbbfbcb6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
163 additions
and
126 deletions
+163
-126
EquipmentDataCollection.java
...ong/web/controller/equipment/EquipmentDataCollection.java
+128
-88
ReceiverThread.java
...main/java/com/zehong/common/utils/TCP/ReceiverThread.java
+2
-1
TStoreyInfoMapper.java
...main/java/com/zehong/system/mapper/TStoreyInfoMapper.java
+8
-8
ITStoreyInfoService.java
...n/java/com/zehong/system/service/ITStoreyInfoService.java
+8
-8
TStoreyInfoServiceImpl.java
...om/zehong/system/service/impl/TStoreyInfoServiceImpl.java
+12
-5
TStoreyInfoMapper.xml
...em/src/main/resources/mapper/system/TStoreyInfoMapper.xml
+5
-16
No files found.
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/equipment/EquipmentDataCollection.java
View file @
1504025b
This diff is collapsed.
Click to expand it.
zhmes-agecal-common/src/main/java/com/zehong/common/utils/TCP/ReceiverThread.java
View file @
1504025b
...
@@ -34,7 +34,8 @@ public class ReceiverThread extends Thread {
...
@@ -34,7 +34,8 @@ public class ReceiverThread extends Thread {
// 将接收到的字节转换为十六进制字符串显示
// 将接收到的字节转换为十六进制字符串显示
hexResponse
=
HexUtils
.
bytesToHex
(
responseBytes
);
hexResponse
=
HexUtils
.
bytesToHex
(
responseBytes
);
log
.
info
(
"收到服务器响应: "
+
hexResponse
);
log
.
info
(
"收到服务器响应: "
+
hexResponse
);
if
(
hexResponse
.
length
()
>=
58
)
{
// 老化柜58,上电断电24,写时间26
if
(
hexResponse
.
length
()
==
58
||
hexResponse
.
length
()
==
24
||
hexResponse
.
length
()
==
26
)
{
break
;
break
;
}
}
}
}
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/mapper/TStoreyInfoMapper.java
View file @
1504025b
...
@@ -19,6 +19,14 @@ public interface TStoreyInfoMapper
...
@@ -19,6 +19,14 @@ public interface TStoreyInfoMapper
*/
*/
public
TStoreyInfo
selectTStoreyInfoById
(
Long
fStoreyId
);
public
TStoreyInfo
selectTStoreyInfoById
(
Long
fStoreyId
);
/**
* 查询老化层信息
*
* @param fStoreyCode 老化层信息Code
* @return 老化层信息
*/
public
TStoreyInfo
selectTStoreyInfoByCode
(
String
fStoreyCode
);
/**
/**
* 查询老化层信息列表
* 查询老化层信息列表
*
*
...
@@ -43,14 +51,6 @@ public interface TStoreyInfoMapper
...
@@ -43,14 +51,6 @@ public interface TStoreyInfoMapper
*/
*/
public
int
updateTStoreyInfo
(
TStoreyInfo
tStoreyInfo
);
public
int
updateTStoreyInfo
(
TStoreyInfo
tStoreyInfo
);
/**
* 修改老化层信息
*
* @param tStoreyInfo 老化层信息
* @return 结果
*/
public
int
updateTStoreyInfoByCode
(
TStoreyInfo
tStoreyInfo
);
/**
/**
* 删除老化层信息
* 删除老化层信息
*
*
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/ITStoreyInfoService.java
View file @
1504025b
...
@@ -19,6 +19,14 @@ public interface ITStoreyInfoService
...
@@ -19,6 +19,14 @@ public interface ITStoreyInfoService
*/
*/
public
TStoreyInfo
selectTStoreyInfoById
(
Long
fStoreyId
);
public
TStoreyInfo
selectTStoreyInfoById
(
Long
fStoreyId
);
/**
* 查询老化层信息
*
* @param fStoreyCode 老化层信息Code
* @return 老化层信息
*/
public
TStoreyInfo
selectTStoreyInfoByCode
(
String
fStoreyCode
);
/**
/**
* 查询老化层信息列表
* 查询老化层信息列表
*
*
...
@@ -43,14 +51,6 @@ public interface ITStoreyInfoService
...
@@ -43,14 +51,6 @@ public interface ITStoreyInfoService
*/
*/
public
int
updateTStoreyInfo
(
TStoreyInfo
tStoreyInfo
);
public
int
updateTStoreyInfo
(
TStoreyInfo
tStoreyInfo
);
/**
* 修改老化层信息
*
* @param tStoreyInfo 老化层信息
* @return 结果
*/
public
int
updateTStoreyInfoByCode
(
TStoreyInfo
tStoreyInfo
);
/**
/**
* 批量删除老化层信息
* 批量删除老化层信息
*
*
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/TStoreyInfoServiceImpl.java
View file @
1504025b
...
@@ -31,6 +31,18 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
...
@@ -31,6 +31,18 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
return
tStoreyInfoMapper
.
selectTStoreyInfoById
(
fStoreyId
);
return
tStoreyInfoMapper
.
selectTStoreyInfoById
(
fStoreyId
);
}
}
/**
* 查询老化层信息
*
* @param fStoreyCode 老化层信息Code
* @return 老化层信息
*/
@Override
public
TStoreyInfo
selectTStoreyInfoByCode
(
String
fStoreyCode
)
{
return
tStoreyInfoMapper
.
selectTStoreyInfoByCode
(
fStoreyCode
);
}
/**
/**
* 查询老化层信息列表
* 查询老化层信息列表
*
*
...
@@ -67,11 +79,6 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
...
@@ -67,11 +79,6 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
return
tStoreyInfoMapper
.
updateTStoreyInfo
(
tStoreyInfo
);
return
tStoreyInfoMapper
.
updateTStoreyInfo
(
tStoreyInfo
);
}
}
public
int
updateTStoreyInfoByCode
(
TStoreyInfo
tStoreyInfo
)
{
return
tStoreyInfoMapper
.
updateTStoreyInfoByCode
(
tStoreyInfo
);
}
/**
/**
* 批量删除老化层信息
* 批量删除老化层信息
*
*
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TStoreyInfoMapper.xml
View file @
1504025b
...
@@ -40,6 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -40,6 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include
refid=
"selectTStoreyInfoVo"
/>
<include
refid=
"selectTStoreyInfoVo"
/>
where f_storey_id = #{fStoreyId}
where f_storey_id = #{fStoreyId}
</select>
</select>
<select
id=
"selectTStoreyInfoByCode"
parameterType=
"String"
resultMap=
"TStoreyInfoResult"
>
<include
refid=
"selectTStoreyInfoVo"
/>
where f_storey_code = #{fStoreyCode}
</select>
<insert
id=
"insertTStoreyInfo"
parameterType=
"TStoreyInfo"
>
<insert
id=
"insertTStoreyInfo"
parameterType=
"TStoreyInfo"
>
insert into t_storey_info
insert into t_storey_info
...
@@ -85,22 +90,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -85,22 +90,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where f_storey_id = #{fStoreyId}
where f_storey_id = #{fStoreyId}
</update>
</update>
<update
id=
"updateTStoreyInfoByCode"
parameterType=
"TStoreyInfo"
>
update t_storey_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fEquipmentId != null"
>
f_equipment_id = #{fEquipmentId},
</if>
<if
test=
"fStoreyCode != null"
>
f_storey_code = #{fStoreyCode},
</if>
<if
test=
"fTrayCode != null"
>
f_tray_code = #{fTrayCode},
</if>
<if
test=
"fIp != null"
>
f_ip = #{fIp},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fPort != null"
>
f_port = #{fPort},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time = #{fAlarmTime},
</if>
</trim>
where f_storey_code = #{fStoreyCode}
</update>
<delete
id=
"deleteTStoreyInfoById"
parameterType=
"Long"
>
<delete
id=
"deleteTStoreyInfoById"
parameterType=
"Long"
>
delete from t_storey_info where f_storey_id = #{fStoreyId}
delete from t_storey_info where f_storey_id = #{fStoreyId}
</delete>
</delete>
...
...
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