Commit 254a0712 authored by maoying's avatar maoying

合并station分支代码

parents 91ee7568 f4a9ecae
...@@ -17,8 +17,8 @@ public enum SystemTypeEnum { ...@@ -17,8 +17,8 @@ public enum SystemTypeEnum {
fireFoamMistSys("fireFoamMistSys", "细水雾涡扇炮系统"), fireFoamMistSys("fireFoamMistSys", "细水雾涡扇炮系统"),
fireWaterSys("fireWaterSys", "消防给水系统"), fireWaterSys("fireWaterSys", "消防给水系统"),
otherSys("otherSys", "其他系统"), otherSys("otherSys", "其他系统"),
envMonitoringSys("envMonitoringSys", "环境监测系统"); envMonitoringSys("envMonitoringSys", "环境监测系统"),
fireSpraySys("fireSpraySys","换流变水喷雾系统");
private String code; private String code;
......
...@@ -124,6 +124,36 @@ public class CommonPageInfoParam extends CommonPageable { ...@@ -124,6 +124,36 @@ public class CommonPageInfoParam extends CommonPageable {
private String isRemovedFire; private String isRemovedFire;
private String equipmentCode;
private String indexTypeCode;
private String fireEquipmentSpecificIndexKey;
public void setFireEquipmentSpecificIndexKey(String fireEquipmentSpecificIndexKey) {
this.fireEquipmentSpecificIndexKey = fireEquipmentSpecificIndexKey;
}
public String getFireEquipmentSpecificIndexKey() {
return fireEquipmentSpecificIndexKey;
}
public String getIndexTypeCode() {
return indexTypeCode;
}
public void setIndexTypeCode(String indexTypeCode) {
this.indexTypeCode = indexTypeCode;
}
public String getEquipmentCode() {
return equipmentCode;
}
public void setEquipmentCode(String equipmentCode) {
this.equipmentCode = equipmentCode;
}
public void setIsRemovedFire(String isRemovedFire) { public void setIsRemovedFire(String isRemovedFire) {
this.isRemovedFire = isRemovedFire; this.isRemovedFire = isRemovedFire;
} }
......
...@@ -65,9 +65,19 @@ public class CommonPageParamUtil { ...@@ -65,9 +65,19 @@ public class CommonPageParamUtil {
param.setIsRemoveShield(toString(queryRequests.get(i).getValue())); param.setIsRemoveShield(toString(queryRequests.get(i).getValue()));
} else if("isRemovedFire".equals(name)){ } else if("isRemovedFire".equals(name)){
param.setIsRemovedFire(toString(queryRequests.get(i).getValue())); param.setIsRemovedFire(toString(queryRequests.get(i).getValue()));
<<<<<<< HEAD
} else if("bizOrgCode".equals(name)){ } else if("bizOrgCode".equals(name)){
param.setBizOrgCode(toString(queryRequests.get(i).getValue())); param.setBizOrgCode(toString(queryRequests.get(i).getValue()));
} }
=======
} else if("equipmentCode".equals(name)){
param.setEquipmentCode(toString(queryRequests.get(i).getValue()));
} else if("specificIndexKey".equals(name)){
param.setFireEquipmentSpecificIndexKey(toString(queryRequests.get(i).getValue()));
} else if("indexTypeCode".equals(name)){
param.setIndexTypeCode(toString(queryRequests.get(i).getValue()));
}
>>>>>>> develop_station
} }
if(commonPageable !=null){ if(commonPageable !=null){
param.setPageNumber(commonPageable.getPageNumber()); param.setPageNumber(commonPageable.getPageNumber());
......
...@@ -225,6 +225,7 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -225,6 +225,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
public ResponseModel listAlarmsPage(@RequestParam(value = "beginDate", required = false) String beginDate, public ResponseModel listAlarmsPage(@RequestParam(value = "beginDate", required = false) String beginDate,
@RequestParam(value = "endDate", required = false) String endDate, @RequestParam(value = "endDate", required = false) String endDate,
@RequestParam(value = "warehouseStructureName", required = false) String warehouseStructureName, @RequestParam(value = "warehouseStructureName", required = false) String warehouseStructureName,
// 此处equipCode指的是equipmentSpecificCode
@RequestParam(value = "equipCode", required = false) String equipCode, @RequestParam(value = "equipCode", required = false) String equipCode,
@RequestParam(value = "equipDetailCode", required = false) String equipDetailCode, @RequestParam(value = "equipDetailCode", required = false) String equipDetailCode,
@RequestParam(value = "confirmType", required = false) String confirmType, @RequestParam(value = "confirmType", required = false) String confirmType,
...@@ -235,6 +236,9 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -235,6 +236,9 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam(value = "id", required = false) String id, @RequestParam(value = "id", required = false) String id,
@RequestParam(value = "cleanStatus", required = false) String cleanStatus, @RequestParam(value = "cleanStatus", required = false) String cleanStatus,
@RequestParam(value = "isRemovedFire", required = false) String isRemovedFire, @RequestParam(value = "isRemovedFire", required = false) String isRemovedFire,
@RequestParam(value = "equipmentCode", required = false) String equipmentCode,
@RequestParam(value = "indexTypeCode", required = false) String indexTypeCode,
@RequestParam(value = "specificIndexKey", required = false) String specificIndexKey,
CommonPageable commonPageable) { CommonPageable commonPageable) {
List<CommonRequest> queryRequests = new ArrayList<>(); List<CommonRequest> queryRequests = new ArrayList<>();
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
...@@ -287,10 +291,28 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -287,10 +291,28 @@ public class EquipmentAlarmController extends AbstractBaseController {
request13.setName("isRemovedFire"); request13.setName("isRemovedFire");
request13.setValue(StringUtil.isNotEmpty(isRemovedFire) ? StringUtils.trimToNull(isRemovedFire) : null); request13.setValue(StringUtil.isNotEmpty(isRemovedFire) ? StringUtils.trimToNull(isRemovedFire) : null);
queryRequests.add(request13); queryRequests.add(request13);
CommonRequest request15 = new CommonRequest(); CommonRequest request15 = new CommonRequest();
request15.setName("equipDetailCode"); request15.setName("equipDetailCode");
request15.setValue(StringUtil.isNotEmpty(equipDetailCode) ? StringUtils.trimToNull(equipDetailCode) : null); request15.setValue(StringUtil.isNotEmpty(equipDetailCode) ? StringUtils.trimToNull(equipDetailCode) : null);
queryRequests.add(request15); queryRequests.add(request15);
CommonRequest request16 = new CommonRequest();
request16.setName("specificIndexKey");
request16.setValue(StringUtil.isNotEmpty(specificIndexKey) ? StringUtils.trimToNull(specificIndexKey) : null);
queryRequests.add(request16);
CommonRequest request17 = new CommonRequest();
request17.setName("indexTypeCode");
request17.setValue(StringUtil.isNotEmpty(indexTypeCode) ? StringUtils.trimToNull(indexTypeCode) : null);
queryRequests.add(request17);
CommonRequest request18 = new CommonRequest();
request18.setName("equipmentCode");
request18.setValue(StringUtil.isNotEmpty(equipmentCode) ? StringUtils.trimToNull(equipmentCode) : null);
queryRequests.add(request18);
if (equioEnabled){ if (equioEnabled){
if (!ValidationUtil.isEmpty(reginParams.getPersonIdentity())){ if (!ValidationUtil.isEmpty(reginParams.getPersonIdentity())){
CommonRequest request14 = new CommonRequest(); CommonRequest request14 = new CommonRequest();
...@@ -305,6 +327,7 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -305,6 +327,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
} }
CommonPageInfoParam param = CommonPageParamUtil.fillCommonPageInfoParam(queryRequests, commonPageable); CommonPageInfoParam param = CommonPageParamUtil.fillCommonPageInfoParam(queryRequests, commonPageable);
org.springframework.data.domain.Page<AlarmListDataVO> list = iEquipmentSpecificAlarmService.listAlarmsPage(param); org.springframework.data.domain.Page<AlarmListDataVO> list = iEquipmentSpecificAlarmService.listAlarmsPage(param);
return CommonResponseUtil.success(list); return CommonResponseUtil.success(list);
} }
......
...@@ -672,14 +672,14 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -672,14 +672,14 @@ public class FireFightingSystemController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "按照组态格式获取系统报警,或者建筑报警列表", notes = "按照组态格式获取系统报警,或者建筑报警列表") @ApiOperation(value = "按照组态格式获取系统报警,或者建筑报警列表", notes = "按照组态格式获取系统报警,或者建筑报警列表")
@GetMapping(value = "/getEquipmentAlarmBySystemIdOrSourceIdVO/{Systemtype}/{id}") @GetMapping(value = "/getEquipmentAlarmBySystemIdOrSourceIdVO/{Systemtype}/{id}")
public IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO(Integer pageSize, Integer current, Integer confirmType, String createDate, String type, @PathVariable String Systemtype, @PathVariable Long id) { public IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO(Integer pageSize, Integer current, Integer confirmType, String createDate, String type, @PathVariable String Systemtype, @PathVariable Long id, String equipmentId) {
Page<EquipmentAlarmBySystemIdOrSourceIdVO> page = new Page(); Page<EquipmentAlarmBySystemIdOrSourceIdVO> page = new Page();
page.setCurrent(current); page.setCurrent(current);
page.setSize(pageSize); page.setSize(pageSize);
if (("building").equals(Systemtype)) { if (("building").equals(Systemtype)) {
return fireFightingSystemService.getEquipmentAlarmBySystemIdOrSourceIdVO(page, id, null, confirmType, createDate, type); return fireFightingSystemService.getEquipmentAlarmBySystemIdOrSourceIdVO(page, id, null, confirmType, createDate, type, equipmentId);
} else if ("system".equals(Systemtype)) { } else if ("system".equals(Systemtype)) {
return fireFightingSystemService.getEquipmentAlarmBySystemIdOrSourceIdVO(page, null, id, confirmType, createDate, type); return fireFightingSystemService.getEquipmentAlarmBySystemIdOrSourceIdVO(page, null, id, confirmType, createDate, type, equipmentId);
} else { } else {
return page; return page;
} }
......
...@@ -111,7 +111,8 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE ...@@ -111,7 +111,8 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
, @Param("systemId") Long systemId , @Param("systemId") Long systemId
, @Param("confirmType") Integer confirmType , @Param("confirmType") Integer confirmType
, @Param("createDate") String createDate , @Param("createDate") String createDate
, @Param("type") String type); , @Param("type") String type
, @Param("equipmentId")String equipmentId);
IPage<EquipTypeImgAmountVO> getColaCategoryAmountList(@Param("page") IPage page, IPage<EquipTypeImgAmountVO> getColaCategoryAmountList(@Param("page") IPage page,
@Param("hierarchy") int hierarchy, @Param("hierarchy") int hierarchy,
...@@ -128,6 +129,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE ...@@ -128,6 +129,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
@Param("codeHead") String codeHead, @Param("codeHead") String codeHead,
@Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage); @Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage);
IPage<EquipTypeImgAmountVO> getColaCategoryAmountEquList(@Param("page") IPage page, IPage<EquipTypeImgAmountVO> getColaCategoryAmountEquList(@Param("page") IPage page,
@Param("hierarchy") int hierarchy, @Param("hierarchy") int hierarchy,
@Param("codeHead") String codeHead, @Param("codeHead") String codeHead,
...@@ -196,6 +198,9 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE ...@@ -196,6 +198,9 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Map<String, Object> fireWaterSysPipeNetwork(); Map<String, Object> fireWaterSysPipeNetwork();
Map<String,Object> fireWaterSysPipeStatus();
/** /**
* 消防水系统-》消火栓按钮 * 消防水系统-》消火栓按钮
* *
......
package com.yeejoin.equipmanage.service; package com.yeejoin.equipmanage.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
...@@ -8,13 +12,18 @@ import com.yeejoin.amos.feign.morphic.model.ResourceDTO; ...@@ -8,13 +12,18 @@ import com.yeejoin.amos.feign.morphic.model.ResourceDTO;
import com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem; import com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem;
import com.yeejoin.equipmanage.common.entity.FireFightingSystemEntity; import com.yeejoin.equipmanage.common.entity.FireFightingSystemEntity;
import com.yeejoin.equipmanage.common.entity.dto.EquipTypeAmountPageDTO; import com.yeejoin.equipmanage.common.entity.dto.EquipTypeAmountPageDTO;
import com.yeejoin.equipmanage.common.entity.vo.*; import com.yeejoin.equipmanage.common.entity.vo.EquipCountBySystemVO;
import com.yeejoin.equipmanage.common.vo.*; import com.yeejoin.equipmanage.common.entity.vo.EquipTypeImgAmountVO;
import com.yeejoin.equipmanage.common.entity.vo.EquiplistSpecificBySystemVO;
import java.util.HashMap; import com.yeejoin.equipmanage.common.entity.vo.EquipmentAlarmBySystemIdOrSourceIdVO;
import java.util.LinkedList; import com.yeejoin.equipmanage.common.entity.vo.PointTreeVo;
import java.util.List; import com.yeejoin.equipmanage.common.vo.AlarmDataVO;
import java.util.Map; import com.yeejoin.equipmanage.common.vo.EquipmentManageVo;
import com.yeejoin.equipmanage.common.vo.FireFightingSystem3dVo;
import com.yeejoin.equipmanage.common.vo.FireFightingSystemTreeVo;
import com.yeejoin.equipmanage.common.vo.FireFightingSystemTypeTreeVo;
import com.yeejoin.equipmanage.common.vo.FireFightingSystemVo;
import com.yeejoin.equipmanage.common.vo.SpeIndexVo;
public interface IFireFightingSystemService extends IService<FireFightingSystemEntity> { public interface IFireFightingSystemService extends IService<FireFightingSystemEntity> {
...@@ -112,8 +121,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE ...@@ -112,8 +121,7 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
*/ */
List<AlarmDataVO> getSystemById(Long id); List<AlarmDataVO> getSystemById(Long id);
IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO(IPage<EquipmentAlarmBySystemIdOrSourceIdVO> page, Long sourceId, Long systemId, Integer confirmType, String createDate, String type); IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO(IPage<EquipmentAlarmBySystemIdOrSourceIdVO> page,Long sourceId,Long systemId,Integer confirmType,String createDate,String type, String equipmentId);
/** /**
* 删除装备系统 * 删除装备系统
......
...@@ -957,11 +957,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -957,11 +957,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
} }
@Override @Override
public IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO( public IPage<EquipmentAlarmBySystemIdOrSourceIdVO> getEquipmentAlarmBySystemIdOrSourceIdVO(IPage<EquipmentAlarmBySystemIdOrSourceIdVO> page, Long sourceId, Long systemId, Integer confirmType, String createDate, String type, String equipmentId) {
IPage<EquipmentAlarmBySystemIdOrSourceIdVO> page, Long sourceId, Long systemId, Integer confirmType, return this.baseMapper.getEquipmentAlarmBySystemIdOrSourceIdVO(page, sourceId, systemId, confirmType, createDate, type, equipmentId);
String createDate, String type) {
return this.baseMapper.getEquipmentAlarmBySystemIdOrSourceIdVO(page, sourceId, systemId, confirmType,
createDate, type);
} }
private static String getInet4Address() { private static String getInet4Address() {
...@@ -1031,6 +1028,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -1031,6 +1028,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
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()); this.putAll(data, fireFightingSystemMapper.fireWaterSysPipeNetwork());
// this.putAll(data, fireFightingSystemMapper.fireWaterSysPipeStatus());
} else { } else {
data = fireFightingSystemMapper.otherSysIndexNumAndTotal(); data = fireFightingSystemMapper.otherSysIndexNumAndTotal();
} }
......
...@@ -1319,6 +1319,7 @@ ...@@ -1319,6 +1319,7 @@
es.id, es.id,
ed.`name`, ed.`name`,
es.`code`, es.`code`,
es.equipment_code AS equipmentCode,
es.`qr_code` AS qrCde, es.`qr_code` AS qrCde,
es.system_id, es.system_id,
ws.full_name as location ws.full_name as location
......
...@@ -746,6 +746,9 @@ ...@@ -746,6 +746,9 @@
<if test='confirmType != null and confirmType == 3'> <if test='confirmType != null and confirmType == 3'>
and wlesal.clean_time IS NOT NULL and wlesal.clean_time IS NOT NULL
</if> </if>
<if test='equipmentId != null'>
and wlesal.equipment_id=#{equipmentId}
</if>
</where> </where>
) d ) d
<where> <where>
...@@ -1162,288 +1165,16 @@ ...@@ -1162,288 +1165,16 @@
`wl_equipment_specific_index` si `wl_equipment_specific_index` si
WHERE WHERE
si.equipment_index_key = 'SCS_FireDamper_FireAlarm' si.equipment_index_key = 'SCS_FireDamper_FireAlarm'
) AS fhznum ) AS fhznum,
(SELECT
count(1)
from
`wl_equipment_specific_index` si
where
si.equipment_index_key = 'FAS_VESDA_SignalMAction') as vesdanum
</select> </select>
<select id="fireAlarmSysIndexNumber" resultType="java.util.Map"> <select id="fireAlarmSysIndexNumber" resultType="java.util.Map">
SELECT SELECT * FROM v_fire_fas_index_num
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SmokeAlarm_Shield'
AND s.`value` = 'true'
) AS ywtcqpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SmokeAlarm_Fault'
AND s.`value` = 'true'
) AS ywtcqgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SmokeAlarm_FireAlarm'
AND s.`value` = 'true'
) AS ywtcqhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SoundLightAlarm_Shield'
AND s.`value` = 'true'
) AS sgbjqpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SoundLightAlarm_Fault'
AND s.`value` = 'true'
) AS sgbjqgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_SoundLightAlarm_FireAlarm'
AND s.`value` = 'true'
) AS sgbjqhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_InfraredLight_Shield'
AND s.`value` = 'true'
) AS hwdspb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_InfraredLight_Fault'
AND s.`value` = 'true'
) AS hwdsgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_InfraredLight_FireAlarm'
AND s.`value` = 'true'
) AS hwdshj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_ManualAlarm_Shield'
AND s.`value` = 'true'
) AS sdbjapb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_ManualAlarm_Fault'
AND s.`value` = 'true'
) AS sdbjagz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_ManualAlarm_FireAlarm'
AND s.`value` = 'true'
) AS sdbjahj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureCable_Shield'
AND s.`value` = 'true'
) AS gwdlpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureCable_Fault'
AND s.`value` = 'true'
) AS gwdlgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureCable_FireAlarm'
AND s.`value` = 'true'
) AS gwdlhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureFireDetector_Shield'
AND s.`value` = 'true'
) AS fbwgpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureFireDetector_Fault'
AND s.`value` = 'true'
) AS fbwggz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_TemperatureFireDetector_FireAlarm'
AND s.`value` = 'true'
) AS fbwgqhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_AirSampler_Shield'
AND s.`value` = 'true'
) AS kqcypb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_AirSampler_Fault'
AND s.`value` = 'true'
) AS kqcygz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_AirSampler_FireAlarm'
AND s.`value` = 'true'
) AS kqcyhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_UltravioletLight_Shield'
AND s.`value` = 'true'
) AS zwhypb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_UltravioletLight_Fault'
AND s.`value` = 'true'
) AS zwhygz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FAS_UltravioletLight_FireAlarm'
AND s.`value` = 'true'
) AS zwhyhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_Shield'
AND s.`value` = 'true'
) AS fhzpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_Fault'
AND s.`value` = 'true'
) AS fhzgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_FireAlarm'
AND s.`value` = 'true'
) AS fhzhj,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FES_FireBroadcast_Shield'
AND s.`value` = 'true'
) AS yjgbpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FES_FireBroadcast_Fault'
AND s.`value` = 'true'
) AS yjgbgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'FES_FireBroadcast_Start'
AND s.`value` = 'true'
) AS yjgbqd,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'FES_FireBroadcast_Start'
) AS yjgbnum
</select> </select>
<select id="fireWaterSysHydrant" resultType="java.util.Map"> <select id="fireWaterSysHydrant" resultType="java.util.Map">
SELECT SELECT
...@@ -1669,6 +1400,18 @@ ...@@ -1669,6 +1400,18 @@
LIMIT 1 LIMIT 1
</select> </select>
<select id="fireWaterSysPipeStatus" resultType="java.util.Map">
SELECT
esi.`value`,
esi.equipment_index_key
FROM
`wl_equipment_specific_index` esi
LEFT JOIN wl_equipment_specific es ON es.id = esi.equipment_specific_id
WHERE
-- 此处为水喷雾系统code,水系统实现消息实时刷新
es.`code` = "011023306003020000010509"
</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>
...@@ -1697,7 +1440,10 @@ ...@@ -1697,7 +1440,10 @@
`d`.`mjnum` AS `mjnum`, `d`.`mjnum` AS `mjnum`,
`d`.`mjqd` AS `mjqd`, `d`.`mjqd` AS `mjqd`,
`d`.`mjgz` AS `mjgz`, `d`.`mjgz` AS `mjgz`,
`d`.`mjpb` AS `mjpb` `d`.`mjpb` AS `mjpb`,
`d`.fhzpb AS fhzpb,
`d`.fhzgz AS fhzgz,
`d`.fhzhj AS fhzhj
FROM FROM
( (
SELECT SELECT
...@@ -1910,7 +1656,34 @@ ...@@ -1910,7 +1656,34 @@
where where
si.equipment_index_key = 'ACS_AccessControl_Shield' si.equipment_index_key = 'ACS_AccessControl_Shield'
and si.`value` = 'true' and si.`value` = 'true'
) AS `mjpb` ) AS `mjpb`,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_Shield'
AND s.`value` = 'true'
) AS fhzpb,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_Fault'
AND s.`value` = 'true'
) AS fhzgz,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s
WHERE
s.equipment_index_key = 'SCS_FireDamper_FireAlarm'
AND s.`value` = 'true'
) AS fhzhj
) `d` ) `d`
</select> </select>
<select id="fireFoamSysEquipmentNumber" resultType="java.util.Map"> <select id="fireFoamSysEquipmentNumber" resultType="java.util.Map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment