Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
de02f098
Commit
de02f098
authored
May 11, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
c530e6c1
087b2f95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
EquipmentSpecific.java
.../yeejoin/equipmanage/common/entity/EquipmentSpecific.java
+4
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+1
-2
wl-3.6.0.xml
...ot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
+13
-0
AlarmMapper.xml
...ot-system-equip/src/main/resources/mapper/AlarmMapper.xml
+4
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecific.java
View file @
de02f098
...
@@ -173,6 +173,10 @@ public class EquipmentSpecific extends BaseEntity {
...
@@ -173,6 +173,10 @@ public class EquipmentSpecific extends BaseEntity {
@TableField
(
"warranty_info"
)
@TableField
(
"warranty_info"
)
private
String
warrantyInfo
;
private
String
warrantyInfo
;
@ApiModelProperty
(
value
=
"指标类型编码"
)
@TableField
(
"type_code"
)
private
String
typeCode
;
@ApiModelProperty
(
value
=
"质保周期"
)
@ApiModelProperty
(
value
=
"质保周期"
)
@TableField
(
"warranty_period"
)
@TableField
(
"warranty_period"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
de02f098
...
@@ -37,8 +37,6 @@ import com.yeejoin.equipmanage.mapper.*;
...
@@ -37,8 +37,6 @@ import com.yeejoin.equipmanage.mapper.*;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
com.yeejoin.equipmanage.utils.RelationRedisUtil
;
import
liquibase.pro.packaged.J
;
import
liquibase.pro.packaged.S
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
...
@@ -1726,6 +1724,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1726,6 +1724,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
es
.
setRealtimeIotIndexId
(
index
.
getEquipmentIndexId
());
es
.
setRealtimeIotIndexId
(
index
.
getEquipmentIndexId
());
es
.
setRealtimeIotIndexUpdateDate
(
index
.
getUpdateDate
());
es
.
setRealtimeIotIndexUpdateDate
(
index
.
getUpdateDate
());
es
.
setValueLabel
(
index
.
getValueLabel
());
es
.
setValueLabel
(
index
.
getValueLabel
());
es
.
setTypeCode
(
index
.
getTypeCode
());
equipmentSpecificMapper
.
updateById
(
es
);
equipmentSpecificMapper
.
updateById
(
es
);
}
}
}
}
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
View file @
de02f098
...
@@ -1115,4 +1115,16 @@
...
@@ -1115,4 +1115,16 @@
ADD pump_device_name varchar(1500) DEFAULT NULL COMMENT '消防泵装置名称s';
ADD pump_device_name varchar(1500) DEFAULT NULL COMMENT '消防泵装置名称s';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"xxz"
id=
"20240510-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_equipment_specific"
columnName=
"type_code"
/>
</not>
</preConditions>
<comment>
wl_equipment_specific表新增属性字段type_code
</comment>
<sql>
ALTER TABLE `wl_equipment_specific` ADD COLUMN `type_code` VARCHAR (50) NULL COMMENT '指标类型编码';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/AlarmMapper.xml
View file @
de02f098
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
and date_format(a.`create_date`,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
UNION ALL
UNION ALL
SELECT count(*) num, 'wfggj' as code from wl_equipment_specific_alarm_log a where a.`status` = 1
SELECT count(*) num, 'wfggj' as code from wl_equipment_specific_alarm_log a where a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
...
@@ -16,18 +17,21 @@
...
@@ -16,18 +17,21 @@
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'hzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'FIREALARM'
SELECT count(*) num, 'hzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'FIREALARM'
and a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'gzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'BREAKDOWN'
SELECT count(*) num, 'gzgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'BREAKDOWN'
a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
</if>
</if>
UNION ALL
UNION ALL
SELECT count(*) num, 'pbgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'SHIELD'
SELECT count(*) num, 'pbgj' as code from wl_equipment_specific_alarm_log a where a.`type` = 'SHIELD'
and a.`status` = 1
and a.biz_org_code like concat(#{bizOrgCode}, '%')
and a.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemId != null and systemId !=''"
>
<if
test=
"systemId != null and systemId !=''"
>
and FIND_IN_SET(#{systemId},a.system_ids)
and FIND_IN_SET(#{systemId},a.system_ids)
...
...
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