|
@@ -40,7 +40,8 @@
|
|
|
<select id="allPeriod" resultType="org.springblade.meter.vo.ContractMeterPeriodVO">
|
|
|
select *,
|
|
|
if((select count(1) from s_middle_meter_apply mma where contract_id = #{contractId} and is_deleted = 0 and mma.contract_period_id = cmp.id)=0,0,1) as dataStatus,
|
|
|
- if((select count(1) from s_interim_pay_certificate ipc where contract_id = #{contractId} and is_deleted = 0 and ipc.contract_period_id = cmp.id)=0,0,1) as citeStatus
|
|
|
+ if((select count(1) from s_interim_pay_certificate ipc where contract_id = #{contractId} and is_deleted = 0 and ipc.contract_period_id = cmp.id)=0,0,1) as citeStatus,
|
|
|
+ if((select count(1) from s_contract_material_adjust cma where contract_id = #{contractId} and is_deleted = 0 and cma.meter_period_id = cmp.id)=0,0,1) as citeStatus2
|
|
|
from s_contract_meter_period cmp
|
|
|
where is_deleted = 0 and contract_id = #{contractId}
|
|
|
ORDER BY sort
|