(select count(user_id) from t_detector_user where is_del='0' <iftest="id != -2"> and beyond_enterprise_id = #{id}</if>)as totalNumberUsers,
(select count(user_id) from t_detector_user where user_type=1 and is_del='0' <iftest="id != -2"> and beyond_enterprise_id = #{id}</if>)as residentUsers,
(select count(user_id) from t_detector_user where user_type=2 and is_del='0' <iftest="id != -2"> and beyond_enterprise_id = #{id}</if>)as businessUser,
(select count(user_id) from t_detector_user where user_type=3 and is_del='0' <iftest="id != -2"> and beyond_enterprise_id = #{id}</if>)as industrialUsers
(select count(user_id) from t_detector_user where is_del='0' <iftest="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as totalNumberUsers,
(select count(user_id) from t_detector_user where user_type=1 and is_del='0' <iftest="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as residentUsers,
(select count(user_id) from t_detector_user where user_type=2 and is_del='0' <iftest="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as businessUser,
(select count(user_id) from t_detector_user where user_type=3 and is_del='0' <iftest="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as industrialUsers