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
2f3fc17f
Commit
2f3fc17f
authored
Feb 25, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_ccs' into develop_ccs
parents
994449ec
7fcf6030
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
158 additions
and
84 deletions
+158
-84
WorkFlowBranchEnum.java
...oin/amos/supervision/common/enums/WorkFlowBranchEnum.java
+3
-5
DangerDto.java
...m/yeejoin/amos/supervision/core/common/dto/DangerDto.java
+1
-1
AlertCalledMapper.xml
...e-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
+2
-0
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+2
-2
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+2
-1
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+1
-1
HiddenDangerServiceImpl.java
...vision/business/service/impl/HiddenDangerServiceImpl.java
+3
-0
PlanServiceImpl.java
...os/supervision/business/service/impl/PlanServiceImpl.java
+1
-1
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+1
-1
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+137
-68
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+4
-3
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-supervision-api/src/main/java/com/yeejoin/amos/supervision/common/enums/WorkFlowBranchEnum.java
View file @
2f3fc17f
...
@@ -10,11 +10,9 @@ import java.util.Map;
...
@@ -10,11 +10,9 @@ import java.util.Map;
*/
*/
public
enum
WorkFlowBranchEnum
{
public
enum
WorkFlowBranchEnum
{
DAILY
(
"日常检查"
,
"company-external"
,
"daily"
,
"daily"
),
DAILY
(
"日常检查"
,
"company"
,
"daily"
,
"daily"
),
SPECIAL
(
"专项检查"
,
"company-external"
,
"special"
,
"special"
),
SPECIAL_C
(
"专项检查"
,
"company"
,
"special"
,
"special"
),
SUPERVISED_DW
(
"单位级审核"
,
"department"
,
"special-daily"
,
"supervised"
);
SPECIAL_E
(
"专项检查"
,
"external"
,
"special-daily"
,
"special"
),
SUPERVISED_DW
(
"单位级审核"
,
"department"
,
"special-daily"
,
"supervised"
);
/**
/**
* 名称,描述
* 名称,描述
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-supervision-api/src/main/java/com/yeejoin/amos/supervision/core/common/dto/DangerDto.java
View file @
2f3fc17f
...
@@ -63,7 +63,7 @@ public class DangerDto implements Serializable {
...
@@ -63,7 +63,7 @@ public class DangerDto implements Serializable {
/**
/**
* 整改期限
* 整改期限
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
//
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private
Date
reformLimitDate
;
private
Date
reformLimitDate
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
2f3fc17f
...
@@ -554,6 +554,8 @@
...
@@ -554,6 +554,8 @@
a.region_code LIKE CONCAT('%', #{item}, '%')
a.region_code LIKE CONCAT('%', #{item}, '%')
</foreach>
</foreach>
</if>
</if>
order by a.call_time desc
</select>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
2f3fc17f
...
@@ -180,7 +180,7 @@ public class EquipmentDetailController extends AbstractBaseController {
...
@@ -180,7 +180,7 @@ public class EquipmentDetailController extends AbstractBaseController {
// 编辑同步redis装备iotcode数据
// 编辑同步redis装备iotcode数据
syncDataService
.
saveOrUpdateEquipIotCodeRedisData
(
null
);
syncDataService
.
saveOrUpdateEquipIotCodeRedisData
(
null
);
if
(
syncSwitch
)
{
if
(
syncSwitch
)
{
equipmentSpecificSerivce
.
equipSpecificDataSync
(
equipmentId
);
equipmentSpecificSerivce
.
equipSpecificDataSync
(
date
.
getEquipmentSpecific
().
getId
()
);
}
}
EquipmentDetailController
controllerProxy
=
SpringUtils
.
getBean
(
EquipmentDetailController
.
class
);
EquipmentDetailController
controllerProxy
=
SpringUtils
.
getBean
(
EquipmentDetailController
.
class
);
controllerProxy
.
refreshCount
(
vo
.
getBizOrgCode
());
controllerProxy
.
refreshCount
(
vo
.
getBizOrgCode
());
...
@@ -291,7 +291,7 @@ public class EquipmentDetailController extends AbstractBaseController {
...
@@ -291,7 +291,7 @@ public class EquipmentDetailController extends AbstractBaseController {
// 编辑同步redis装备iotcode数据
// 编辑同步redis装备iotcode数据
syncDataService
.
saveOrUpdateEquipIotCodeRedisData
(
null
);
syncDataService
.
saveOrUpdateEquipIotCodeRedisData
(
null
);
if
(
syncSwitch
)
{
if
(
syncSwitch
)
{
equipmentSpecificSerivce
.
equipSpecificDataSync
(
bean
.
getEquipmen
tId
());
equipmentSpecificSerivce
.
equipSpecificDataSync
(
equipmentSpecific
.
ge
tId
());
}
}
// 刷新缓存,新的单位和之前的单位都刷新
// 刷新缓存,新的单位和之前的单位都刷新
EquipmentDetailController
controllerProxy
=
SpringUtils
.
getBean
(
EquipmentDetailController
.
class
);
EquipmentDetailController
controllerProxy
=
SpringUtils
.
getBean
(
EquipmentDetailController
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
2f3fc17f
...
@@ -185,7 +185,8 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -185,7 +185,8 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
LocalDateTime
createDate
=
(
LocalDateTime
)
x
.
get
(
"createDate"
);
LocalDateTime
createDate
=
(
LocalDateTime
)
x
.
get
(
"createDate"
);
x
.
put
(
"createDate"
,
Date
.
from
(
createDate
.
atZone
(
ZoneId
.
systemDefault
()).
toInstant
()));
x
.
put
(
"createDate"
,
Date
.
from
(
createDate
.
atZone
(
ZoneId
.
systemDefault
()).
toInstant
()));
x
.
put
(
"handleType"
,
ConfirmAlamEnum
.
getTypeByCode
(
String
.
valueOf
(
x
.
get
(
"handleType"
))));
x
.
put
(
"handleType"
,
ConfirmAlamEnum
.
getTypeByCode
(
String
.
valueOf
(
x
.
get
(
"handleType"
))));
x
.
put
(
"fireEquipmentName"
,
x
.
get
(
"fireEquipmentName"
));
// 冗余统一跑马灯显示字段取值
x
.
put
(
"equipmentSpecificIndexName"
,
x
.
get
(
"fireEquipmentSpecificIndexName"
));
}
}
}
}
return
resultPage
;
return
resultPage
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
2f3fc17f
...
@@ -1981,7 +1981,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -1981,7 +1981,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
// 登录人为整改责任人
// 登录人为整改责任人
pageParam
.
put
(
"reformLeaderId"
,
jcsUserId
);
pageParam
.
put
(
"reformLeaderId"
,
jcsUserId
);
// 登录人单位
// 登录人单位
pageParam
.
put
(
"bizOrgCode"
,
person
.
get
(
"bizOrgCode"
).
toString
().
substring
(
0
,
6
));
pageParam
.
put
(
"bizOrgCode"
,
person
.
get
(
"bizOrgCode"
).
toString
().
substring
(
0
,
12
));
// 登录人为治理人
// 登录人为治理人
pageParam
.
put
(
"governUserId"
,
jcsUserId
);
pageParam
.
put
(
"governUserId"
,
jcsUserId
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/HiddenDangerServiceImpl.java
View file @
2f3fc17f
...
@@ -10,6 +10,7 @@ import com.google.common.collect.Lists;
...
@@ -10,6 +10,7 @@ import com.google.common.collect.Lists;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.excel.DataSources
;
import
com.yeejoin.amos.boot.biz.common.excel.DataSources
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.supervision.business.dao.mapper.HiddenDangerMapper
;
import
com.yeejoin.amos.supervision.business.dao.mapper.HiddenDangerMapper
;
import
com.yeejoin.amos.supervision.business.dao.repository.ICheckInputDao
;
import
com.yeejoin.amos.supervision.business.dao.repository.ICheckInputDao
;
...
@@ -40,6 +41,7 @@ import org.springframework.stereotype.Service;
...
@@ -40,6 +41,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.DateUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.DataNotFound
;
import
org.typroject.tyboot.core.restful.exception.instance.DataNotFound
;
...
@@ -172,6 +174,7 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
...
@@ -172,6 +174,7 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
r
.
setInputItemName
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getInputItemName
()
:
""
);
r
.
setInputItemName
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getInputItemName
()
:
""
);
r
.
setDangerTypeName
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getDangerTypeName
()
:
""
);
r
.
setDangerTypeName
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getDangerTypeName
()
:
""
);
r
.
setDangerType
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getDangerType
()
:
""
);
r
.
setDangerType
(
hiddenDangerDto
!=
null
?
hiddenDangerDto
.
getDangerType
()
:
""
);
r
.
setReformLimitDate
(
DateUtils
.
longStr2Date
(
DateUtils
.
date2LongStr
(
r
.
getReformLimitDate
())));
});
});
return
dangerDtoIPage
;
return
dangerDtoIPage
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanServiceImpl.java
View file @
2f3fc17f
...
@@ -292,7 +292,7 @@ public class PlanServiceImpl implements IPlanService {
...
@@ -292,7 +292,7 @@ public class PlanServiceImpl implements IPlanService {
List
<
Map
<
String
,
String
>>
enumList
=
WorkFlowBranchEnum
.
getEnumList
();
List
<
Map
<
String
,
String
>>
enumList
=
WorkFlowBranchEnum
.
getEnumList
();
if
(!
ObjectUtils
.
isEmpty
(
enumList
)){
if
(!
ObjectUtils
.
isEmpty
(
enumList
)){
List
<
Map
<
String
,
String
>>
list
=
enumList
.
stream
().
filter
(
map
->
List
<
Map
<
String
,
String
>>
list
=
enumList
.
stream
().
filter
(
map
->
(
dangerCheckTypeLevel
.
equal
s
(
map
.
get
(
"dangerCheckTypeLevel"
))
&&
map
.
get
(
"checkType"
).
contains
(
checkType
)
(
dangerCheckTypeLevel
.
contain
s
(
map
.
get
(
"dangerCheckTypeLevel"
))
&&
map
.
get
(
"checkType"
).
contains
(
checkType
)
)).
collect
(
Collectors
.
toList
());
)).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
if
(!
ObjectUtils
.
isEmpty
(
list
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
2f3fc17f
...
@@ -336,7 +336,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -336,7 +336,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
}
}
list
.
add
(
alertHandlerInfoDto
);
list
.
add
(
alertHandlerInfoDto
);
}
}
map
.
put
(
"agReturnVisit"
,
dispatchPaper
.
getFeedback
Time
());
map
.
put
(
"agReturnVisit"
,
dispatchPaper
.
getFeedback
FinishTime
());
// 修复BUG 3439 by kongfm
}
else
{
}
else
{
for
(
String
s:
str
)
{
for
(
String
s:
str
)
{
AlertHandlerInfoDto
alertHandlerInfoDto
=
new
AlertHandlerInfoDto
();
AlertHandlerInfoDto
alertHandlerInfoDto
=
new
AlertHandlerInfoDto
();
...
...
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
2f3fc17f
...
@@ -3103,80 +3103,149 @@ GROUP BY
...
@@ -3103,80 +3103,149 @@ GROUP BY
-- ----------------------------
-- ----------------------------
-- View structure for v_fire_cafs_fightingsys_equip_count
-- View structure for v_fire_cafs_fightingsys_equip_count
-- ----------------------------
-- ----------------------------
DROP
VIEW
DROP
VIEW
IF
EXISTS
`v_fire_cafs_fightingsys_equip_count`
;
IF
EXISTS
`v_fire_cafs_fightingsys_equip_count`
;
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_cafs_fightingsys_equip_count`
AS
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_cafs_fightingsys_equip_count`
AS
SELECT
SELECT
SUM
(
sum
(
CASE
(
WHEN
temp
.
`value`
=
'true'
THEN
CASE
1
WHEN
(
`temp`
.
`value`
=
'true'
)
THEN
ELSE
1
0
ELSE
END
0
)
AS
total
,
END
temp
.
fieldlabel
,
)
temp
.
fieldname
)
AS
`total`
,
`temp`
.
`fieldlabel`
AS
`fieldlabel`
,
`temp`
.
`fieldname`
AS
`fieldname`
FROM
FROM
(
(
SELECT
SELECT
CASE
(
WHEN
esi
.
equipment_index_key
LIKE
'%Run'
THEN
CASE
'Run'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Stop'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Run'
'Stop'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Open'
THEN
'Run'
'Open'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Close'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Stop'
'Close'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Fault'
THEN
'Stop'
'Fault'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%RemoteControl'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%_Open'
'RemoteControl'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Alarm'
THEN
'Open'
'Alarm'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Abnormal'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Close'
'Abnormal'
)
THEN
END
AS
fieldname
,
'Close'
CASE
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Run'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Fault'
'运行'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Stop'
THEN
'Fault'
'停止'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Open'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%_RemoteControl'
'开到位'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Close'
THEN
'RemoteControl'
'关到位'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Fault'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Alarm'
'故障'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%RemoteControl'
THEN
'Alarm'
'远方'
WHEN
(
WHEN
esi
.
equipment_index_key
LIKE
'%Alarm'
THEN
`esi`
.
`equipment_index_key`
LIKE
'%Abnormal'
'告警'
)
THEN
WHEN
esi
.
equipment_index_key
LIKE
'%Abnormal'
THEN
'Abnormal'
'异常'
END
END
AS
fieldlabel
,
)
AS
`fieldname`
,
esi
.
`value`
(
FROM
CASE
wl_equipment_specific_index
esi
WHEN
(
LEFT
JOIN
wl_equipment_specific
es
ON
es
.
id
=
esi
.
equipment_specific_id
`esi`
.
`equipment_index_key`
LIKE
'%Run'
LEFT
JOIN
f_fire_fighting_system
fs
ON
find_in_set
(
`fs`
.
`id`
,
`es`
.
`system_id`
)
)
THEN
WHERE
'运行'
fs
.
`code`
=
'029026401813010000000023'
WHEN
(
AND
(
`esi`
.
`equipment_index_key`
LIKE
'%Stop'
esi
.
equipment_index_key
LIKE
'%Run'
)
THEN
OR
esi
.
equipment_index_key
LIKE
'%Stop'
'停止'
OR
esi
.
equipment_index_key
LIKE
'%Open'
WHEN
(
OR
esi
.
equipment_index_key
LIKE
'%Close'
`esi`
.
`equipment_index_key`
LIKE
'%_Open'
OR
esi
.
equipment_index_key
LIKE
'%Fault'
)
THEN
OR
esi
.
equipment_index_key
LIKE
'%RemoteControl'
'开到位'
OR
esi
.
equipment_index_key
LIKE
'%Alarm'
WHEN
(
OR
esi
.
equipment_index_key
LIKE
'%Abnormal'
`esi`
.
`equipment_index_key`
LIKE
'%Close'
)
)
THEN
)
temp
'关到位'
WHEN
(
`esi`
.
`equipment_index_key`
LIKE
'%Fault'
)
THEN
'故障'
WHEN
(
`esi`
.
`equipment_index_key`
LIKE
'%_RemoteControl'
)
THEN
'远方'
WHEN
(
`esi`
.
`equipment_index_key`
LIKE
'%Alarm'
)
THEN
'告警'
WHEN
(
`esi`
.
`equipment_index_key`
LIKE
'%Abnormal'
)
THEN
'异常'
END
)
AS
`fieldlabel`
,
`esi`
.
`value`
AS
`value`
FROM
(
(
`wl_equipment_specific_index`
`esi`
LEFT
JOIN
`wl_equipment_specific`
`es`
ON
(
(
`es`
.
`id`
=
`esi`
.
`equipment_specific_id`
)
)
)
LEFT
JOIN
`f_fire_fighting_system`
`fs`
ON
(
(
0
<>
find_in_set
(
`fs`
.
`id`
,
`es`
.
`system_id`
)
)
)
)
WHERE
(
(
`fs`
.
`code`
=
'029026401813010000000023'
)
AND
(
(
`esi`
.
`equipment_index_key`
LIKE
'%Run'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%Stop'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%_Open'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%Close'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%Fault'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%_RemoteControl'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%Alarm'
)
OR
(
`esi`
.
`equipment_index_key`
LIKE
'%Abnormal'
)
)
)
)
`temp`
GROUP
BY
GROUP
BY
temp
.
fieldlabel
,
`temp`
.
`fieldlabel`
,
temp
.
fieldname
;
`temp`
.
`fieldname`
;
-- ----------------------------
-- ----------------------------
-- View structure for v_person_plan_task
-- View structure for v_person_plan_task
-- ----------------------------
-- ----------------------------
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
2f3fc17f
...
@@ -199,16 +199,17 @@
...
@@ -199,16 +199,17 @@
AS fireEquipmentPointValue,
AS fireEquipmentPointValue,
wlesal.type AS type,
wlesal.type AS type,
wlesal.create_date AS createDate,
wlesal.create_date AS createDate,
wlesal.location AS warehouseStructureName,
CONCAT_WS(' ', wles.position,wled.area) AS warehouseStructureName, /*告警列表拼接详细地址*/
(select
(select
group_concat(fet.`name`)
group_concat(fet.`name`)
from f_equipment_fire_equipment as fefe
from f_equipment_fire_equipment as fefe
left join f_equipment as fet on fet.id = fefe.equipment_id
left join f_equipment as fet on fet.id = fefe.equipment_id
where fefe.fire_equipment_id = wlesal.equipment_specific_id
where fefe.fire_equipment_id = wlesal.equipment_specific_id
) as equipmentName
) as equipmentName,
wlesal.equipment_specific_name as equipmentSpecificName,
wles.position
FROM wl_equipment_specific_alarm_log wlesal
FROM wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
left join wl_stock_detail as wsd on wsd.equipment_specific_id = wlesal.equipment_specific_id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
) d
) d
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
2f3fc17f
...
@@ -807,7 +807,7 @@
...
@@ -807,7 +807,7 @@
LEFT JOIN wl_area a ON a.id = es.area_id
LEFT JOIN wl_area a ON a.id = es.area_id
<where>
<where>
<if
test=
"equipmentId != null"
>
<if
test=
"equipmentId != null"
>
e
d.equipment_
id = #{equipmentId}
e
s.
id = #{equipmentId}
</if>
</if>
</where>
</where>
</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