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
984865fe
Commit
984865fe
authored
Jun 11, 2025
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
老化层记录老化开始时间,老化柜、托盘、报警信息初始页面
parent
1c3cf716
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1190 additions
and
10 deletions
+1190
-10
EquipmentDataCollection.java
...ong/web/controller/equipment/EquipmentDataCollection.java
+8
-7
TStoreyInfo.java
...m/src/main/java/com/zehong/system/domain/TStoreyInfo.java
+16
-1
TStoreyInfoMapper.xml
...em/src/main/resources/mapper/system/TStoreyInfoMapper.xml
+4
-2
index.vue
zhmes-agecal-web/src/views/equipment/index.vue
+486
-0
index.vue
zhmes-agecal-web/src/views/equipmentAlarmData/index.vue
+315
-0
index.vue
zhmes-agecal-web/src/views/tray/index.vue
+361
-0
No files found.
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/equipment/EquipmentDataCollection.java
View file @
984865fe
...
@@ -55,7 +55,7 @@ public class EquipmentDataCollection {
...
@@ -55,7 +55,7 @@ public class EquipmentDataCollection {
receiveMsg1
=
agingCabinetCommunication
(
info
,
sendMsg1
);
receiveMsg1
=
agingCabinetCommunication
(
info
,
sendMsg1
);
if
(
receiveMsg1
==
null
||
receiveMsg1
.
length
()
!=
58
)
{
if
(
receiveMsg1
==
null
||
receiveMsg1
.
length
()
!=
58
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"01"
);
//
01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"01"
);
//
01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
info
.
getfEquipmentCode
());
alarmData
.
setfEquipmentCode
(
info
.
getfEquipmentCode
());
alarmData
.
setfAlarmData
(
"老化柜通讯失败"
);
alarmData
.
setfAlarmData
(
"老化柜通讯失败"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -89,7 +89,7 @@ public class EquipmentDataCollection {
...
@@ -89,7 +89,7 @@ public class EquipmentDataCollection {
storeyInfo
=
tStoreyInfoService
.
selectTStoreyInfoByCode
(
storeyCode
);
storeyInfo
=
tStoreyInfoService
.
selectTStoreyInfoByCode
(
storeyCode
);
if
(
storeyInfo
==
null
)
{
if
(
storeyInfo
==
null
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"01"
);
//
01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"01"
);
//
01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
info
.
getfEquipmentCode
());
alarmData
.
setfEquipmentCode
(
info
.
getfEquipmentCode
());
alarmData
.
setfAlarmData
(
"下属"
+
storeyCode
+
"号老化层不存在"
);
alarmData
.
setfAlarmData
(
"下属"
+
storeyCode
+
"号老化层不存在"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -107,7 +107,7 @@ public class EquipmentDataCollection {
...
@@ -107,7 +107,7 @@ public class EquipmentDataCollection {
tStoreyInfoService
.
updateTStoreyInfo
(
storeyInfo
);
tStoreyInfoService
.
updateTStoreyInfo
(
storeyInfo
);
}
else
{
}
else
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"0
4"
);
//01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"0
3"
);
//01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfAlarmData
(
"断电失败"
);
alarmData
.
setfAlarmData
(
"断电失败"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -155,7 +155,7 @@ public class EquipmentDataCollection {
...
@@ -155,7 +155,7 @@ public class EquipmentDataCollection {
String
receiveMsg1
=
agingCabinetCommunication
(
equipmentInfo
,
sendMsg1
);
String
receiveMsg1
=
agingCabinetCommunication
(
equipmentInfo
,
sendMsg1
);
if
(
receiveMsg1
==
null
||
receiveMsg1
.
length
()
!=
58
)
{
if
(
receiveMsg1
==
null
||
receiveMsg1
.
length
()
!=
58
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"01"
);
//01.老化柜 02.
标定柜 03.机械臂 04.老化层
alarmData
.
setfAlarmType
(
"01"
);
//01.老化柜 02.
机械臂 03.老化层 04.点位
alarmData
.
setfEquipmentCode
(
equipmentInfo
.
getfEquipmentCode
());
alarmData
.
setfEquipmentCode
(
equipmentInfo
.
getfEquipmentCode
());
alarmData
.
setfAlarmData
(
"老化柜通讯失败"
);
alarmData
.
setfAlarmData
(
"老化柜通讯失败"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -179,7 +179,7 @@ public class EquipmentDataCollection {
...
@@ -179,7 +179,7 @@ public class EquipmentDataCollection {
String
receiveMsg2
=
storeyCommunication
(
storeyInfo
,
sendMsg2
);
String
receiveMsg2
=
storeyCommunication
(
storeyInfo
,
sendMsg2
);
if
(!
sendMsg2
.
equals
(
receiveMsg2
)
||
receiveMsg2
==
null
)
{
if
(!
sendMsg2
.
equals
(
receiveMsg2
)
||
receiveMsg2
==
null
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"0
4"
);
//01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"0
3"
);
//01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfAlarmData
(
"上电失败"
);
alarmData
.
setfAlarmData
(
"上电失败"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -187,6 +187,7 @@ public class EquipmentDataCollection {
...
@@ -187,6 +187,7 @@ public class EquipmentDataCollection {
}
}
// 老化层更新状态
// 老化层更新状态
storeyInfo
.
setfStatus
(
"1"
);
//运行
storeyInfo
.
setfStatus
(
"1"
);
//运行
storeyInfo
.
setfAgingStartTime
(
new
Date
());
// 记录老化开始时间
tStoreyInfoService
.
updateTStoreyInfo
(
storeyInfo
);
tStoreyInfoService
.
updateTStoreyInfo
(
storeyInfo
);
/* 4.老化层通讯,72个点位,1-27一个端口号、28-54一个端口号、55-72一个端口号,IP不变 */
/* 4.老化层通讯,72个点位,1-27一个端口号、28-54一个端口号、55-72一个端口号,IP不变 */
...
@@ -195,7 +196,7 @@ public class EquipmentDataCollection {
...
@@ -195,7 +196,7 @@ public class EquipmentDataCollection {
String
receiveMsg3
=
storeyCommunication
(
storeyInfo
,
sendMsg3
);
String
receiveMsg3
=
storeyCommunication
(
storeyInfo
,
sendMsg3
);
if
(
receiveMsg3
==
null
)
{
if
(
receiveMsg3
==
null
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"0
4"
);
//01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"0
3"
);
//01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfAlarmData
(
"老化层通讯失败,无响应"
);
alarmData
.
setfAlarmData
(
"老化层通讯失败,无响应"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
@@ -228,7 +229,7 @@ public class EquipmentDataCollection {
...
@@ -228,7 +229,7 @@ public class EquipmentDataCollection {
String
receiveMsgYear
=
storeyCommunication
(
storeyInfo
,
sendMsgYear
);
String
receiveMsgYear
=
storeyCommunication
(
storeyInfo
,
sendMsgYear
);
if
(!
sendMsgYear
.
equals
(
receiveMsgYear
)
||
receiveMsgYear
==
null
)
{
if
(!
sendMsgYear
.
equals
(
receiveMsgYear
)
||
receiveMsgYear
==
null
)
{
// 记录异常数据
// 记录异常数据
alarmData
.
setfAlarmType
(
"0
5"
);
//01.老化柜 02.标定柜 03.机械臂 04.老化层 05
.点位
alarmData
.
setfAlarmType
(
"0
4"
);
//01.老化柜 02.机械臂 03.老化层 04
.点位
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfEquipmentCode
(
storeyInfo
.
getfStoreyCode
());
alarmData
.
setfAlarmData
(
"写入时间失败-年"
);
alarmData
.
setfAlarmData
(
"写入时间失败-年"
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
tEquipmentAlarmDataService
.
insertTEquipmentAlarmData
(
alarmData
);
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/domain/TStoreyInfo.java
View file @
984865fe
...
@@ -40,6 +40,11 @@ public class TStoreyInfo extends BaseEntity
...
@@ -40,6 +40,11 @@ public class TStoreyInfo extends BaseEntity
@Excel
(
name
=
"状态:0空闲,1运行,2故障,3断电"
)
@Excel
(
name
=
"状态:0空闲,1运行,2故障,3断电"
)
private
String
fStatus
;
private
String
fStatus
;
/** 老化开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"更新时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
fAgingStartTime
;
/** 更新时间 */
/** 更新时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"更新时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"更新时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
...
@@ -110,7 +115,16 @@ public class TStoreyInfo extends BaseEntity
...
@@ -110,7 +115,16 @@ public class TStoreyInfo extends BaseEntity
{
{
return
fPort
;
return
fPort
;
}
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
public
Date
getfAgingStartTime
()
{
return
fAgingStartTime
;
}
public
void
setfAgingStartTime
(
Date
fAgingStartTime
)
{
this
.
fAgingStartTime
=
fAgingStartTime
;
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
{
{
this
.
fUpdateTime
=
fUpdateTime
;
this
.
fUpdateTime
=
fUpdateTime
;
}
}
...
@@ -147,6 +161,7 @@ public class TStoreyInfo extends BaseEntity
...
@@ -147,6 +161,7 @@ public class TStoreyInfo extends BaseEntity
.
append
(
"fIp"
,
getfIp
())
.
append
(
"fIp"
,
getfIp
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fPort"
,
getfPort
())
.
append
(
"fPort"
,
getfPort
())
.
append
(
"fAgingStartTime"
,
getfUpdateTime
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fAlarmTime"
,
getfAlarmTime
())
.
append
(
"fAlarmTime"
,
getfAlarmTime
())
...
...
zhmes-agecal-system/src/main/resources/mapper/system/TStoreyInfoMapper.xml
View file @
984865fe
...
@@ -11,13 +11,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -11,13 +11,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"fIp"
column=
"f_ip"
/>
<result
property=
"fIp"
column=
"f_ip"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fPort"
column=
"f_port"
/>
<result
property=
"fPort"
column=
"f_port"
/>
<result
property=
"fAgingStartTime"
column=
"f_aging_start_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fAlarmTime"
column=
"f_alarm_time"
/>
<result
property=
"fAlarmTime"
column=
"f_alarm_time"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTStoreyInfoVo"
>
<sql
id=
"selectTStoreyInfoVo"
>
select f_storey_id, f_equipment_id, f_storey_code, f_tray_code, f_ip, f_status, f_port, f_update_time, f_create_time, f_alarm_time from t_storey_info
select f_storey_id, f_equipment_id, f_storey_code, f_tray_code, f_ip, f_status, f_port, f_
aging_start_time, f_
update_time, f_create_time, f_alarm_time from t_storey_info
</sql>
</sql>
<select
id=
"selectTStoreyInfoList"
parameterType=
"TStoreyInfo"
resultMap=
"TStoreyInfoResult"
>
<select
id=
"selectTStoreyInfoList"
parameterType=
"TStoreyInfo"
resultMap=
"TStoreyInfoResult"
>
...
@@ -56,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -56,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time,
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fStoreyId != null"
>
#{fStoreyId},
</if>
<if
test=
"fStoreyId != null"
>
#{fStoreyId},
</if>
<if
test=
"fEquipmentId != null"
>
#{fEquipmentId},
</if>
<if
test=
"fEquipmentId != null"
>
#{fEquipmentId},
</if>
...
@@ -78,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -78,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fIp != null"
>
f_ip = #{fIp},
</if>
<if
test=
"fIp != null"
>
f_ip = #{fIp},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fPort != null"
>
f_port = #{fPort},
</if>
<if
test=
"fPort != null"
>
f_port = #{fPort},
</if>
<if
test=
"fAgingStartTime != null"
>
f_aging_start_time = #{fAgingStartTime},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time = #{fAlarmTime},
</if>
<if
test=
"fAlarmTime != null"
>
f_alarm_time = #{fAlarmTime},
</if>
...
...
zhmes-agecal-web/src/views/equipment/index.vue
0 → 100644
View file @
984865fe
This diff is collapsed.
Click to expand it.
zhmes-agecal-web/src/views/equipmentAlarmData/index.vue
0 → 100644
View file @
984865fe
This diff is collapsed.
Click to expand it.
zhmes-agecal-web/src/views/tray/index.vue
0 → 100644
View file @
984865fe
This diff is collapsed.
Click to expand it.
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