|
@@ -13,7 +13,7 @@
|
|
select *,
|
|
select *,
|
|
if((select count(1) from s_contract_meter_period cmp
|
|
if((select count(1) from s_contract_meter_period cmp
|
|
where contract_id = #{contractId} and is_deleted = 0 and sfp.period_year = cmp.period_year
|
|
where contract_id = #{contractId} and is_deleted = 0 and sfp.period_year = cmp.period_year
|
|
- and approve_status in (2,3))=0,0,1) as citeStatus
|
|
|
|
|
|
+ and approve_status in (1,2))=0,0,1) as citeStatus
|
|
from s_form_period sfp
|
|
from s_form_period sfp
|
|
where is_deleted = 0 and contract_id = #{contractId}
|
|
where is_deleted = 0 and contract_id = #{contractId}
|
|
ORDER BY period_year
|
|
ORDER BY period_year
|
|
@@ -22,7 +22,7 @@
|
|
select
|
|
select
|
|
if((select count(1) from s_contract_meter_period cmp
|
|
if((select count(1) from s_contract_meter_period cmp
|
|
where cmp.contract_id = sfp.contract_id and is_deleted = 0 and sfp.period_year = cmp.period_year
|
|
where cmp.contract_id = sfp.contract_id and is_deleted = 0 and sfp.period_year = cmp.period_year
|
|
- and approve_status in (2,3))=0,0,1)
|
|
|
|
|
|
+ and approve_status in (1,2))=0,0,1)
|
|
from s_form_period sfp
|
|
from s_form_period sfp
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|