select sum(case when state<2 then 1 else 0 end) as 电话费from vf_departcost where deleted=0and Costkind not like ('%水费%','%修理费%','%快递费%','%人工费%','%电话费%')