|
@@ -343,7 +343,7 @@
|
|
|
GROUP BY b.equip_id
|
|
GROUP BY b.equip_id
|
|
|
) scheduling_info ON eb.ID = scheduling_info.equip_id
|
|
) scheduling_info ON eb.ID = scheduling_info.equip_id
|
|
|
<where>
|
|
<where>
|
|
|
- eb.deleted = 0 and eb.IS_EFFECTIVE != '否'
|
|
|
|
|
|
|
+ eb.deleted = 0 and eb.IS_EFFECTIVE = '是'
|
|
|
--and (select count(*) num_pipe from (
|
|
--and (select count(*) num_pipe from (
|
|
|
--select ped.ID
|
|
--select ped.ID
|
|
|
--from PRESSURE2_EQUIP_PIPE_DETAIL ped
|
|
--from PRESSURE2_EQUIP_PIPE_DETAIL ped
|
|
@@ -450,7 +450,7 @@
|
|
|
GROUP BY b.equip_id
|
|
GROUP BY b.equip_id
|
|
|
) scheduling_info ON eb.ID = scheduling_info.equip_id
|
|
) scheduling_info ON eb.ID = scheduling_info.equip_id
|
|
|
<where>
|
|
<where>
|
|
|
- eb.deleted = 0
|
|
|
|
|
|
|
+ eb.deleted = 0 and eb.IS_EFFECTIVE = '是'
|
|
|
<if test="unitName != null and unitName != ''">
|
|
<if test="unitName != null and unitName != ''">
|
|
|
AND eb.UNIT_NAME LIKE CONCAT('%',#{unitName},'%')
|
|
AND eb.UNIT_NAME LIKE CONCAT('%',#{unitName},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -629,7 +629,7 @@
|
|
|
where b.equip_id = eb.id and a.DELETED = 0 and b.DELETED = 0 and a.type = 200 order by a.CREATE_TIME DESC limit 1) plan_year_check_date
|
|
where b.equip_id = eb.id and a.DELETED = 0 and b.DELETED = 0 and a.type = 200 order by a.CREATE_TIME DESC limit 1) plan_year_check_date
|
|
|
from PRESSURE2_EQUIP_PIPE eb
|
|
from PRESSURE2_EQUIP_PIPE eb
|
|
|
<where>
|
|
<where>
|
|
|
- eb.deleted = 0
|
|
|
|
|
|
|
+ eb.deleted = 0 and eb.IS_EFFECTIVE = '是'
|
|
|
<if test="unitName != null and unitName != ''">
|
|
<if test="unitName != null and unitName != ''">
|
|
|
AND eb.unit_name LIKE CONCAT('%',#{unitName},'%')
|
|
AND eb.unit_name LIKE CONCAT('%',#{unitName},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -710,7 +710,7 @@
|
|
|
where b.equip_id = eb.id and a.DELETED = 0 and b.DELETED = 0 and a.type = 200 order by a.CREATE_TIME limit 1) plan_year_check_date
|
|
where b.equip_id = eb.id and a.DELETED = 0 and b.DELETED = 0 and a.type = 200 order by a.CREATE_TIME limit 1) plan_year_check_date
|
|
|
from PRESSURE2_EQUIP_PIPE eb
|
|
from PRESSURE2_EQUIP_PIPE eb
|
|
|
<where>
|
|
<where>
|
|
|
- eb.deleted = 0
|
|
|
|
|
|
|
+ eb.deleted = 0 and eb.IS_EFFECTIVE = '是'
|
|
|
<if test="unitName != null and unitName != ''">
|
|
<if test="unitName != null and unitName != ''">
|
|
|
AND eb.unit_name LIKE CONCAT('%',#{unitName},'%')
|
|
AND eb.unit_name LIKE CONCAT('%',#{unitName},'%')
|
|
|
</if>
|
|
</if>
|