|
@@ -191,7 +191,7 @@
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
and o.order_equ_id = #{id}
|
|
and o.order_equ_id = #{id}
|
|
</if>
|
|
</if>
|
|
- and o.order_status='1'
|
|
|
|
|
|
+ and o.order_status='6'
|
|
union
|
|
union
|
|
select 0,0,0,0,count(1) as num5,0, 0, 0, 0 from bt_order o
|
|
select 0,0,0,0,count(1) as num5,0, 0, 0, 0 from bt_order o
|
|
<if test="orgIds != null and orgIds != ''">
|
|
<if test="orgIds != null and orgIds != ''">
|
|
@@ -229,7 +229,7 @@
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
and o.order_equ_id = #{id}
|
|
and o.order_equ_id = #{id}
|
|
</if>
|
|
</if>
|
|
- and o.order_status = '1'
|
|
|
|
|
|
+ and o.order_status = '6'
|
|
union
|
|
union
|
|
select 0,0,0,0,0,0, count(p.id) as num7, 0, 0 from imcs_tenant_productionresource p where p.status = '1'
|
|
select 0,0,0,0,0,0, count(p.id) as num7, 0, 0 from imcs_tenant_productionresource p where p.status = '1'
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -256,7 +256,7 @@
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
and o.order_equ_id = #{id}
|
|
and o.order_equ_id = #{id}
|
|
</if>
|
|
</if>
|
|
- and o.order_status = '1'
|
|
|
|
|
|
+ and o.order_status = '6'
|
|
union
|
|
union
|
|
select 0,0,0,0,0,0, 0, 0, count(distinct p.id) from imcs_tenant_productionresource p left join bt_equ_barrel b on b.equ_id = p.id
|
|
select 0,0,0,0,0,0, 0, 0, count(distinct p.id) from imcs_tenant_productionresource p left join bt_equ_barrel b on b.equ_id = p.id
|
|
where p.status = '1' and b.residue_warn>=b.mtr_residue
|
|
where p.status = '1' and b.residue_warn>=b.mtr_residue
|