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
24c7cb1e
Commit
24c7cb1e
authored
Mar 25, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目配置
parent
391fc311
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
138 additions
and
9 deletions
+138
-9
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+8
-0
ConfirmAlarmServiceImpl.java
...oin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
+2
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+1
-0
application-dev.properties
...ystem-equip/src/main/resources/application-dev.properties
+6
-6
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+105
-2
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+15
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
24c7cb1e
...
@@ -162,6 +162,14 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
...
@@ -162,6 +162,14 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @return Map<String,Object>
* @return Map<String,Object>
*/
*/
Map
<
String
,
Object
>
fireWaterSysPool
();
Map
<
String
,
Object
>
fireWaterSysPool
();
/**
* 消防水系统-》消防管网
* @return Map<String,Object>
*/
Map
<
String
,
Object
>
fireWaterSysPipeNetwork
();
/**
/**
* 消防水系统-》消火栓按钮
* 消防水系统-》消火栓按钮
* @return Map<String,Object>
* @return Map<String,Object>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
View file @
24c7cb1e
...
@@ -37,6 +37,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -37,6 +37,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.support.TransactionSynchronization
;
import
org.springframework.transaction.support.TransactionSynchronization
;
...
@@ -81,6 +82,7 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
...
@@ -81,6 +82,7 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
private
IEquipmentSpecificAlarmLogService
equipmentSpecificAlarmLogService
;
private
IEquipmentSpecificAlarmLogService
equipmentSpecificAlarmLogService
;
@Autowired
@Autowired
@Lazy
private
IEquipmentSpecificSerivce
equipmentSpecificSerivce
;
private
IEquipmentSpecificSerivce
equipmentSpecificSerivce
;
@Autowired
@Autowired
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
24c7cb1e
...
@@ -790,6 +790,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -790,6 +790,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysPool
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysPool
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysWaterPump
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysWaterPump
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysHydrant
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysHydrant
());
this
.
putAll
(
data
,
fireFightingSystemMapper
.
fireWaterSysPipeNetwork
());
}
else
{
}
else
{
data
=
fireFightingSystemMapper
.
otherSysIndexNumAndTotal
();
data
=
fireFightingSystemMapper
.
otherSysIndexNumAndTotal
();
}
}
...
...
amos-boot-system-equip/src/main/resources/application-dev.properties
View file @
24c7cb1e
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://172.16.
3.20:3307
/autosys_business_v3.0.1.3?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.url
=
jdbc:mysql://172.16.
11.201:3306
/autosys_business_v3.0.1.3?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
123456
spring.datasource.password
=
Yeejoin@2020
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.pool-name
=
DatebookHikariCP
spring.datasource.hikari.pool-name
=
DatebookHikariCP
spring.datasource.hikari.minimum-idle
=
3
spring.datasource.hikari.minimum-idle
=
3
...
@@ -12,7 +12,7 @@ spring.datasource.hikari.max-lifetime= 1800000
...
@@ -12,7 +12,7 @@ spring.datasource.hikari.max-lifetime= 1800000
spring.datasource.hikari.connection-timeout
=
60000
spring.datasource.hikari.connection-timeout
=
60000
spring.datasource.hikari.connection-test-query
=
SELECT 1
spring.datasource.hikari.connection-test-query
=
SELECT 1
eureka.instance.hostname
=
172.16.11.20
eureka.instance.hostname
=
172.16.11.20
1
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
:
http://${eureka.instance.hostname}:10001/eureka/
eureka.client.serviceUrl.defaultZone
:
http://${eureka.instance.hostname}:10001/eureka/
...
@@ -25,7 +25,7 @@ security.appKeyApp=studio_normalapp_3056965
...
@@ -25,7 +25,7 @@ security.appKeyApp=studio_normalapp_3056965
#redis
#redis
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
172.16.11.20
spring.redis.host
=
172.16.11.20
1
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
1234560
spring.redis.password
=
1234560
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-active
=
200
...
@@ -37,10 +37,10 @@ spring.redis.expire.time=300
...
@@ -37,10 +37,10 @@ spring.redis.expire.time=300
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.11.
33
:1883
emqx.broker
=
tcp://172.16.11.
201
:1883
emqx.user-name
=
admin
emqx.user-name
=
admin
emqx.password
=
public
emqx.password
=
public
mqtt.scene.host
=
mqtt://172.16.11.
33
:8083/mqtt
mqtt.scene.host
=
mqtt://172.16.11.
201
:8083/mqtt
mqtt.client.product.id
=
mqtt
mqtt.client.product.id
=
mqtt
mqtt.topic
=
topic_mqtt
mqtt.topic
=
topic_mqtt
spring.mqtt.completionTimeout
=
3000
spring.mqtt.completionTimeout
=
3000
...
...
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
24c7cb1e
...
@@ -4791,7 +4791,11 @@ SELECT
...
@@ -4791,7 +4791,11 @@ SELECT
`eh`
.
`ehxfscyw`
AS
`ehxfscyw`
,
`eh`
.
`ehxfscyw`
AS
`ehxfscyw`
,
`eh`
.
`ehxfscyl`
AS
`ehxfscyl`
,
`eh`
.
`ehxfscyl`
AS
`ehxfscyl`
,
`eh`
.
`ehxfsccs`
AS
`ehxfsccs`
,
`eh`
.
`ehxfsccs`
AS
`ehxfsccs`
,
`eh`
.
`ehxfscg`
AS
`ehxfscg`
`eh`
.
`ehxfscg`
AS
`ehxfscg`
,
`shsx`
.
`shsxyw`
AS
`shsxyw`
,
`shsx`
.
`shsxyl`
AS
`shsxyl`
,
`shsx`
.
`shsxcs`
AS
`shsxcs`
,
`shsx`
.
`shsxg`
AS
`shsxg`
FROM
FROM
(
(
(
(
...
@@ -4991,7 +4995,106 @@ FROM
...
@@ -4991,7 +4995,106 @@ FROM
)
)
)
`b`
)
`b`
)
)
)
`eh`
ON
((
1
=
1
))
)
`eh`
ON
1
=
1
LEFT
JOIN
(
SELECT
ifnull
(
sum
(
`a`
.
`value`
),
0
)
AS
`shsxyw`
,
ifnull
(
(
CASE
WHEN
(
`a`
.
`value`
=
NULL
)
THEN
0
WHEN
(
(
`a`
.
`value`
<>
''
)
AND
(
`b`
.
`height`
<>
''
)
)
THEN
round
(
(
(
`a`
.
`value`
/
`b`
.
`height`
)
*
100
),
2
)
WHEN
(
`b`
.
`height`
=
NULL
)
THEN
0
END
),
0
)
AS
`shsxyl`
,
ifnull
(
`b`
.
`waterStorage`
,
0
)
AS
`shsxcs`
,
ifnull
(
`b`
.
`height`
,
0
)
AS
`shsxg`
FROM
(
(
SELECT
`si`
.
`value`
AS
`value`
FROM
(
`wl_equipment_specific_index`
`si`
JOIN
`wl_equipment_specific`
`s`
)
WHERE
(
(
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
)
AND
(
`s`
.
`code`
=
'1HXFSCCJZZ100000'
)
AND
(
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
)
)
)
`a`
JOIN
(
SELECT
max
(
(
CASE
WHEN
(
`i`
.
`field_name`
=
'height'
)
THEN
`i`
.
`field_value`
END
)
)
AS
`height`
,
max
(
(
CASE
WHEN
(
`i`
.
`field_name`
=
'waterStorage'
)
THEN
`i`
.
`field_value`
END
)
)
AS
`waterStorage`
FROM
`wl_form_instance`
`i`
WHERE
(
(
(
`i`
.
`field_name`
=
'height'
)
OR
(
`i`
.
`field_name`
=
'waterStorage'
)
)
AND
(
`i`
.
`instance_id`
=
(
SELECT
`i`
.
`instance_id`
FROM
`wl_form_instance`
`i`
WHERE
(
(
`i`
.
`field_name`
=
'code'
)
AND
(
`i`
.
`field_value`
=
'SC106268'
)
)
LIMIT
1
)
)
)
)
`b`
)
)
`shsx`
ON
1
=
1
);
);
-- 泡沫灭火3小
-- 泡沫灭火3小
DROP
VIEW
IF
EXISTS
`v_fire_equip_ffs_num`
;
DROP
VIEW
IF
EXISTS
`v_fire_equip_ffs_num`
;
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
24c7cb1e
...
@@ -1471,7 +1471,7 @@
...
@@ -1471,7 +1471,7 @@
LEFT JOIN `wl_equipment_detail` wed ON wed.equipment_id = we.id
LEFT JOIN `wl_equipment_detail` wed ON wed.equipment_id = we.id
LEFT JOIN `wl_equipment_specific` wes ON wes.equipment_detail_id = wed.id
LEFT JOIN `wl_equipment_specific` wes ON wes.equipment_detail_id = wed.id
where
where
wes.id = #{specificId}
wes.id = #{specificId}
AND we.is_iot = '1'
</select>
</select>
<select
id=
"getStationInfo"
resultType=
"Map"
>
<select
id=
"getStationInfo"
resultType=
"Map"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
24c7cb1e
...
@@ -1404,6 +1404,21 @@
...
@@ -1404,6 +1404,21 @@
<select
id=
"fireWaterSysPool"
resultType=
"java.util.Map"
>
<select
id=
"fireWaterSysPool"
resultType=
"java.util.Map"
>
select * from v_fire_pool_water_level
select * from v_fire_pool_water_level
</select>
</select>
<select
id=
"fireWaterSysPipeNetwork"
resultType=
"java.util.Map"
>
SELECT
IFNULL(MAX(wesi.`value`), 0) AS xfgwyl
FROM
wl_equipment_specific_index wesi
LEFT JOIN wl_equipment_specific wes ON wes.id = wesi.equipment_specific_id
WHERE
wes.equipment_code = '92011000T5Q44'
AND wesi.equipment_index_key = 'FHS_PipePressureDetector_PipePressure'
ORDER BY
abs( wesi.`value` ) DESC
LIMIT 1
</select>
<select
id=
"fireFoamSysEquipmentIndexNumber"
resultType=
"java.util.Map"
>
<select
id=
"fireFoamSysEquipmentIndexNumber"
resultType=
"java.util.Map"
>
select * from v_fire_equip_ffs_num
select * from v_fire_equip_ffs_num
</select>
</select>
...
...
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