|
|
@ -76,7 +76,7 @@
|
|
|
|
where dict_label = 'device_refresh_time'
|
|
|
|
where dict_label = 'device_refresh_time'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<!--设备稳定性 MTBF 每日-->
|
|
|
|
<!--设备稳定性 MTBF 年月日-->
|
|
|
|
<select id="getMTBFList" parameterType="EquOperation" resultType="com.op.device.domain.EquOperation">
|
|
|
|
<select id="getMTBFList" parameterType="EquOperation" resultType="com.op.device.domain.EquOperation">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
row_number() over (order by sum(
|
|
|
|
row_number() over (order by sum(
|
|
|
@ -108,17 +108,7 @@
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
SUM(CASE WHEN equipment_status = '1' or equipment_status = '3' THEN 1 Else 0 END) AS operationEquipment,
|
|
|
|
SUM(CASE WHEN equipment_status = '1' or equipment_status = '3' THEN 1 Else 0 END) AS operationEquipment,
|
|
|
|
SUM(CASE WHEN equipment_status = '0' or equipment_status = '2' THEN 1 Else 0 END) AS faultEquipment,
|
|
|
|
SUM(CASE WHEN equipment_status = '0' or equipment_status = '2' THEN 1 Else 0 END) AS faultEquipment,
|
|
|
|
COUNT(*) AS totalEquipment,
|
|
|
|
COUNT(*) AS totalEquipment
|
|
|
|
(
|
|
|
|
|
|
|
|
SELECT COUNT(id)
|
|
|
|
|
|
|
|
FROM equ_operation
|
|
|
|
|
|
|
|
WHERE '4%' > failure_rate AND CONVERT(date, create_time) = CONVERT(date, GETDATE())
|
|
|
|
|
|
|
|
)*100 /
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
SELECT COUNT(id)
|
|
|
|
|
|
|
|
FROM equ_operation
|
|
|
|
|
|
|
|
WHERE CONVERT(date, create_time) = CONVERT(date, GETDATE())
|
|
|
|
|
|
|
|
) AS intactRate
|
|
|
|
|
|
|
|
FROM base_equipment
|
|
|
|
FROM base_equipment
|
|
|
|
WHERE del_flag = '0' AND status = '1'
|
|
|
|
WHERE del_flag = '0' AND status = '1'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|