count(CASE WHEN  (case int_xmlx when 1 then (select shoufeilb_ba from HIS361.hospital.dbo.yaopin where yaopin.id = zy_jsmxb.int_xmid) when 2 then (select shoufeilb_ba from HIS361.hospital.dbo.p_sfinfo where p_sfinfo.sf_id =  zy_jsmxb.int_xmid) end)='1101068' THEN sum(fl_dj*fl_sl*fl_zfbl) ELSE '' END) as XiBYZLZhPF
  这样写对不,请各位大侠指点