count(*) = ( SELECT count(*) FROM hygf_household_contract WHERE peasant_household_number = #{peasantHouseholdNo} and initiate_status = '已发起' AND STATUS = '已作废' )
FROM
hygf_household_contract
WHERE
peasant_household_number = #{peasantHouseholdNo} and initiate_status = '已发起'
<!-- SELECT-->
<!-- count(*) = ( SELECT count(*) FROM hygf_household_contract WHERE peasant_household_number = #{peasantHouseholdNo} and initiate_status = '已发起' AND STATUS = '已作废' )-->
<!-- FROM-->
<!-- hygf_household_contract-->
<!-- WHERE-->
<!-- peasant_household_number = #{peasantHouseholdNo} and initiate_status = '已发起'-->
SELECT count(1) FROM hygf_household_contract WHERE peasant_household_number = #{peasantHouseholdNo} and initiate_status = '已发起' AND STATUS = '已作废'